Hi,
I tried to replace a char array (species_name in the following netCDF
file) with different gas names. It always give me the error message "
Assignment type mismatch, right hand side can't be coerced to type of left
hand side". I tried different combinations such as stringtochar and
chartostring and did not work.
Thanks for your help in advance.
Lei
Here is the information from the netCDF file.
-------------------------------
dimensions:
lon = 192 ;
lat = 94 ;
species = 16 ;
land_types = 11 ;
string_len = 20 ;
time = UNLIMITED ; // (12 currently)
variables:
float lat(lat) ;
lat:long_name = "Latitude of cell center" ;
lat:units = "degrees" ;
float lon(lon) ;
lon:long_name = "Longitude of cell center" ;
lon:units = "degrees" ;
char species_name(species, string_len) ;
species_name:long_name = " " ;
species_name:units = " " ;
int date(time) ;
date:long_name = "YYYYMM" ;
date:units = " " ;
float fraction_land_type(land_types, lat, lon) ;
fraction_land_type:long_name = "fraction of each land type"
;
fraction_land_type:units = "%" ;
float dvel(time, species, lat, lon) ;
dvel:long_name = "deposition velocities" ;
dvel:units = "m/s" ;
species_name =
"O3 ",
"CO ",
"CH4 ",
"CH2O ",
"CH3OOH ",
"H2O2 ",
"NO2 ",
"HNO3 ",
"PAN ",
"CH3COCH3 ",
"CH3COOOH ",
"CH3CHO ",
"CH3COCHO ",
"NO ",
"HNO4 ",
"NH3 " ;
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Mar 30 14:54:01 2010
This archive was generated by hypermail 2.1.8 : Thu Apr 01 2010 - 11:31:45 MDT