Thursday, December 27, 2007

What's wrong with CMONOC 2000 321 data?

The gamit had run the session of 2000-321 for nearly half day, and it hasn't gotten a solution. What's wrong?

Wednesday, December 26, 2007

NOT standard rinex of Beijing CGPS data?

> sh_rnx2crx -f daxn0010.05o
ERROR at line 25: invalid format for clock offset.
start >0.000326058< end
Error creating Hatanaka compact rinex for file: daxn0010.05o

Monday, December 24, 2007

New features of IDL v7.0

Favorates:
(1).Auto indention of codes;
(2).Same GUI in Windows, Linux/Unix and MacOS X;
(3).Files tab;
(4).Procedures/functions list;
(5).Collapse and expand subsets of codes;


Dislikes:
(1).Style of projects management;
(2).Shortcuts for debugging, compiling and running programs;
(3).It starts slowly;
(4).Online help--no index now; F1 opens Dynamic Help; (No keyword help?)
(5).Drag and place cannot work;

Happy Christmas Eve

It's Christmas Eve now, may happiness be with everyone in the world!
Thank you.

Tian from Beijing China

TBE IDL V7.0 license file released.

I cannot find when did this file come out. There is no trace of it in TLF's database until now. Try IDL v7.0; there are a lot of different things to learn. I wish I could be familiar with the new style soon. :)

Puzzled by project management of IDL 7.0

I feels very uncomfortable with the new management style of IDL 7.0 projects. What does the IDLWorkspace do? I do not want such a extra thing. The way of oldish style of managning project is a simple and effective. I hate the new style! Damn it. :<

Nannan's New Clothes Arrived

The clothes prepared by Nannan's grandmother has arrived Beijing today. I just took it home. It's a little heavy (+4kg). I can't wait to open it and have a look. But Nannan's mother told me to wait for her to open it together in the evening. Haha...

How IDL cannot handle logical AND operation?

if n_elements(ispressed) ne 0 and ispressed eq 1 then begin

If the variable ispressed is not defined, then the program will stop and give a error message,
% Variable is undefined: ISPRESSED.
% Execution halted at: ... ...

But, in my memory, if the left part of AND is false, the right part will not be evaluated. Does IDL behave differently?

What's wrong with Firefox in RHEL5?



Firefox takes up near 500 MB memory once started up. The size of its memory usage keeps increasing continuously when open web links. What's that problem?

Thursday, December 20, 2007

Cygwin xterm can use Xmanager X11 resource?


I started XManager first, and then xterm of Cygwin. Then the xterm looks like the style of XManager.


It is strange, aha..?

Tuesday, December 18, 2007

RHEL5 is not free!

The free version of RHEL5 cannot update softwares. yum was forbidden if the system is not activated. Ha... It's a pity. Should I install CentOS at the beginning?

CATS error in IA64 (Suse Linux)

