<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi Jose Augusto,<br>
<br>
You need to set a missing value in the CTL file, which is the value
over land.<br>
<br>
Best,<br>
Hui<br>
<br>
On 1/13/2012 2:36 PM, Jose Augusto Paixão Veiga wrote:
<blockquote
cite="mid:4C088791-742E-40E4-ACFA-AD45DF0AF4F0@gmail.com"
type="cite">
<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: 0px; font: 11px Menlo; color: rgb(47, 47,
208);">'reinit'</div>
<div style="margin: 0px; font: 11px Menlo; min-height: 13px;"><br>
</div>
<div style="margin: 0px; font: 11px Menlo; color: rgb(47, 47,
208);">'sdfopen wap_A1_1950_Jan_to_1999_Dec.nc'</div>
<div style="margin: 0px; font: 11px Menlo; min-height: 13px;"><br>
</div>
<div style="margin: 0px; font: 11px Menlo; min-height: 13px;"><br>
</div>
<div style="margin: 0px; font: 11px Menlo;">***********************************************************</div>
<div style="margin: 0px; font: 11px Menlo; color: rgb(47, 47,
208);"><br>
</div>
<div style="margin: 0px; font: 11px Menlo; color: rgb(47, 47,
208);">'set fwrite uvw.bin'</div>
<div style="margin: 0px; font: 11px Menlo; min-height: 13px;"><br>
</div>
<div style="margin: 0px; font: 11px Menlo; color: rgb(47, 47,
208);">'set gxout fwrite'</div>
<div style="margin: 0px; font: 11px Menlo; color: rgb(47, 47,
208);">'set x 1 96 '</div>
<div style="margin: 0px; font: 11px Menlo; color: rgb(47, 47,
208);">'set y 1 72 '</div>
<div style="margin: 0px; font: 11px Menlo; min-height: 13px;"><br>
</div>
<div style="margin: 0px; font: 11px Menlo;"><br>
</div>
<div style="margin: 0px; font: 11px Menlo;">i=<span style="color:
rgb(47, 47, 208);">1</span></div>
<div style="margin: 0px; font: 11px Menlo; min-height: 13px;"><br>
</div>
<div style="margin: 0px; font: 11px Menlo;">while (i <= <font
class="Apple-style-span" color="#2f2fd0">256</font>)</div>
<div style="margin: 0px; font: 11px Menlo; color: rgb(47, 47,
208);">'set t '<span style="color: rgb(0, 0, 0);"> i</span></div>
<div style="margin: 0px; font: 11px Menlo; min-height: 13px;"><br>
</div>
<div style="margin: 0px; font: 11px Menlo;">j=<span style="color:
rgb(47, 47, 208);">1</span></div>
<div style="margin: 0px; font: 11px Menlo; min-height: 13px;"><br>
</div>
<div style="margin: 0px; font: 11px Menlo;"><br>
</div>
<div style="margin: 0px; font: 11px Menlo;">while (j <= <span
style="color: rgb(47, 47, 208);">12</span>)</div>
<div style="margin: 0px; font: 11px Menlo; color: rgb(47, 47,
208);">'set z '<span style="color: rgb(0, 0, 0);"> j</span></div>
<div style="margin: 0px; font: 11px Menlo; min-height: 13px;"><br>
</div>
<div style="margin: 0px; font: 11px Menlo; color: rgb(47, 47,
208);">'d omega'<span style="color: rgb(0, 0, 0);"> </span></div>
<div style="margin: 0px; font: 11px Menlo; min-height: 13px;"><br>
</div>
<div style="margin: 0px; font: 11px Menlo;">j=j+<span
style="color: rgb(47, 47, 208);">1</span></div>
<div style="margin: 0px; font: 11px Menlo;">endwhile</div>
<div style="margin: 0px; font: 11px Menlo;"><br>
</div>
<div style="margin: 0px; font: 11px Menlo;">i=i+<span
style="color: rgb(47, 47, 208);">1</span></div>
<div style="margin: 0px; font: 11px Menlo;">endwhile</div>
<div style="margin: 0px; font: 11px Menlo; min-height: 13px;"><br>
</div>
<div style="margin: 0px; font: 11px Menlo; color: rgb(47, 47,
208);">'disable fwrite'</div>
<div style="margin: 0px; font: 11px Menlo; min-height: 13px;"><br>
</div>
<div style="margin: 0px; font: 11px Menlo;">**********************************************************</div>
<div style="margin: 0px; font: 11px Menlo; color: rgb(47, 47,
208);"><span style="color: rgb(0, 0, 0);">write (uvw.ctl,</span>'dset
^uvw.bin '<span style="color: rgb(0, 0, 0);">)</span></div>
<div style="margin: 0px; font: 11px Menlo;">write (uvw.ctl,<span
style="color: rgb(47, 47, 208);">'undef 1e+20 '</span>)</div>
<div style="margin: 0px; font: 11px Menlo; color: rgb(47, 47,
208);"><span style="color: rgb(0, 0, 0);">write (uvw.ctl,</span>'title
Met Office model output prepared for IPCC Fourth Assessment
climate of the 20th Century experiment (20C3M) '<span
style="color: rgb(0, 0, 0);">)</span></div>
<div style="margin: 0px; font: 11px Menlo; color: rgb(47, 47,
208);"><span style="color: rgb(0, 0, 0);">write (uvw.ctl,</span>'xdef
96 linear 1.875 3.75 '<span style="color: rgb(0, 0, 0);">)</span></div>
<div style="margin: 0px; font: 11px Menlo; color: rgb(47, 47,
208);"><span style="color: rgb(0, 0, 0);">write (uvw.ctl,</span>'ydef
72 linear -88.75 2.50 '<span style="color: rgb(0, 0, 0);">)</span></div>
<div style="margin: 0px; font: 11px Menlo; color: rgb(47, 47,
208);"><span style="color: rgb(0, 0, 0);">write (uvw.ctl,</span>'zdef
12 levels 100000 95000 85000 70000 60000 50000 40000 30000
25000 20000 15000 10000 '<span style="color: rgb(0, 0, 0);">)</span></div>
<div style="margin: 0px; font: 11px Menlo; color: rgb(47, 47,
208);"><span style="color: rgb(0, 0, 0);">write (uvw.ctl,</span>'tdef
252 linear JAN1969 1mo '<span style="color: rgb(0, 0, 0);"> )</span></div>
<div style="margin: 0px; font: 11px Menlo;">write (uvw.ctl,<span
style="color: rgb(47, 47, 208);">'vars 1 '</span>)</div>
<div style="margin: 0px; font: 11px Menlo; color: rgb(47, 47,
208);"><span style="color: rgb(0, 0, 0);">write (uvw.ctl,</span>'w
12 11,100 vertical velocity (W) [ Pa/s] '<span
style="color: rgb(0, 0, 0);">)</span></div>
<div style="margin: 0px; font: 11px Menlo;">write (uvw.ctl,<span
style="color: rgb(47, 47, 208);">'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;"><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-indent: 0px; text-transform: none; white-space:
normal; widows: 2; word-spacing: 0px; font-size: medium;">
<div style="word-wrap: break-word;"><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-indent: 0px; text-transform: none;
white-space: normal; widows: 2; word-spacing: 0px;
font-size: medium;">
<div style="word-wrap: break-word;">
<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 moz-do-not-send="true"
href="http://lattes.cnpq.br/4027612512091565"
target="_blank"><font
style="background-color: rgb(255, 255,
255);" color="#333333">http://lattes.cnpq.br/4027612512091565</font></a><br>
URL:<font style="background-color: rgb(255,
255, 0);"><a moz-do-not-send="true"
href="http://scientificmet.wordpress.com/"
target="_blank">http://scientificmet.wordpress.com/</a></font></font></div>
<div><font color="#333333"><a
moz-do-not-send="true"
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 apple-width="yes" apple-height="yes"
id="9a7f87dc-fe40-4124-b292-32e3983a53c6"
src="cid:part1.06030408.06070805@noaa.gov" width="815"
height="652"></div>
<div><br>
</div>
<div><img apple-width="yes" apple-height="yes"
id="0aee7caa-4255-45ea-8dd8-9142a30b18c3"
src="cid:part2.08000201.02060503@noaa.gov" width="815"
height="652"></div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
gradsusr mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>
<a class="moz-txt-link-freetext" href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a>
</pre>
</blockquote>
</body>
</html>