|
PHYEX 0.9.5
PHYsique EXternalisée
|
Functions | |
| _budget_sum (hdf5, variables, schemes, processes) | |
| budgets (hdf5) | |
| start_date (hdf5) | |
| export (hdf5file, ncfile) | |
Variables | |
| MISSING_VALUE = numpy.float32(1.e20) | |
| dict | DEPHYCF_VARIABLES |
| dict | EXTRA_VARIABLES |
| dict | STATE_VARIABLES |
| dict | REDUNDANT_VARIABLES |
| list | BUDGET_GROUPS |
| tuple | PHYSICS_SCHEMES = ('adjust', 'micro', 'turb', 'shallow', 'rad') |
| dict | HYDROMETEOR_TENDENCIES |
| tuple | WATER_VARIABLES = ('RV', 'RC', 'RR', 'RI', 'RS', 'RG', 'RH') |
Conversion of the results of an experiment into a netCDF file following the DEPHY common format (dephycf) for SCM outputs, as done by EMS (https://github.com/romainroehrig/EMS, examples/post.dephycf/variables.py and ems/lfa2nc_dephycf.py): - variable names, units and standard_name attributes of the dephycf table of EMS - levf (full levels) and levh (half levels) dimensions, time dimension in seconds since the start date of the case - NETCDF3_CLASSIC format, float32 values, 1.e20 as missing value Variables without dephycf equivalent are written with their phyex1d name, except the ones whose information is already in the file (mixing ratios, kinematic surface fluxes...). Budgets (bu_<scheme>_<variable>_<process> variables) are summed by scheme and converted into the dephycf tendencies.
|
protected |
Sum of the budgets :param hdf5: result file :param variables: budget variables (TH, RV...) :param schemes: list of schemes :param processes: list of processes, None for all :return: sum (None if no budget variable is found)
Definition at line 212 of file dephycf_export.py.

| pyphyex.phyex1d.dephycf_export.budgets | ( | hdf5 | ) |
dephycf tendencies computed from the budgets of a result file
:param hdf5: result file (h5py File)
:return: dictionary {dephycf name: values}
Definition at line 231 of file dephycf_export.py.


| pyphyex.phyex1d.dephycf_export.export | ( | hdf5file, | |
| ncfile ) |
Converts a result file into a netCDF file following the DEPHY common format :param hdf5file: result file of an experiment :param ncfile: netCDF file to produce
Definition at line 275 of file dephycf_export.py.

| pyphyex.phyex1d.dephycf_export.start_date | ( | hdf5 | ) |
Start date of the case :param hdf5: result file (h5py File) :return: start date as a string, None if unknown
Definition at line 258 of file dephycf_export.py.

| list pyphyex.phyex1d.dephycf_export.BUDGET_GROUPS |
Definition at line 154 of file dephycf_export.py.
| dict pyphyex.phyex1d.dephycf_export.DEPHYCF_VARIABLES |
Definition at line 29 of file dephycf_export.py.
| dict pyphyex.phyex1d.dephycf_export.EXTRA_VARIABLES |
Definition at line 117 of file dephycf_export.py.
| dict pyphyex.phyex1d.dephycf_export.HYDROMETEOR_TENDENCIES |
Definition at line 207 of file dephycf_export.py.
| pyphyex.phyex1d.dephycf_export.MISSING_VALUE = numpy.float32(1.e20) |
Definition at line 26 of file dephycf_export.py.
| tuple pyphyex.phyex1d.dephycf_export.PHYSICS_SCHEMES = ('adjust', 'micro', 'turb', 'shallow', 'rad') |
Definition at line 206 of file dephycf_export.py.
| dict pyphyex.phyex1d.dephycf_export.REDUNDANT_VARIABLES |
Definition at line 143 of file dephycf_export.py.
| dict pyphyex.phyex1d.dephycf_export.STATE_VARIABLES |
Definition at line 132 of file dephycf_export.py.
| tuple pyphyex.phyex1d.dephycf_export.WATER_VARIABLES = ('RV', 'RC', 'RR', 'RI', 'RS', 'RG', 'RH') |
Definition at line 209 of file dephycf_export.py.