[error]fatal:(lon) is not a named dimension in variable (var).

From: Vanúcia Schumacher <vanucia-schumacher_at_nyahnyahspammersnyahnyah>
Date: Thu Jun 12 2014 - 07:19:24 MDT

Hi users,
I need to interpolate the data for resolution of 2 degrees, and I'm havi=
ng this error:[error]fatal:(lon) is not a named dimension in variable (var)=
.
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"load "$NCARG_ROOT/l=
ib/ncarg/nclscripts/csm/gsn_csm.ncl"load "$NCARG_ROOT/lib/ncarg/nclscripts/=
csm/contributed.ncl"load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.nc=
l"
beginfils = systemfunc("ls *.nc") f = addfiles(fils, "r") =
                ListSetType(f,"join") t =f[:]->sitvar = f[:]->s=
ittime=f[:]->timesystem("rm -f teste2.nc") file_create = addfile("sit1.=
nc", "c") ;criando arquivo.new_lon = fspan(0, 360, 180) =
new_lat = fspan(-87.86, 87.86, 90) new_var = linint2_Wrap(va=
r&lon,var&lat,var,True,new_lon,new_lat,0)new_var!0="time"new_=
var!1 = "lon"new_var!2 ="lat"new_var&time=timenew_var&lat = new_lat=
new_var&lon = new_lonnew_var&lat@units = "degrees_north"new_var&lon@uni=
ts = "degrees_east" printVarSummary(new_var)file_create->media = new_va=
rend
print data: dimensions: time = 120 // unlimited lat = 64 =
  lon = 128 bnds = 2 variables: double time ( time ) =
  bounds : time_bnds units : days since 1850-1-1 calendar :=
 365_day axis : T long_name : time standard_name : =
time double time_bnds ( time, bnds ) double lat ( lat ) =
 bounds : lat_bnds units : degrees_north axis : Y l=
ong_name : latitude standard_name : latitude double lat_bnds (=
 lat, bnds ) double lon ( lon ) bounds : lon_bnds un=
its : degrees_east axis : X long_name : longitude s=
tandard_name : longitude double lon_bnds ( lon, bnds ) float si=
t ( time, lat, lon ) standard_name : sea_ice_thickness =
long_name : Sea Ice Thickness


---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 Thu Jun 12 01:19:36 2014

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