error scalar_field: If the input data is 1-dimensional, you must set sfXArray and sfYArray to 1-dimensional arrays of the same length.

From: Vanúcia Schumacher <vanucia-schumacher_at_nyahnyahspammersnyahnyah>
Date: Sun Jun 01 2014 - 17:00:59 MDT

Hi users,
I needed to interpolate the resolution of my data, and now I'm getting this error:
(0) Error: scalar_field: If the input data is 1-dimensional, you must set sfXArray and sfYArray to 1-dimensional arrays of the same length.warning:create: Bad HLU id passed to create, ignoring it
My code:
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl" load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl" load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
begin
f=addfile("sit1.nc","r")
;print(f)
ice =f->SIT_NEW(0,:,:)
media= dim_avg_n_Wrap(ice,0)
wkstype= "png"wkstype@wkWidth = 1000wkstype@wkHeight = 1000wks = gsn_open_wks(wkstype,"ice_2deg")
gsn_define_colormap(wks,"WhiteBlue")
res = Trueres@cnLevelSelectionMode ="ManualLevels"res@cnMinLevelValF =0 res@cnMaxLevelValF = 2res@cnLevelSpacingF = 1
res@cnLinesOn = False res@cnFillOn = True
   plot = gsn_csm_contour_map_ce(wks,media,res)
end
print(f)
Variable: fType: filefilename: sit1path: sit1.nc file global attributes: history : FERRET V6.9 30-May-14 Conventions : CF-1.0 dimensions: X2DEG = 181 Y2DEG = 91 TIME = 120 // unlimited bnds = 2 variables: double X2DEG ( X2DEG ) units : degrees_east point_spacing : even axis : X standard_name : longitude
      double Y2DEG ( Y2DEG ) units : degrees_north point_spacing : even axis : Y standard_name : latitude
      double TIME ( TIME ) bounds : TIME_bnds units : days since 1850-01-01 00:00:00 calendar : 365_day axis : T long_name : time standard_name : time
      double TIME_bnds ( TIME, bnds )
      double SIT_NEW ( TIME, Y2DEG, X2DEG ) missing_value : -9.999999999999999e+33 _FillValue : -9.999999999999999e+33 long_name : SIT[GX=X2DEG,GY=Y2DEG] history : From sit_OImon_CanCM4_decadal1980_r1i1p1_198101-199012

---Vanúcia SchumacherMestranda em Meteorologia - UFVMeteorologista -UFPel
Departamento de Meteorologia Agrícola - DEACel: (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 Sun Jun 1 17:01:14 2014

This archive was generated by hypermail 2.1.8 : Tue Jun 03 2014 - 11:40:09 MDT