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>&#39;reinit&#39;<br>&#39;open seawifs_all.ctl&#39;<br>&#39;set x 1 4320&#39;<br>&#39;set y 1 2160&#39;<br><br>&#39;set gxout fwrite&#39;<br>&#39;set fwrite seawifs_sep1.dat&#39;<br>
t=1<br>&#39;d chl&#39;<br>&#39;disable fwrite&#39;<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>