It helped. Thanks.<div>-rupak</div><div><br><br><div class="gmail_quote">On Tue, Sep 25, 2012 at 9:12 PM, Jennifer Adams <span dir="ltr"><<a href="mailto:jma@cola.iges.org" target="_blank">jma@cola.iges.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Be sure to use the 'set x' and 'set y' commands to set the dimension environment to the exact grid dimensions before using fwrite. By default, when GrADS opens a global data set, it invokes a 'set lon 0 360' command which can add an extra column to the fwrite output. --Jennifer<div>
<br><div><br></div><div><br><div><div><div class="h5"><div>On Sep 25, 2012, at 11:19 AM, Rupak Rajbhandari wrote:</div><br></div></div><blockquote type="cite"><div><div class="h5">Hi all,<div><br></div><div>Greetings!</div>
<div><br></div><div>PRINCETON University generated Hydroclimatology corrected NetCDF global 1 degree temperature file or data (eg. <a href="http://tmax_daily_1970-1970.nc/" target="_blank">tmax_daily_1970-1970.nc</a>) has dimension of 360x180. When I write the data to a file using fwrite command, it says "wrote 65160 of 65160 elements ...", which is 360x181 and the image is distorted. Could someone experienced in NetCDF file explain to US (novice in NetCDF), why and what is happening and perhaps how to correct?</div>
<div><br></div><div>Thanks for the help!</div><div><br></div><div>-rupak</div><div><br></div><div>Rupak Rajbhandari</div><div>Department of Meteorology</div><div>TriChandra College</div><div>Kathmandu, NEPAL</div><div><br>
</div><div><br></div></div></div>
_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br><a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</blockquote></div><br><div>
<span style="border-spacing:0px 0px;text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:12px;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="border-spacing:0px 0px;text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:12px;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="border-spacing:0px 0px;text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:12px;white-space:normal;font-family:Helvetica;word-spacing:0px"><div>
--</div><div>Jennifer M. Adams</div><div>IGES/COLA</div><div>4041 Powder Mill Road, Suite 302</div><div>Calverton, MD 20705</div><div><a href="mailto:jma@cola.iges.org" target="_blank">jma@cola.iges.org</a></div><div><br>
</div><br></span></span></span>
</div>
<br></div></div></div><br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div>