weather cats_v3.1.2/analysis> cats vyas.neu
initializing...
Get the options
analyze options
output system information
unamed
Data from file : vyas.neu
cats : running on weather
Linux release 2.6.5-7.191-sn2 (version #1 SMP Tue Jun 28 14:58:56 UTC 2005) on ia64
files ok
userid :

rdt 0.000100 .
count the number of series being used
Number of series to process : 3
Now presumably we are ready to go
Start Time : Tue Dec 18 15:52:55 2007





cats(3907): unaligned access to 0x60000fffffff972c, ip=0x400000000008c701
cats(3907): unaligned access to 0x60000fffffff972c, ip=0x400000000008c710
cats(3907): unaligned access to 0x60000fffffff972c, ip=0x400000000008c920
cats(3907): unaligned access to 0x60000fffffff972c, ip=0x400000000008cac0
Segmentation fault


System information:
weather cats_v3.1.2/analysis> uname -a
Linux weather 2.6.5-7.191-sn2 #1 SMP Tue Jun 28 14:58:56 UTC 2005 ia64 ia64 ia64 GNU/Linux
weather cats_v3.1.2/analysis>

What does this mean?

When I sent out a comment which is a link to blogger.com site as a anonymous viewer, the 163 blog system gave me the error message. I don't know what does this mean. When I logged in, I could post any comments. Is there some restriction on anonymous reviewers?

Monday, December 17, 2007

How to set time & date for Linux system?

su to root, and use the date command:
# date -s "2 OCT 2006 18:00:00"

GAMIT in Linux cannot still deal with gzip/gunzip?

There is no compress/uncompress comands in RHRL5. After linked gunzip to uncompress, gamit can decompose the .Z files correctly, but it cannot compress the output files in the final step of sh_gamit processing.

GAMIT error

FATAL :071217:2340:57.0 MAKEX/set_dcb_flag: PCN-code missing for receiver type
in rcvant.dat, cannot set C1/P2 correction flag


I found today that the error resulted from some types of antenna that has no PCN value in ~/gg/tables/rcvant.dat. CMONOC site WHJF uses the JPSREGANT_DD_E antenna. And there is no P/C/N settings in ~/gg/tables/rcvant.dat, i.e.
JPRDDE * JPSREGANT_DD_E | Dual -depth chokering antenna, external

After commented out site WHJF, the gamit ran without any error.

Where can I find AGU Fall Meeting CDs?

Does AGU release CD/DVDs for the fullpapers submitted to annual AGU Fall Meeting? If not, how could I get a copy of those fullpapers? I searched the NLC and LAS libraries, but found no volumes of those fall meetings. Also, are those presentations given by authors in the meeting open to public? Anywhere to download it from intenet?

Thursday, December 13, 2007

New theme choosed.

I changed the theme of my blog today. A new look gives me a fresh feeling. :)

How to plot hourly data using GMT?

I got time series data of PWV. They are values for each hour. The data file looks like,

001 00 1.2
001 01 1.3
...
001 23 1.5
002 00 1.3
...

The resulting plot looks like,
|
| *
| -- * ---* --*-- *
| - * --*- *
|______________ *_____________
00 06 12 18 00 06 12 18
----001--- 002

Note: - in plot is blank.

How to do this in GMT?
I spent several hours working on this, but got no solution.

Who took up the book of "Global positioning system"?

