[gradsusr] txt to dat/bin file

See Hai Ooi axl419 at yahoo.com
Fri Apr 8 01:28:41 EDT 2011






Hi John,
 
           Thank you.
 
           No, it has nothing to do with the changing of the time definition. In the first case, I changed the time definition from "set t 1 40" to "set t 0.5 40.5" in order to accommodate a proper bar chart plotting (see sd.gmf).  In the second case, I merely opened the .ctl file in the GrADS display screen, followed by "set t 1 40" and "d sdv".  As you can see in sd1.gmf, there is a time shift of one year.  In other words, sdv of 1974 was labelled as that of 1975.  Can it be caused by a possible bug in the software for an "fwrite" data ?   Strangely, when I used  the original slp.mean.mon.nc from the NCEP/NCAR reanalysis dataset to do a similar time series plot, the time labelling was perfect !  I am puzzled.
 
        Regards.
 
Ooi
 
 


--- On Fri, 8/4/11, Pou-Chang John Chen <wishingwork at yahoo.com.tw> wrote:


From: Pou-Chang John Chen <wishingwork at yahoo.com.tw>
Subject: Re: [gradsusr] txt to dat/bin file
To: "See Hai Ooi" <axl419 at yahoo.com>
Date: Friday, 8 April, 2011, 11:57 AM







I guess as you modify the start time definition (tdef) in your ctl file, it will give you what you like label.  
If I were you, I would change the 'nov1971' to 'jan1971'.  Just remember you have modified the time definition.
That is GrADS likes to round off the dimension into proper grid 
I hope this helps you.


John
 

GrADS Tutorial on Facebook 
http://www.wishingwork.com/grads/






From: See Hai Ooi <axl419 at yahoo.com>
To: Charles Seman <Charles.Seman at noaa.gov>
Cc: gradsusr at gradsusr.org; fadzilmnor84 at gmail.com; wishingwork at yahoo.com.tw
Sent: Fri, April 8, 2011 8:35:28 AM
Subject: Re: [gradsusr] txt to dat/bin file






Dear Mr Charles Seman,
 
        Thank you.
 
        gmf is GrADS metafile and the graphic can be viewed through gv32.  To facilitate your assistance in resolving my problem, I am pleased to paste the two graphic outputs in Window Words document as attached for your reference.  In addition, I think you need to use the window version of GrADS to examine the dataset I generated using fwrite.  As a matter of confirmation/comparison, you may wish to use your non-Window version of GrADS to generate the dataset (i.e. sd.dat) to find out whether you do encounter the same problem or not.
 
       Best regards.
 
Ooi


--- On Fri, 8/4/11, Charles Seman <Charles.Seman at noaa.gov> wrote:


From: Charles Seman <Charles.Seman at noaa.gov>
Subject: Re: [gradsusr] txt to dat/bin file
To: "See Hai Ooi" <axl419 at yahoo.com>
Cc: "GrADS Users Forum" <gradsusr at gradsusr.org>, fadzilmnor84 at gmail.com, wishingwork at yahoo.com.tw
Date: Friday, 8 April, 2011, 1:22 AM


See Hai Ooi and Fadzil,

Don't think I can be of much help here.  I downloaded See Hai Ooi's attached files, and could not view sd1.gmf (what type of file is this?).  Also, made a local version "sd_local.ctl" but again could not open the binary data file sd.dat in GrADS.  Don't know if data written on a Windows computer can be read on a non-windows computer?

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110407/8e6297a6/attachment-0003.html 


More information about the gradsusr mailing list