Attributes in new variables
Command-line operators for netCDF and HDF files
Brought to you by:
zender
I need to add a dimension time to the variable 'emi_so2' (two dimensions, lat and lon) and I therefore used the following:
emi_time[time,lat,lon]=emi_so2
'emi_so2' variable was created originally with a bunch of attributes that I would like to retrieve in my output variable 'emi_time'. How can I do this ?
Your example appears to use Left Hand Casting (LHC) in ncap2 to define emi_time. As explained in the manual here http://nco.sf.net/nco.html#att_prp, LHC does not invoke attribute propagation, you must do it manually as show here http://nco.sf.net/nco.html#ncap_att or rewrite you definition so it does not use LHC and then attribute propagation will occur automatically.
cz