It seems that someone are always borrow the book "Global positioning system: theory and applications" which edited by Bradford W. Parkinson et al. from the stack of NLC (National Library of China). I even have no chance to send a request through the online library system. The book was borrowed again just after it had been returned. Oh my god, who did this so fast. Could you please give somebody else a chance to have a look or make a copy of this book? (I know it maybe not legal to copy the book, but I need it and don't want to go to the library each month. Sorry.)


Global positioning system : theory and applications / edited by Bradford W. Parkinson, James J. Spilker, Jr. ; associate editors, Penina Axelrad, Per Enge. [monograph] .
Washington, DC : American Institute of Aeronautics and Astronautics, 19.
v. 1, 2 : ill. ; 23 cm..

You can write, but you cannot view.

This is what I heard today, that is you can publish your writings from www.blogger.com, but you and others may cannot view it from mainland China.

Monday, December 10, 2007

Why China blocked Google Blog?

While MSN Live Space is accessible within China?
Did blogger.com do something wrong? But Google's other products are open to all Chinese. Blogger.com is not a company of Google? I thought Google bought it.

Then, why the hell China blocked blogger.com?

Sunday, October 21, 2007

Headache in the last few days

I had a little headache in the past few days. Weak easily, feel tired, ... Completely not in the mood of doing researches and preparing the forthcoming mid-term defense which is scheduled on Oct. 30. Hope myself get out of this state quickly.

Tuesday, May 29, 2007

What is the defference between 64-bit and 32-bit machine?

Is 64-bit better? More accurate? More faster? Or just can hold large files or RAM?

Saturday, May 26, 2007

Thursday, May 24, 2007

How to become a successful man.

To succeed depends on two things: opportunity and ability. The later is a prerequisite, and it contains many aspects. So, you should get everything you could lay hands on. No waiting, no delay, and no stop.

Wednesday, May 23, 2007

BERN42 seems has a serious problem.

A program call ADDCAMP eat up all CPU. Wow! ...?%$@

VMWare Workstation 6 is out!

There is a great improvement in VMWare Workstation for FreeBSD: the mouse can automatically get out of VMWare machine when moved out and get grapped when moved into the guest OS windows.

Great!

Cannot connect remote SUN workstation using XManager.

It nearly freaked me out that my laptop cannot establish connection with a Sun SPARC workstation with XManager (xstart) at home. However, I can connect to it when in the same sub-network. I tried allow the port in WinXP's network firewall settings, but with no success.
What happened! I remembered I could do so previously.

How to use XSLT in FreeBSD?

I cannot find a suitable port for XSLT?

What is the right commands?

Tuesday, May 22, 2007

No News & BBS from now.

Sometimes I think it's a little waste of time.

However, I am a bit net-addicted. ^_^

So, please have the courage to say No to internet.

IDL 6.4 is out.

The PDF version of Analyst document is included in the IDL Help HTML documents now. A good improvement.

Raining

No rain for a long time.
There are many ways to success. Just do what you think is right. And don't look back. Get the best out of yourself. Haha...

Friday, May 18, 2007

Secretes of ENVI_READ_COLS

I have been wandering why ENVI_READ_COLS read things so fate since I use IDL function txt_readall. I figured out the reason this evening.

The method used by ENVI_READ_COLS is:
1). Get the number of lines of the ASCII matrix;
2). Get the number of columns of the ASCII data matrix;
3). Read in the data by using "readf" procedure.

That's it.

Thus, the key to the speed lies in--How to get the number of lines fastly? This is the task of ENVI_NUM_ASCII_LINES. Its syntax is:
num_lines = ENVI_NUM_ASCII_LINES(file)

It seems that ENVI_NUM_ASCII_LINES use BYTE mode to search for Return and Carriage It read 10 lines each time.. I still didn't knnow a way to achieve this.

The target of mine is to write an IDL procedure to do those things.

GAMIT in FreeBSD runs faster now. ^_^

After upgrade to 512M + Kingston 1G DDR-II 667 RAM, the VMWare guest OS FreeBSD was assigned 512M RAM. And now it runs faster now. Haha...

By the way, many thanks to Kingston for dropping the price sharply in the past few weeks. :)

Thursday, May 17, 2007

GAMIT runs much slower in notebook than in desktop PC.

The desktop PC configuration:
AMD Athon 2500+ CPU (1.8GHz)
512M DDR-333
Maxtor Harddisk 7200RPM 40G
Windows XP Pro SP2
VMWare Workstation 5.0
Guest OS: FreeBSD 6.2 (256M RAM)
GAMIT/GLOBK V10.30

The notebook configuration:
Duro Core 1.66GHz*2
T5500
Toshiba 5400 RPM 80G
1G DDR-II 667
Windows XP Pro SP2
VMWare Workstation:
Guest OS: FreeBSD 6.2 (308M RAM)

It seems that it took more time for GAMIT to get a solution in notebook than in desktop PC. Should notebook be only used for word processing and entertainment? I had thought that notebook was a good choice for running GAMIT.

Sharp drop in memory price. Bought two pieces.

The price of Kingston's 1G DDR-II 667 momory (for notebook) has dropped nearly 50% in the past several week. As a person who is short of memory storage, I bought two pieces today with a price I thought was reasonable (250Yuan each), although some guys warned that the price will be further down in the near future. Ha.. Who knows?

So strong wind in Beijing.

