> What does the (0) Number missing statement refer to?
When NCL prints a line, it provides the subscript(s) of the
values being printed. NCL subscripts begin at 0.
nmsg = num(ismissing(x))
nmsg is a scalar or it can be viewed as
an array of length 1.
--- When you do print ("Number missing = " + num(ismissing(temp_mod1_all))) This creates a temporary variable of length 1 and type string. Think s = "Number missing = " + num(ismissing(temp_mod1_all)) print(s) --- You have 3,144,960 missing values. On 3/10/11 12:14 PM, Madeleine Patterson wrote: > Hi Dave, > > Thanks for your email a couple days ago. I did as you suggested and the > output from the print statements was > > Variable: fsr_mod1_all > Type: float > Total Size: 12579840 bytes > 3144960 values > Number of Dimensions: 3 > Dimensions and sizes: [time | 240] x [lat | 91] x [lon | 144] > Coordinates: > time: [10981..18250] > lat: [-90..90] > lon: [ 0..357.5] > Number Of Attributes: 5 > long_name : reflected solar radiation > units : watt/m^2 > cell_method : time: mean > _FillValue : 1e+36 > missing_value : 1e+36 > (0) Number missing =1727760 > > > What does the (0) Number missing statement refer to? > > The NCL version I'm using is 5.2.0 > > Thanks > Madeleine > > > On Tue, Mar 8, 2011 at 4:51 PM, Dave Allured <dave.allured@noaa.gov > <mailto:dave.allured@noaa.gov>> wrote: > > It would help to have a little more information. Please insert the > following three commands just above the month_to_annual statement, > and show the full output from them: > > printVarSummary (temp_mod1_all) > print ("Number missing = " + num(ismissing(temp_mod1_all))) > exit > > Also, what version of NCL are you using? > > --Dave > > > On 3/8/2011 8:11 AM, Madeleine Patterson wrote: > > Hi, > > I am trying to calculate annual means from monthly data and have > struck an error message using the month_to_annual(var,1) function: > > temp_mod1_annmean = month_to_annual(temp_mod1_all,1) > > The error message I get is: > > > fatal:mask: dimension sizes of parameter 0 and parameter 1 do > not match > fatal:Execute: Error occurred at or near line 8537 in file > $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl > > fatal:Execute: Error occurred at or near line 73 in file > Annual_mean_diffmap.ncl > > I did look at past instances of this error message in archived > NCL-talk messages, and but have figured out how to name the > dimensions of my variable other than by doing: > > > temp_mod1_all_dims = dimsizes(temp_mod1_all) > print(temp_mod1_all_dims) > > ntim = temp_mod1_all_dims(0) > nlat = temp_mod1_all_dims(1) > nlon = temp_mod1_all_dims(2) > > > But this is not quite what you'd written to another person who > encountered this problem: > > "From: Mary Haley <haley_at_nyahnyahspammersnyahnyah> > Date: Wed May 26 2010 - 10:29:24 MDT > .... > One requirement is that your dimensions are named. Is this the case? > > load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl" > > var_raw = random_uniform(0.,2.,(/360,146,196/)) > var_raw!0 = "time" > var_raw!1 = "lat" > var_raw!2 = "lon" > > var = month_to_annual(var_raw, 1) " > > I'm not sure how to specify my particular variable in the above > form.... and hence not sure how to solve this particular error > message. > > Thanks for any help you can give me - this problem has stumped me > for a while. > > Best, > Madeleine > > > > _______________________________________________ > ncl-talk mailing list > List instructions, subscriber options, unsubscribe: > http://mailman.ucar.edu/mailman/listinfo/ncl-talk > > > > > _______________________________________________ > ncl-talk mailing list > List instructions, subscriber options, unsubscribe: > http://mailman.ucar.edu/mailman/listinfo/ncl-talk _______________________________________________ ncl-talk mailing list List instructions, subscriber options, unsubscribe: http://mailman.ucar.edu/mailman/listinfo/ncl-talkReceived on Thu Mar 10 14:10:24 2011
This archive was generated by hypermail 2.1.8 : Thu Mar 10 2011 - 21:44:37 MST