<div dir="ltr"><p class="MsoNormal" dir="LTR" style="text-align:justify;direction:ltr"><span style="font-size:13pt;font-family:'Times New Roman',serif">Dear all</span></p>
<p class="MsoNormal" dir="LTR" style="text-align:justify;direction:ltr"><span style="font-size:13pt;font-family:'Times New Roman',serif">Briefly I use ROMS model. In this
model there are masking process to separate land and sea. One of its outputs is
<a href="http://ocean_history.nc">ocean_history.nc</a> file. Its header contain</span></p>
<p class="MsoNormal" dir="LTR" style="margin-bottom:0.0001pt;text-align:justify;direction:ltr"><b><span style="font-size:13pt;font-family:'Times New Roman',serif;color:rgb(51,51,51)">Code:</span></b><span style="font-size:13pt;font-family:'Times New Roman',serif;color:rgb(51,51,51)"></span></p>
<p class="MsoNormal" dir="LTR" style="margin-bottom:7.5pt;direction:ltr"><span style="font-size:13pt;font-family:'Times New Roman',serif;color:rgb(0,102,0)">float u(ocean_time, s_rho, eta_u,
xi_u) ;<br>
u:long_name = "time-averaged u-momentum
component" ;<br>
u:units = "meter second-1" ;<br>
u:time = "ocean_time" ;<br>
u:coordinates = "lon_u lat_u s_rho
ocean_time" ;<br>
u:field = "u-velocity, scalar, series" ;<br>
u:_FillValue = 1.e+37f ;</span></p>
<p class="MsoNormal" dir="LTR" style="text-align:justify;direction:ltr"><span style="font-size:13pt;font-family:'Times New Roman',serif">for all variables. As you can see
there is _FillValue option with </span><span style="font-size:13pt;font-family:'Times New Roman',serif;color:rgb(0,102,0)"> 1.e+37f</span><span style="font-size:13pt;font-family:'Times New Roman',serif"> value.</span></p>
<p class="MsoNormal" dir="LTR" style="text-align:justify;direction:ltr"><span style="font-size:13pt;font-family:'Times New Roman',serif">For plotting, there are <a href="http://csec.in">csec.in</a> and
<a href="http://ccent.in">ccent.in</a> in ROMS plotting package for cross-section and countor plotting, respectively
by</span></p>
<p class="MsoNormal" dir="LTR" style="text-align:justify;direction:ltr"><span style="font-size:13pt;font-family:'Times New Roman',serif"> $ ccntG<<a href="http://ccnt_test.in">ccnt_test.in</a></span></p>
<p class="MsoNormal" dir="LTR" style="text-align:justify;direction:ltr"><span style="font-size:13pt;font-family:'Times New Roman',serif">$ csecG<<a href="http://csec_test.in">csec_test.in</a></span></p>
<p class="MsoNormal" dir="LTR" style="text-align:justify;direction:ltr"><span style="font-size:13pt;font-family:'Times New Roman',serif">That base on ROMS manual, they
plotted with ncarg.</span></p>
<p class="MsoNormal" dir="LTR" style="text-align:justify;direction:ltr"><span style="font-size:13pt;font-family:'Times New Roman',serif">Recently I face with one problem
that makes me confused. My problem is that when I plot some variable cross
section, I see that its color bar and also max and min values which written in
plot's corner are not correct. For example for u component max and min values
are 1.83 and -2.47, respectively. But in plot it shows values in order e+38 and
whole of plot covered by same color (attached plot). It seems that values
multiplied by one factor. I send this
error to ROMS forum several times. They reply:</span></p><p class="MsoNormal" dir="LTR" style="text-align:justify;direction:ltr"><span style="font-size:13pt;font-family:'Times New Roman',serif"><br></span></p>
<p class="" dir="LTR" style="margin:0cm 0cm 0.0001pt;text-align:justify;direction:ltr"><span style="font-size:13pt;font-family:'Times New Roman',serif;color:rgb(50,61,79)">1-<span style="font-size:7pt;font-family:'Times New Roman'"> 1- </span></span><span dir="LTR"></span><span style="font-size:13pt;font-family:'Times New Roman',serif;color:rgb(50,61,79);background-color:rgb(236,236,236)">Very simple. You need to pay attention to the
statistics that are dumped to standard output when plotting. Also, see the
minimum and maximum values in the bottom left corner of the plot. Notice also at
the bottom of the colorbar there is a scale x10^38. The maximum value in the
plot is around 1E+38<span class=""> </span></span><span style="font-size:13pt;font-family:'Times New Roman',serif"><img width="15" height="15" src="file:///C:\Users\PAYARA~1\AppData\Local\Temp\msohtmlclip1\01\clip_image001.gif" alt=":!:"></span><span class=""><span style="font-size:13pt;font-family:'Times New Roman',serif;color:rgb(50,61,79);background-color:rgb(236,236,236)"> </span></span><span style="font-size:13pt;font-family:'Times New Roman',serif;color:rgb(50,61,79);background-color:rgb(236,236,236)">The
special value in ROMS for masking is 1.0E+37. The plotting package is able to
recognize such masked values.</span><span style="font-size:13pt;font-family:'Times New Roman',serif;color:rgb(50,61,79)"> </span><span style="font-size:13pt;font-family:'Times New Roman',serif;color:rgb(50,61,79);background-color:rgb(236,236,236)">The<span class=""> </span></span><b><span style="font-size:13pt;font-family:'Times New Roman',serif;color:red;background-color:rgb(236,236,236)"><span style="text-align:start">_FillValue</span></span></b><span class=""><span style="font-size:13pt;font-family:'Times New Roman',serif;color:rgb(50,61,79);background-color:rgb(236,236,236)"><span style="text-align:start"> </span></span><span style="font-size:13pt;font-family:'Times New Roman',serif;color:rgb(50,61,79);background-color:rgb(236,236,236)">is added in masked regions and it is easy recognizable by
any third party plotting software. You can try plotting your fields with any
NetCDF file tools out there</span></span><span style="font-size:13pt;font-family:'Times New Roman',serif;color:rgb(50,61,79)"></span></p>
<p class="MsoNormal" dir="LTR" style="margin-bottom:0.0001pt;text-align:justify;direction:ltr"><span style="font-size:13pt;font-family:'Times New Roman',serif;color:rgb(50,61,79)"> </span></p>
<p class="" dir="LTR" style="margin-right:0cm;background-color:rgb(220,225,229);direction:ltr"><span style="font-size:13pt;font-family:'Times New Roman',serif;color:rgb(50,61,79)">2-<span style="font-size:7pt;font-family:'Times New Roman'"> 2-</span></span><span dir="LTR"></span><span style="font-size:13pt;font-family:'Times New Roman',serif;color:rgb(50,61,79)">The masked values are
not NaN, but rather some strange 1.e38 value picked to never be a valid value.
You need to tell your plotting software to use a mask for anything equal to the
_FillValue. ncdump and ncview know to do that.</span></p>
<p class="" dir="RTL" style="margin-right:0cm"><br></p>
<p class="MsoNormal" dir="LTR" style="background-color:rgb(220,225,229);direction:ltr"><span style="font-size:13pt;font-family:'Times New Roman',serif;color:rgb(50,61,79)">3-Your
choices are to look at the source code and fix it yourself or to submit a bug
report to the maker of the software.</span><span style="font-size:13pt;font-family:'Times New Roman',serif;color:rgb(50,61,79)"></span></p><p class="MsoNormal" dir="LTR" style="background-color:rgb(220,225,229);direction:ltr">
<span style="font-size:13pt;font-family:'Times New Roman',serif;color:rgb(50,61,79)"><br></span></p>
<p class="MsoNormal" dir="LTR" style="direction:ltr"><span style="font-size:13pt;font-family:'Times New Roman',serif">Bas on this replies would you please help and guide
e how I can do that till be able to plot correctly.</span></p>
<p class="MsoNormal" dir="LTR" style="direction:ltr"><span style="font-size:13pt;font-family:'Times New Roman',serif">Thanks in advance for your attention</span></p>
<p class="MsoNormal" dir="LTR" style="direction:ltr"><span style="font-size:13pt;font-family:'Times New Roman',serif">Cheers</span></p>
<p class="MsoNormal" dir="LTR" style="direction:ltr"><span style="font-size:13pt;font-family:'Times New Roman',serif">fereshte</span></p>
<p class="MsoNormal" dir="LTR" style="direction:ltr"><span style="font-size:13pt;font-family:'Times New Roman',serif"> </span></p>
<p class="MsoNormal" dir="LTR" style="direction:ltr"><span style="font-size:13pt;font-family:'Times New Roman',serif"> </span></p><div><br></div>-- <br><div style="text-align:center"><font style="background-color:rgb(204,51,204)" color="#ffffff" size="4" face="comic sans ms,sans-serif"><strong>**Angel**</strong></font></div>
<div style="text-align:center"> </div>
<div style="text-align:center"><span><strong><u><font style="background-color:rgb(51,51,255)" color="#ffff33" size="4" face="Arial Narrow"></font></u></strong></span> </div>
</div>