<table cellspacing='0' cellpadding='0' border='0' ><tr><td valign='top' style='font: inherit;'><P>Dear GrADS Users,<BR>I need to get the output of GrADS in text format.<BR>My problem is that the output AScii file is arranged in reverse order.<BR>I would be very grateful if someone can help me.</P>
<P>Best regards,<BR>A. mofidi</P>
<P><BR>this is my script:<BR>'reinit'<BR>'sdfopen ncdata\Caspian-winter\AVHRR\sst4-path-eot.20011202.nc'<BR>'sdfopen ncdata\Caspian-winter\AVHRR\sst4-path-eot.20011201.nc'<BR> 'set dfile 1'<BR> 'set lon 50.125 50.625'<BR> 'set lat 38.125 39.125'<BR> 'set t 1'<BR> 'set z 1'<BR> 'define S1 = sst'<BR> 'set dfile 2'<BR> 'set lon 50.125 50.625'<BR> 'set lat 38.125 39.125'<BR> 'set t 1'<BR> 'set z 1'<BR> 'define S2 = sst'<BR> 'set gxout print'<BR> 'set prnopts %g 3 1'<BR> 'display S1-S2'<BR> rc=write(DSST2Dec01.txt,result)<BR> rc=close(DSST2Dec01.txt)<BR>return</P>
<P> </P>
<P>This is output .txt file: </P>
<P>Printing Grid -- 15 Values -- Undef = -999 <BR> -0.13 -0.12 -0.12 <BR> -0.14 -0.13 -0.13 <BR> -0.14 -0.13 -0.13 <BR> -0.139 -0.11 -0.09 <BR> -0.12 -0.24 -0.139 </P>
<P><BR>The latitude and Longitude of above output file is:</P>
<P><FONT style="BACKGROUND-COLOR: #ffff00">Lat/Lon 50.125 50.375 50.625</FONT> <BR><FONT style="BACKGROUND-COLOR: #ffff00">38.125</FONT> -0.13 -0.12 -0.12<BR><FONT style="BACKGROUND-COLOR: #ffff00">38.375</FONT> -0.14 -0.13 -0.13<BR><FONT style="BACKGROUND-COLOR: #ffff00">38.625</FONT> -0.14 -0.13 -0.13<BR><FONT style="BACKGROUND-COLOR: #ffff00">38.875</FONT> -0.139 -0.11 -0.09<BR><FONT style="BACKGROUND-COLOR: #ffff00">39.125</FONT> -0.12 -0.24 -0.139</P>
<P><BR>While, it should be like this:</P>
<P><FONT style="BACKGROUND-COLOR: #ffff00">Lat/Lon 50.125 50.375 50.625</FONT><BR><FONT style="BACKGROUND-COLOR: #ffff00">39.125</FONT> -0.12 -0.24 -0.139<BR><FONT style="BACKGROUND-COLOR: #ffff00">38.875</FONT> -0.139 -0.11 -0.09<BR><FONT style="BACKGROUND-COLOR: #ffff00">38.625</FONT> -0.14 -0.13 -0.13<BR><FONT style="BACKGROUND-COLOR: #ffff00">38.375</FONT> -0.14 -0.13 -0.13<BR><FONT style="BACKGROUND-COLOR: #ffff00">38.125</FONT> -0.13 -0.12 -0.12</P>
<P> </P></td></tr></table><br>