<div dir="ltr">Share your gs file along with the ctl file which you used for opening the converted binary file so that someone can have a look into it for error. As already pointed out by users, sdfwrite is for writing a file into netcdf format. Here is a sample gs file which can be used for converting OLR into .bin file. Have a look and modify it for your purpose. Best of Luck.<div><br></div><div><div>'reinit'</div><div>'sdfopen D:/computation2008/IITM_OLR_2008.nc'</div><div>'set lon 62 72'</div><div>'set lat 5 15'</div><div>prompt 'key-in file name for olr : '</div><div>pull fname</div><div>'set fwrite 'fname</div><div>tt=153</div><div>'set t 'tt</div><div>'set gxout fwrite'</div><div>'d olr'</div><div>'disable fwrite'</div></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 17, 2016 at 8:59 PM, Mikovitz, Colleen (LARC-E302)[SCIENCE SYSTEMS AND APPLICATIONS, INC] <span dir="ltr"><<a href="mailto:j.c.mikovitz@nasa.gov" target="_blank">j.c.mikovitz@nasa.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The sdfwrite is for writing into another .nc file (sdf=self-describing format).<br>
<br>
Use ‘set gxout fwrite’ along with ‘set fwrite’ Check out the documentation on <a href="http://cola.gmu.edu/grads/gadoc/gadocindex.html" rel="noreferrer" target="_blank">http://cola.gmu.edu/grads/gadoc/gadocindex.html</a> for each of those.<br>
<br>
As a tip, make sure your x and y are set exactly to what you want output. For example, ‘set x 1 360’ for a one-degree grid.<br>
<span class="HOEnZb"><font color="#888888"><br>
Colleen<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On May 17, 2016, at 6:18 AM, Lekshmi Mudra <<a href="mailto:lekshmimdr@gmail.com">lekshmimdr@gmail.com</a>> wrote:<br>
<br>
> Dear All,<br>
><br>
> I have all India gridded (0.25 x 0.25) imd rainfall data from<br>
> 1948 to 2015, which is in .nc format. I wanted to convert the same<br>
> into .bin format. I have tried using sdfwrite command. The resulted<br>
> binary file is not working properly.<br>
> Is there any solution?<br>
><br>
><br>
><br>
> Lekshmi Mudra<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" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br>
<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" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div style="font-size:12.8px">Sincerely</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">**************************************************</div><div style="font-size:12.8px">Dr. Jayakrishnan P.R</div><div style="font-size:12.8px">Post Doctoral Research Fellow</div><div style="font-size:12.8px">C308, Institute of Ocean and Earth Sciences (IOES)</div><div style="font-size:12.8px">University of Malaya</div><div style="font-size:12.8px">50603, Kuala Lumpur</div><div style="font-size:12.8px">Tel: (+603) 7967 4640 / 6995</div><div style="font-size:12.8px">Mobile: 012-3526094</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">****************************************************</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><span style="color:rgb(7,55,99)"><font size="1"><br></font></span></div><div style="font-size:12.8px"><span style="color:rgb(7,55,99)"><font size="1"><br></font></span></div><div style="font-size:12.8px"><br></div></div></div>
</div>