Hello,
> f_out.create_variable('Tsfc', 'f', ('time', 'lat', 'lon'))
> # Create variable attributes
> f_out.variables['Tsfc'].varAttName = 'standard_name'
> f_out.variables['Tsfc'].varAttName = 'units'
> f_out.variables['Tsfc'].varAttName = '_FillValue'
> f_out.variables['Tsfc'].varAttName = 'missing_value'
> f_out.variables['Tsfc'].varAttName = 'scale_factor'
> f_out.variables['Tsfc'].varAttName = 'add_offset'
The 'varAttName' is the actual attribute name, so you are setting this 6
times in a row and that's why your result has varAttName = 'add_offset',
which is the last in the series....
f_out.variables['Tsfc'].units = 'DegC'
should work...
daryl
-- /** * Daryl Herzmann * Assistant Scientist -- Iowa Environmental Mesonet * http://mesonet.agron.iastate.edu */ _______________________________________________ pyngl-talk mailing list List instructions, subscriber options, unsubscribe: http://mailman.ucar.edu/mailman/listinfo/pyngl-talkReceived on Tue Sep 17 13:47:42 2013
This archive was generated by hypermail 2.1.8 : Fri Nov 22 2013 - 09:37:03 MST