[gradsusr] txt to dat/bin file

See Hai Ooi axl419 at yahoo.com
Thu Apr 7 03:40:05 EDT 2011


Hi Fadzil,
 
    I guess you are trying to plot the time series of standardized difference values.  Hope the files attached are helpful to you.  As far as I am concerned, I have to put in the time axis label manually.  If I open the .ctl and do the plotting automatically, there is a one-year shift of time axis label as shown in sd1.gmf.  Mr Chen/Mr Charles Seman, is there any way to rectify this time axis label problem ?  I use Window version of GrADS 2.0.a7.oga.3 .
 
   Thank you and best regards.
 
Ooi
 


--- On Thu, 7/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: "GrADS Users Forum" <gradsusr at gradsusr.org>
Date: Thursday, 7 April, 2011, 3:46 AM







Hello fadzil
As you 'set gxout fwrite', try to set the dimension only one point, like: 'set x1';'set y 1';'set z 1';'set t 1', before you display the value


I hope this help you
John
 



From: fadzil mnor <fadzilmnor84 at gmail.com>
To: gradsusr at gradsusr.org
Sent: Thu, April 7, 2011 2:14:57 AM
Subject: [gradsusr] txt to dat/bin file

Hi,
I'm using windows version of GrADS.
i'm planning to convert txt file with only these numbers/data (below)
in it to binary file (dat or bin)..
*************************
0.38
-0.58
-0.86
-0.10
-0.57
-0.11
0.98
-0.02
-0.46
0.82
-0.42
0.28
-0.24
0.46
0.69
0.23
-0.07
0.47
-0.35
-0.32
-0.05
-0.18
-0.63
0.36
-0.12
0.78
-0.36
0.21
-0.17
0.46
-0.43
-0.31
-0.22
-0.01
0.66
0.19
-0.75
0.05
-0.35
0.86
****************
i've tried something like in here :
http://tc-typhoon.blogspot.com/2011/03/use-grads-to-read-in-text-files-for.html
, but it's not working. including the file address (since i am using
windows)..

any idea?
thanks

fadzil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110407/639c5ea2/attachment-0003.html 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: sd.txt
Url: http://gradsusr.org/pipermail/gradsusr/attachments/20110407/639c5ea2/attachment-0003.txt 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sd.gs
Type: application/octet-stream
Size: 553 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20110407/639c5ea2/attachment-0018.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sd.dat
Type: application/octet-stream
Size: 160 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20110407/639c5ea2/attachment-0019.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sd.ctl
Type: application/octet-stream
Size: 318 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20110407/639c5ea2/attachment-0020.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: psd.gs
Type: application/octet-stream
Size: 1185 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20110407/639c5ea2/attachment-0021.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sd.gmf
Type: application/octet-stream
Size: 19662 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20110407/639c5ea2/attachment-0022.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sd1.gmf
Type: application/octet-stream
Size: 37676 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20110407/639c5ea2/attachment-0023.obj 


More information about the gradsusr mailing list