ESA.surface.convert_netcdf_flux_bpch
index
/home/lfeng/otool/ESA/surface/convert_netcdf_flux_bpch.py

Functions for write file to GEOS-Chem BPCH2 file 
 
Authors: L. Feng, Edinburgh University
History: v0.9, 2012.10.12
History: v0.95, 2013.02.01
 
 
Functions:
==========================================================
1. convert_nc_ens_flux_bpch: read into ensemble flux and save them to bpch2 file.

 
Modules
       
ESA.util.otool_ncfile_io
numpy
ESA.util.otool_var_io
ESA.util.time_module
ESA.surface.write_flux_bpch

 
Functions
       
convert_nc_ens_flux_bpch(ncflnm, tau0, tau1, varname_lst=['lon', 'lat', 'map', 'flux'], varname_dict={'lat': 'lat', 'lon': 'lon', 'reg_flux': 'flux', 'regmap': 'map'}, bpch_flux_flnm='region_flux_ml', bpch_map_flnm='region_map_ml', save_split_necdf=True)
read into ensemble flux and save them to bpch2 file. 
 
Inputs:
----------------------------------------------------------
1. ncflnm:<str>: netcdf file name 
2. tau0, tau1:<float>: start and end time 
3. varname_lst:<list, t:str>: list of variables to be read in 
4. varname_dict:<dict>: translate name used in codes to name from netcdf file 
5. bpch_flux_flnm:<str>: name for output flux 
6. bpch_map_ml:<str>: name for output map 
7. save_split_necdf:<T/F>: If ture, netcdf conuterparts will be  
 
Notes: