Aloha, <br><br>I used fwrite to write out to a binary file in order to create a large file with about 48000 time steps for global data (because I am crazy). I noticed that when I use fortran to create a new data file that has all 48000, it doesn't match with what the original data plotted, instead it seems skewed. No manipulations were done to the data, it was just read it all in and write it out. When I tried to loop the data, I further noticed that the northern border looped around the south and then moved upwards back to the north. It just keeps looping around and it's odd because the top boundary of the map isn't continuous with the bottom boundary (unlike the side boundaries which are continuous). Anyways, I am wondering why this happened and what I can do to make it work out correctly. <br>
<br>Here is my fwrite code. it is the first time step, nt is the last time step, chi is the velocity potential that was calculated using 'define chi = fish_chi(UGRDprs,VGRDprs)' :<br clear="all">*# set up global domain<br>
'set lev 200 '<br>'set lat -90 90'<br>'set lon 0 360'<br>*#**************************************************************<br>say 'write data out to binary file called CHI.200hPa'filenum'.dat'<br>
'set fwrite -le -sq -cl CHI_200hPa_'filenum'.dat'<br>'set gxout fwrite'<br>while (it <= nt)<br> 'set t 'it<br> 'display chi'<br>it=it+1<br>endwhile<br>'disable fwrite'<br>
<br>Mahalo for your help! <br>-Tom<br><br>-- <br>Tom Robinson<br>President Graduate Student Organization <br>Student Caucus Representative for the Graduate Student Organization<br>Graduate Student - Department of Meteorology<br>
732-718-2323<br><br>