<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Do you get the warnings if you don't have the <tt>where</tt>
statement at all?<br>
<br>
Also, check the plots. They may be correct even though you are
getting this warning.<br>
<br>
- Walter<br>
<br>
<div class="moz-cite-prefix">On 24-Jun-15 18:07, Erik J.
Schaffernicht wrote:<br>
</div>
<blockquote cite="mid:558B2A16.3020908@uni-koeln.de" type="cite">___
Using NCL 6.3.0 (2015-Mar) ____
<br>
<br>
Here is the printVarSummary()output. First the one before
where(w2) is executed, second one after where(w2).
<br>
I checked the printVarSummary-output before writing to ncl-talk
and as they look to me quite identical I did not post them, sorry
for that. Now, here you can check them (see in the following).
However, the warnings occur even though the
printVarSummary()-output looks identical.
<br>
<br>
<br>
<br>
Variable: w2
<br>
Type: double
<br>
Total Size: 518400 bytes
<br>
64800 values
<br>
Number of Dimensions: 2
<br>
Dimensions and sizes: [lat | 180] x [lon | 360]
<br>
Coordinates:
<br>
lat: [-89.5..89.5]
<br>
lon: [-180.. 179]
<br>
Number Of Attributes: 8
<br>
missing_value : 1e+20
<br>
standard_name : sediProbab
<br>
long_name : Orography (m)
<br>
units : <br>
years_ago : 21k, Last Glacial Max
<br>
_FillValue_original : 1e+20
<br>
missing_value_original : 1e+20
<br>
_FillValue : 1e+20
<br>
<br>
Variable: w2
<br>
Type: double
<br>
Total Size: 518400 bytes
<br>
64800 values
<br>
Number of Dimensions: 2
<br>
Dimensions and sizes: [lat | 180] x [lon | 360]
<br>
Coordinates:
<br>
lat: [-89.5..89.5]
<br>
lon: [-180.. 179]
<br>
Number Of Attributes: 8
<br>
missing_value : 1e+20
<br>
standard_name : sediProbab
<br>
long_name : Orography (m)
<br>
units : <br>
years_ago : 21k, Last Glacial Max
<br>
_FillValue_original : 1e+20
<br>
missing_value_original : 1e+20
<br>
_FillValue : 1e+20
<br>
<br>
<br>
<br>
<br>
<br>
<br>
--- robust but long method ----
<br>
w2=sediProbab
<br>
w2=where(landAreaFrV .lt. 0.5, w2@_FillValue, w2)
<br>
copy_VarMeta(sediProbab,w2)
<br>
sediProbab=w2
<br>
<br>
to
<br>
<br>
<br>
--- possibly shorter way, more convenient approach but
warnings occur ---
<br>
sediProbab=where(landAreaFrV .lt. 0.5, sediProbab@_FillValue,
sediProbab)
<br>
<br>
<br>
<br>
<br>
<br>
<br>
The Warnings:
<br>
<br>
(0) check_for_y_lat_coord: Warning: Data either does not
contain a
<br>
valid latitude coordinate array or doesn't contain one at all.
<br>
(0) A valid latitude coordinate array should have a 'units'
attribute
<br>
equal to one of the following values:
<br>
(0) 'degrees_north' 'degrees-north' 'degree_north' 'degrees
north'
<br>
'degrees_N' 'Degrees_north' 'degree_N' 'degreeN' 'degreesN' 'deg
north'
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
ncl-talk mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>
List instructions, subscriber options, unsubscribe:
<a class="moz-txt-link-freetext" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Walter Kolczynski, Jr.
Global Ensemble Team
NOAA/NWS/NCEP/EMC (via I.M. Systems Group)
(301) 683-3781</pre>
</body>
</html>