Re: fatal:Dimension sizes of left hand side and right hand side of assignment do not match

From: Vanúcia Schumacher <vanucia-schumacher_at_nyahnyahspammersnyahnyah>
Date: Mon Jun 02 2014 - 15:56:07 MDT

Hi Wei,
Variable: new_lonType: floatTotal Size: 720 bytes 180 valuesNumber of Dimensions: 1Dimensions and sizes: [180]Coordinates:
Variable: new_latType: floatTotal Size: 360 bytes 90 valuesNumber of Dimensions: 1Dimensions and sizes: [90]Coordinates:
Variable: new_varType: floatTotal Size: 7776000 bytes 1944000 valuesNumber of Dimensions: 3Dimensions and sizes: [time | 120] x [LAT | 90] x [LON | 180]Coordinates: time: [47830.5..51449.5] LAT: [-87.86..87.86] LON: [ 0..357]Number Of Attributes: 11 _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-free fraction). Reported as 0.0 in regions free of sea ice. units : m original_name : SIC cell_methods : time: mean (interval: 20 minutes) area: mean where sea cell_measures : area: areacello history : 2011-05-05T18:21:10Z altered by CMOR: replaced missing value flag (1e+38) with standard missing value (1e+20). associated_files : baseURL: http://cmip-pcmdi.llnl.gov/CMIP5/dataLocation gridspecFile: gridspec_seaIce_fx_CanCM4_decadal1980_r0i0p0.nc areacello: areacello_fx_CanCM4_decadal1980_r0i0p0.nc missing_value : 1e+20
fatal:Dimension sizes of left hand side and right hand side of assignment do not match

---Vanúcia SchumacherMestranda em Meteorologia - UFVMeteorologista -UFPel
Departamento de Meteorologia Agrícola - DEACel: (31) 9978 2522 DEA: (31) 3899 1890

From: huangwei@ucar.edu
Date: Mon, 2 Jun 2014 15:29:20 -0600
Subject: Re: fatal:Dimension sizes of left hand side and right hand side of assignment do not match
To: vanucia-schumacher@hotmail.com
CC: ncl-talk@ucar.edu

Vanucia,

before line:
file_create->media = new_var

Thanks,
Wei

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" load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"
beginfile_name = addfile("sit_OImon_CanCM4_decadal1980_r1i1p1_198101-199012.nc", "r") var = file_name->sitfile_create = addfile("teste2.nc", "c") new_lon = fspan(0, 357, 180) new_lat = fspan(-87.86, 87.86, 90) new_var = linint2_Wrap(var&lon,var&lat,var,True,new_lon,new_lat,0)new_var!0 ="lat"new_var!1 = "lon"new_var&lat = new_latnew_var&lon = new_lon new_var&lat@units = "degrees_north"new_var&lon@units = "degrees_east" file_create->media = new_varend
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 lat ( lat ) bounds : lat_bnds units : degrees_north axis : Y long_name : latitude standard_name : latitude
      double lat_bnds ( lat, bnds )

      double lon_bnds ( lon, bnds )
      float sit ( time, lat, lon ) standard_name : sea_ice_thickness long_name : Sea Ice Thickness

                                               
_______________________________________________

                                               

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Jun 2 15:56:20 2014

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