Dear Grads users,<br><br>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?<br>
<br>This is the script to create the dat file<br><br>'reinit'<br>'open seawifs_all.ctl'<br>'set x 1 4320'<br>'set y 1 2160'<br><br>'set gxout fwrite'<br>'set fwrite seawifs_sep1.dat'<br>
t=1<br>'d chl'<br>'disable fwrite'<br><br>And this is the ctl file<br><br>DSET ^seawifs_sep1.dat<br>TITLE ctl to read seawifs data<br><br>UNDEF -32767<br>XDEF 4320 LINEAR -179.958 0.0833333 <br>
YDEF 2160 LINEAR -89.9583 0.0833333<br>ZDEF 1 LEVELS 1 1<br>TDEF 1 LINEAR SEP1997 1mo<br><br><br>VARS 1<br>chl 0 999 chl concentration<br><br>ENDVARS<br><br>Regards,<br><br>Rondro<br>