Changeset 666 in lmdz_wrf


Ignore:
Timestamp:
Jan 13, 2016, 3:47:00 PM (9 years ago)
Author:
lfita
Message:

Adding `VarVal_FillValue': Function to transform a given value from a given variable to _FillValue in a netCDF file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var.py

    r662 r666  
    4040  'TimeSplitmat', 'timemean', 'valmod', 'valmod_dim','varaddattrk', 'varaddattr',    \
    4141  'varaddref',                                                                       \
    42   'var_creation', 'varout', 'varoutold', 'varrmattr', 'varrm', 'vrattr',             \
    43   'WRF_d0Nref',                                                                      \
     42  'var_creation', 'varout', 'varoutold', 'varrmattr', 'varrm', 'VarVal_FillValue',   \
     43  'vrattr', 'WRF_d0Nref',                                                            \
    4444  'WRF_CFlonlat_creation', 'WRF_CFtime_creation', 'WRF_CFxtime_creation',            \
    4545  'list_operations']
     
    255255elif oper == 'varrm':
    256256    ncvar.varrm(opts.ncfile, opts.varname)
     257elif oper == 'VarVal_FillValue':
     258    ncvar.VarVal_FillValue(opts.values, opts.ncfile, opts.varname)
    257259elif oper == 'vrattr':
    258260    ncvar.vrattr(opts.values, opts.ncfile, opts.varname)
Note: See TracChangeset for help on using the changeset viewer.