Re: [error] gsn_csm_contour_map_ce: Fatal: the input data array must be 1D or 2D

From: Debasish PaiMajumdar <debasish_at_nyahnyahspammersnyahnyah>
Date: Sun May 11 2014 - 13:56:59 MDT

Hi
You are trying to plot tsm which is a three dimensional array.
Please try
> gsn_csm_contour_map_ce(wks,tsm(0,0,:,:),res)

With regards
Deb

Sent from my iPhone

> On May 11, 2014, at 12:41 PM, VanĂșcia Schumacher <vanucia-schumacher@hotmail.com> wrote:
>
> Hi users,
>
> When I run:
>
> fils = systemfunc("ls *.nc")
> f = addfiles(fils, "r")
> ListSetType(f,"join")
> t =f[:]->tos
> tsm = t - 273.15
>
> ....
>
> plot = gsn_csm_contour_map_ce(wks,tsm(:,0,:,:),res)
>
> ;.............................................
>
> printVarSummary(t) shows me:
>
> Variable: t
> Type: float
> Total Size: 47185920 bytes
> 11796480 values
> Number of Dimensions: 4
> Dimensions and sizes: [ncl_join | 2] x [time | 120] x [lat | 192] x [lon | 256]
> Coordinates:
> time: [47830.5..51449.5]
> lat: [-89.42961883544922..89.42961883544922]
> lon: [0.703125..359.296875]
> Number Of Attributes: 11
> standard_name : sea_surface_temperature
> long_name : Sea Surface Temperature
> comment : "this may differ from ""surface temperature"" in regions of sea ice."
> units : K
> original_name : SST
> cell_methods : time: mean (interval: 20 minutes)
> cell_measures : area: areacello
> history : 2011-04-25T08:42:59Z altered by CMOR: replaced missing value flag (1e+38) with standard missing value (1e+20).
> missing_value : 1e+20
> _FillValue : 1e+20
> associated_files : baseURL: http://cmip-pcmdi.llnl.gov/CMIP5/dataLocation gridspecFile: gridspec_ocean_fx_CanCM4_decadal1980_r0i0p0.nc areacello: areacello_fx_CanCM4_decadal1980_r0i0p0.nc
> (0) gsn_csm_contour_map_ce: Fatal: the input data array must be 1D or 2D
> fatal:Illegal right-hand side type for assignment
>
> Where am I wrong?
>
>
> ---
> 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

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sun May 11 13:57:20 2014

This archive was generated by hypermail 2.1.8 : Tue May 20 2014 - 10:18:04 MDT