<!DOCTYPE html>
<html><head>
    <meta charset="UTF-8">
</head><body><p style="font-size: 12pt; font-family: helvetica, arial, sans-serif; color: rgb(51, 51, 51);">Hi,<br></p><p style="font-size: 12pt; font-family: helvetica, arial, sans-serif; color: rgb(51, 51, 51);">I'm using fwrite to store temp data from a DODs server and build images. </p><p style="font-size: 12pt; font-family: helvetica, arial, sans-serif; color: rgb(51, 51, 51);">The resulting plot is skewed (see attached image).</p><p style="font-size: 12pt; font-family: helvetica, arial, sans-serif; color: rgb(51, 51, 51);"><br></p><p style="font-size: 12pt; font-family: helvetica, arial, sans-serif; color: rgb(51, 51, 51);">Suspect either something is weird in how I store the data via fwrite or in my control file. Both are provided below.<br></p><p style="font-size: 12pt; font-family: helvetica, arial, sans-serif; color: rgb(51, 51, 51);"><br></p><p style="font-size: 12pt; font-family: helvetica, arial, sans-serif; color: rgb(51, 51, 51);">I get the same result whether using x,y points or actual coordinates when setting the fwrite dims. <br></p><p style="font-size: 12pt; font-family: helvetica, arial, sans-serif; color: rgb(51, 51, 51);"><br></p><p style="font-size: 12pt; font-family: helvetica, arial, sans-serif; color: rgb(51, 51, 51);"> <img src="cid:068a31ffeb494655be2092166d2350b6@Open-Xchange" style="max-width: 100%;" class="aspect-ratio" alt="" from_clipboard="true"><br></p><p style="font-size: 12pt; font-family: helvetica, arial, sans-serif; color: rgb(51, 51, 51);"><br></p><p style="font-size: 12pt; font-family: helvetica, arial, sans-serif; color: rgb(51, 51, 51);"><br></p><p style="font-size: 12pt; font-family: helvetica, arial, sans-serif; color: rgb(51, 51, 51);"><span style="text-decoration: underline;"><strong>Fwrite Commands</strong></span><br></p><p style="font-size: 12pt; font-family: helvetica, arial, sans-serif; color: rgb(51, 51, 51);">'set fwrite c:/grib/dods_data.dat'<br><em>'set</em> gxout fwrite'</p><p style="font-size: 12pt; font-family: helvetica, arial, sans-serif; color: rgb(51, 51, 51);"><br></p><p style="font-size: 12pt; font-family: helvetica, arial, sans-serif; color: rgb(51, 51, 51);">** Set Lat and Lon<br></p><p style="font-size: 12pt; font-family: helvetica, arial, sans-serif; color: rgb(51, 51, 51);">* 'set lat 32 63'<br>* 'set lon 208 256'<br>'set x 832 1024'<br>'set y 488 612'<br></p><p style="font-size: 12pt; font-family: helvetica, arial, sans-serif; color: rgb(51, 51, 51);"><br></p><p style="font-size: 12pt; font-family: helvetica, arial, sans-serif; color: rgb(51, 51, 51);">** Set Levels and Dsplay Data'<br>'set lev 1000'<br>'d tmp2m'<br>'d apcpsfc'<br>'d csnowsfc'<br>'d tmpprs'</p><p style="font-size: 12pt; font-family: helvetica, arial, sans-serif; color: rgb(51, 51, 51);"><br>'set lev 975'<br>'d tmpprs'<br>'set lev 950'<br>'d tmpprs'<br>'set lev 925'<br>'d tmpprs'<br>'set lev 900'<br>'d tmpprs'<br>'set lev 875'<br>'d tmpprs'<br>'set lev 850'<br>'d tmpprs'<br>'set lev 825'<br>'d tmpprs'<br>'set lev 800'<br>'d tmpprs'<br>'set lev 775'<br>'d tmpprs'<br>'set lev 750'<br>'d tmpprs'<br>'set lev 725'<br>'d tmpprs'<br>'set lev 700'<br>'d tmpprs'<br>'set lev 675'<br>'d tmpprs'<br>'set lev 650'<br>'d tmpprs'<br>'set lev 625'<br>'d tmpprs'<br>'set lev 600'<br>'d tmpprs'</p><p style="font-size: 12pt; font-family: helvetica, arial, sans-serif; color: rgb(51, 51, 51);">The script then loops through multiple time steps. <br></p><p style="font-size: 12pt; font-family: helvetica, arial, sans-serif; color: rgb(51, 51, 51);"><br></p><p style="font-size: 12pt; font-family: helvetica, arial, sans-serif; color: rgb(51, 51, 51);"><strong><span style="text-decoration: underline;">Control File</span></strong><br></p><p style="font-size: 12pt; font-family: helvetica, arial, sans-serif; color: rgb(51, 51, 51);">dset c:\grib\dods_data.dat<br>undef 9.999E+20<br>ydef 124 linear 32.000000 0.25<br>xdef 192 linear 208.000000 0.25<br>tdef 41 linear 06Z01FEB2018 06hr<br>zdef 17 levels 1000 975 950 925 900 875 850 825 800 775 750 725 700 675 650 625 600<br>vars 4<br>tmp2m 0 999 ** 2 m above ground minimum temperature [k]<br>apcpsfc 0 99 ** surface total precipitation [kg/m^2]<br>csnowsfc 0 1 ** surface categorical snow (yes=1; no=0) [non-dim]<br>tmpprs 0 999 ** (1000 975 950 925 900.. 7 5 3 2 1) temperature [k]<br>ENDVARS<br></p><p style="font-size: 12pt; font-family: helvetica, arial, sans-serif; color: rgb(51, 51, 51);"><br></p><p style="font-size: 12pt; font-family: helvetica, arial, sans-serif; color: rgb(51, 51, 51);">Any help would be appreciated!<br></p><p style="font-size: 12pt; font-family: helvetica, arial, sans-serif; color: rgb(51, 51, 51);"><br></p><div class="io-ox-signature"><div><span style="font-size: small;" size="2">Thanks,<br>Mark</span></div></div></body></html>