Re: warning:ContourPlotInitialize: no valid values in scalar field; ContourPlot not possible:[errno=1101]

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Fri Jun 13 2014 - 14:18:31 MDT

This is the same problem as before: the media array has no lat/lon
information associated with it.

Your variable has a "coordinates" attribute, which tells you what the
lat/lon arrays should be called on the file. So, you need to do the
lat2d/lon2d setting I showed you before:

t@lat2d = f->lat
t@lon2d= f->lon

--Mary



On Thu, Jun 12, 2014 at 1:14 PM, Vanúcia Schumacher <
vanucia-schumacher@hotmail.com> wrote:

> My script is not plotting the data, only giving warnings:
>
> warning:ContourPlotInitialize: no valid values in scalar field;
> ContourPlot not possible:[errno=1101]
> warning:MapTransSetValues: latitude min exceeds max: exchanging values
>
> f = addfile("sit1.nc", "r")
> t =f->media
> media= dim_avg_n_Wrap(t,0)
> wkstype= "png"
> wks = gsn_open_wks(wkstype,"ice_ipsl_NS")
> gsn_define_colormap(wks,"WhiteBlue")
> res = True
> res@gsnAddCyclic = False
> res@mpMinLatF = -60
> res@mpMaxLonF = -90
> res@cnLevelSelectionMode ="ManualLevels"
> res@cnMinLevelValF =0
> res@cnMaxLevelValF = 2
> res@cnLevelSpacingF = 0.1
> res@cnLinesOn = False
> res@cnFillOn = True
> res@gsnPolar = "SH"
> plot = gsn_csm_contour_map_polar(wks,media({-60:-90},{0:360}),res)
> end
>
> printVarSummary(t)
>
> ariable: t
> Type: float
> Total Size: 23328000 bytes
> 5832000 values
> Number of Dimensions: 3
> Dimensions and sizes: [time | 360] x [j | 90] x [i | 180]
> Coordinates:
> time: [15.5..10934.5]
> j: [-87.86..87.86]
> i: [ 0..358]
> Number Of Attributes: 12
> _FillValue : 1e+20
> standard_name : sea_ice_thickness
> long_name : Sea Ice Thickness
> comment : the mean thickness of sea ice in the ocean portion of the
> grid cell (averaging over the entire ocean portion, including the ice-fre=
e
> fraction). Reported as 0.0 in regions free of sea ice.
> units : m
> original_name : iicethic
> cell_methods : time: mean (interval: 30 minutes) area: mean where sea
> cell_measures : area: areacello
> history : 2011-11-11T12:43:09Z altered by CMOR: replaced missing value
> flag (9.96921e+36) with standard missing value (1e+20).
> associated_files : baseURL:
> http://cmip-pcmdi.llnl.gov/CMIP5/dataLocation gridspecFile:
> gridspec_seaIce_fx_IPSL-CM5A-LR_decadal1980_r0i0p0.nc areacello:
> areacello_fx_IPSL-CM5A-LR_decadal1980_r0i0p0.nc
> coordinates : lat lon
> missing_value : 1e+20
>
>
> ---
> Vanúcia Schumacher
> Mestranda em Meteorologia - UFV
> Meteorologista -UFPel
> Departamento de Meteorologia Agrícola - DEA
> Cel: (31) 9978 2522
> DEA: (31) 3899 1890
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>

Received on Fri Jun 13 08:18:31 2014

This archive was generated by hypermail 2.1.8 : Wed Jul 23 2014 - 15:33:46 MDT