The wind is so strong that sometimes I cannot walk again the wind in the street. Dust were blowed into the sky, which often blurs my eyes. This kind of wind is seldom seen in Beijing in the past few years. Fortunately, there is no heavy dust cloud. And the sky is just as blue as that at the countryside.

Monday, May 14, 2007

Vista freaked me out.

Vista run slowly on my new HP NX6330 box (with 1G RAM). And it keeps crashing (blue-screen) since installed. Maybe it is because of shortage of appropriate drivers for vista. But DO NOT try it again. It's only a waste of time.

Wednesday, April 18, 2007

C char array output problem.

The strange characters following the correct ones is caused by the lack of ending character ('\o') for a char array.

solution: strncpy

C code failed to run on SunOS 5.4

#include
struct stu
{
char name[8];
short int num;
short int age;
char addr[4];
}boya[2],boyb[2],*pp,*qq;
main()
{
FILE *fp;
char ch;
int i;
pp=boya;
qq=boyb;
if((fp=fopen("stu_list","wb+"))==NULL)
{
printf("Cannot open file strike any key exit!");
exit(1);
}
printf("\ninput data\n");
for(i=0;i<2;i++,pp++)>name,&pp->num,&amp;amp;pp->age,pp->addr);
pp=boya;
fwrite(pp,sizeof(struct stu),2,fp);
rewind(fp);
fread(qq,sizeof(struct stu),2,fp);
printf("\n\nname\tnumber age addr\n");
for(i=0;i<2;i++,qq++)>name,qq->num,qq->age,qq->addr);
fclose(fp);
}


** test source coed was obtained from internet.

> cc test1.c -o test1
> ./test1

input data
tian 1 2 a
Bus error (core dumped)

> uname -a
SunOS 5.8 Generic_108528-13 sun4u sparc SUNW,Sun-Blade-1000

Howerver, it works on FreeBSD.

What's the problem??

Friday, March 30, 2007

Where did the hfile for 2005/2006 go?

There is no year directories. However, 2007 is there.

Chinese characters in Matlab under English-version Windows XP

The Chinese text in an ascii file became meanless symbols when use fscanf to read it. But this problem didn't appear in Chinese-version Windows XP.

Herring's SNRPROG cannot work!

from http://www-gpsg.mit.edu/~tah/snrprog/

Herring's snrprog program cannot work for bjfs0010.07o data. It couldn't give out valid results. Is this program too old for this RINEX file?

How to check the performing quality of a GPS receiver/antenna?

Matlab 7 installed on FC6

It seems that Matlab works well in FC6. :)

Google Blogger: Cannot view my blog.

It seems that there is a problem with my domain server.
I can add/edit post, but I cannot view the blog home page.
What happened to blogspot.google.com?

Re-run throuth 2006- for sites around China.

Sites include: bjfs, chan, daej, guao, shao, ulab, and wuhn.

GAMIT V10.3

The PC runs very slowly.

Error for GAMIT with pgf77

PGFIO-F-235/formatted write/unit=20/edit descriptor does not match item type.
File name = x70010.034 formatted, sequential access record = 102
In source file makex.f, at line number 1297

