<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Dear all,</div><div><br></div><div>I am facing problems when displaying a variable which was recorded into a binary file from a netCDF one.</div><div><br></div><div>I put in attach the two figures I've saved from the display mode in GrAds. One is related to the original netCDF file and the other denotes the field displayed from the CTL constructed (which I would like to use from now on).</div><div><br></div><div>Here are a piece of the script I am using to save a binary file from the netCDF.</div><div><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(47, 47, 208); ">'reinit'</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; min-height: 13px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(47, 47, 208); ">'sdfopen wap_A1_1950_Jan_to_1999_Dec.nc'</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; min-height: 13px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; min-height: 13px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">***********************************************************</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(47, 47, 208); "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(47, 47, 208); ">'set fwrite uvw.bin'</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; min-height: 13px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(47, 47, 208); ">'set gxout fwrite'</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(47, 47, 208); ">'set x 1 96 '</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(47, 47, 208); ">'set y 1 72 '</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; min-height: 13px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">i=<span style="color: #2f2fd0">1</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; min-height: 13px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">while (i <= <font class="Apple-style-span" color="#2f2fd0">256</font>)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(47, 47, 208); ">'set t '<span style="color: #000000"> i</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; min-height: 13px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">j=<span style="color: #2f2fd0">1</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; min-height: 13px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">while (j <= <span style="color: #2f2fd0">12</span>)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(47, 47, 208); ">'set z '<span style="color: #000000"> j</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; min-height: 13px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(47, 47, 208); ">'d omega'<span style="color: #000000"> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; min-height: 13px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">j=j+<span style="color: #2f2fd0">1</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">endwhile</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">i=i+<span style="color: #2f2fd0">1</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">endwhile</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; min-height: 13px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(47, 47, 208); ">'disable fwrite'</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; min-height: 13px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">**********************************************************</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(47, 47, 208); "><span style="color: #000000">write (uvw.ctl,</span>'dset ^uvw.bin '<span style="color: #000000">)</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">write (uvw.ctl,<span style="color: #2f2fd0">'undef 1e+20 '</span>)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(47, 47, 208); "><span style="color: #000000">write (uvw.ctl,</span>'title Met Office model output prepared for IPCC Fourth Assessment climate of the 20th Century experiment (20C3M) '<span style="color: #000000">)</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(47, 47, 208); "><span style="color: #000000">write (uvw.ctl,</span>'xdef 96 linear 1.875 3.75 '<span style="color: #000000">)</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(47, 47, 208); "><span style="color: #000000">write (uvw.ctl,</span>'ydef 72 linear -88.75 2.50 '<span style="color: #000000">)</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(47, 47, 208); "><span style="color: #000000">write (uvw.ctl,</span>'zdef 12 levels 100000 95000 85000 70000 60000 50000 40000 30000 25000 20000 15000 10000 '<span style="color: #000000">)</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(47, 47, 208); "><span style="color: #000000">write (uvw.ctl,</span>'tdef 252 linear JAN1969 1mo '<span style="color: #000000"> )</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">write (uvw.ctl,<span style="color: #2f2fd0">'vars 1 '</span>)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(47, 47, 208); "><span style="color: #000000">write (uvw.ctl,</span>'w 12 11,100 vertical velocity (W) [ Pa/s] '<span style="color: #000000">)</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">write (uvw.ctl,<span style="color: #2f2fd0">'endvars'</span>)</div><div><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; ">**********************************************************</span> </div><div><br></div><div><br></div><div>What should be wrong ?</div><div><br></div><div>Any help is welcome so much.</div><div><br></div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="font-family: Helvetica; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><span class="Apple-style-span" style="font-family: arial; font-size: small; "><div><span style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><font color="#333333"><span style="background-color: rgb(255, 255, 255); ">José Augusto P. Veiga, </span><br><br>======================================<br>Universidade do Estado do Amazonas <br>Departamento de Meteorologia<br><span style="border-collapse: separate; font-family: arial; font-size: small; ">Escola Superior de Tecnologia (EST)</span><br>-----------------------------------------------------------------------------</font></span></div><div><span style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><span style="border-collapse: separate; font-family: arial; font-size: small; "><font color="#333333">Av. Darcy Vargas, 1200, Manaus-AM Brasil<br>Work phone: (92) 3878 4333<br>Skype:<span style="background-color: rgb(255, 255, 255); "> veiga_j.a.p.</span><br></font></span></span></div><div><font color="#333333"><span style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">-----------------------------------------------------------------------------</span><br>CV: <a href="http://lattes.cnpq.br/4027612512091565" target="_blank"><font color="#333333" style="background-color: rgb(255, 255, 255); ">http://lattes.cnpq.br/4027612512091565</font></a><br>URL:<font style="background-color: rgb(255, 255, 0); "><a href="http://scientificmet.wordpress.com/" target="_blank">http://scientificmet.wordpress.com/</a></font></font></div><div><font color="#333333"><a href="http://nmet.wordpress.com/">http://nmet.wordpress.com/</a></font></div><div><font color="#333333"><span style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">-----------------------------------------------------------------------------</span></font></div></span></div></div></span></div></span></div></span>
</div>
<br><div><br></div><div><img height="652" width="815" apple-width="yes" apple-height="yes" id="9a7f87dc-fe40-4124-b292-32e3983a53c6" src="cid:B7357A1D-7ABE-4D18-9244-56CB4406F235"></div><div><br></div><div><img height="652" width="815" apple-width="yes" apple-height="yes" id="0aee7caa-4255-45ea-8dd8-9142a30b18c3" src="cid:26E02CA8-3823-423C-9D8C-3B3E3F9B8FB8"></div></body></html>