[gradsusr] Problem with fwrite and control file
Barimalala Rondrotiana
rondrotiana at gmail.com
Tue Apr 24 16:23:52 EDT 2012
Dear Grads users,
I have downloaded the monthly seawifs data (hdf format). I created a ctl
file that reads it very well. I then extracted the first month in a dat
file using fwrite. When I tried to open the dat file with a ctl (same
dimension x and y), the output figure is not the same as it is in the
original data file. Would you please help me?
This is the script to create the dat file
'reinit'
'open seawifs_all.ctl'
'set x 1 4320'
'set y 1 2160'
'set gxout fwrite'
'set fwrite seawifs_sep1.dat'
t=1
'd chl'
'disable fwrite'
And this is the ctl file
DSET ^seawifs_sep1.dat
TITLE ctl to read seawifs data
UNDEF -32767
XDEF 4320 LINEAR -179.958 0.0833333
YDEF 2160 LINEAR -89.9583 0.0833333
ZDEF 1 LEVELS 1 1
TDEF 1 LINEAR SEP1997 1mo
VARS 1
chl 0 999 chl concentration
ENDVARS
Regards,
Rondro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20120424/a651f047/attachment-0003.html
More information about the gradsusr
mailing list