How to solve it?
(http://www.pgroup.com/userforum/viewtopic.php?t=816&sid=9892424dc8d0b4577c1eb981a437f7f4)

makex.f 1297:
write(uxfile,592) epoch,number,iyr,jdoy,ihr,min,dsecs
. , kflag,upperc(ksite),latflag,dlat,mlat,seclat
. , lonflag,dlon,mlon,seclon,rad

Thursday, March 29, 2007

Chinese characters in Matlab

Those Chinese comments in a M-file became strange symbols after re-open in Matlab Editor (even anyelse editors). The problem lies in the setting of "Standards and formats" setting of "Regional and Language Options". Set it to "Chinese (PRC)" and then the problem solved. Thus, it seems that Matlab read location information from this section and determine the lunguage with which it displays and stores contents.

Unfortunately, the previous damaged M-file cannot be recovered.

Why USB ports cannot work suddenly?

Is it because of hardware failure? Or software disfunctionality? I re-installed all USB drivers and with no effects.
And Symantec Norton Antivirus didn't find any viruses.

Error encoding with Yahoo/Gmail mails.

I wrote a Chinese letter in English version Yahoo Mail, and sent it out. However, I received an unknown encoding mail in other mailboxs (eg 163). Those Chinese characters appeared as numbers and symbols (like UTF8, but not).

What the hell is going on?

Solution for very short baseline (< 10m)

I couldn't achive a solution for two sites separated ~ 6m away. I tried almost all those options: LC_AUTCLN, LC_HELP, LC_ONLY, L1,L2INDEPEN, L1&L2, L1_ONLY, L2_ONLY. Different results were got with cm-level uncertainity sometimes. The most stable result was obtained when using L2_ONLY choice. But which one is best is still to be studied.

Tuesday, March 20, 2007

God! QOCA seems so difficult for me.

I wonder whether I could grasp its gist in serveral days. Many geophysists use QOCA to derive GPS sites velocities. Is it better than GLOBK? What's the difference between them?

And by the way, why there is a package named FONDA in GAMIT distribution? Is it obsolete?

Can I use V10.21 atml files in V10.3?

It seems that I couldn't. But I need an account to download GAMIT V10.3. And rwk didn't email me one when he switched to V10.3. I don't know why. But becuase currently V10.21 is enough for our work, I don't care. ^_^

Those peopel at MIT are very nice. Thanks you and other great researchers for providing us so good a free gift without which we cannot get our job done. :)

Convert Postscript .ps to JPEG and create animation .GIF

Use ImageMagick.

convert input.ps output.jpg
convert -adjoin ...
convert -dispose previous ...
convert -delay 50 ... *.jpg out.gif

So good a tool!
Thanks.

To run scheduled tasks in Unix.

Use crontab.
for most users:
crontab -e
crontab file syntax:
min1[,min2,...] * * * * command

Or edit the /etc/crontab file.

Monday, March 19, 2007

Be careful to update ~/gg/tables

I found the GPS/Met system failed to run in the past few days, just because the solar ephemeris was out of date. GAMIT got a solution after I update those files from SOPAC. There current GPS/Met system does not support re-run for historical data.

IFC in Freebsd

Thanks for those good guys who produced IFC ports for FreeBSD. After a long time trying, I finally got ifort/icc run. :) Not bad.

Send attatchment in Unix

Use mailx:
uuencode $tfile.bz2 $tfile.bz2 | mailx -s $tfile.bz2 your_email@email.server

Or use pine.

Monday, February 26, 2007

Trying Vista

Not so slow, not so beautiful(urgly font), not so friendly. Something new. So large.

Sunday, February 25, 2007

Install Debian 3.1r5

  1. Download the 1st ISO CD;
  2. Install the base system;
  3. Install the x-window-system;
  4. Configure mouse: /dev/psaux;
  5. Install libx11-dev;
  6. Install ncftp, firefox, ...;
  7. To download something, use wget;
  8. To install other packages, use aptitude;
  9. ...

Happy Chinese New Year!

Happy Chinese New Year to everyone!
^_^

Got back to work tomorrow. Let's do it.

Debian is better than FreeBSD?

Is Debian better than FreeBSD? Because Debian is a free distribution of Linux?
Debian may be the nearly the same with FreeBSD for me. However, I can install Linux applications (such as Matlab/IFC/Maple/PGI) in Debian. But in FreeBSD, it is very cumbersome, or even impossible, to install these.

Anyway, I like FreeBSD more than Debian. And I now got Interl Fortran Compiler port run in FreeBSD now. How good!

My blogs.

http://enod.mysmth.netLink
http://blog.163.com/y.f.tian/ (Also http://y.f.tian.blog.163.com/)

http://360.yahoo.com/tianyunfeng