pytmosph3r.interface.netcdf

Module Contents

class ncInput(filename)[source]

Bases: pytmosph3r.interface.io.Input

Base class to read input data. HDF5Input and ncInput inherit from it.

keys(path='.')[source]
getclass(path)[source]
abstract get(path)[source]
class ncOutput(filename, append=False)[source]

Bases: pytmosph3r.interface.io.Output, ncInput

Base class to write outputs. HDF5Output and ncOutput inherit from it.

abstract getclass(path)[source]
createDimension(*args, **kwargs)[source]
createVariable(*args, **kwargs)[source]
write_model(model, output=None, radius_scale: float = 1.0)[source]
write_mol_dict(mol_list, mol_dict, mol_type='vap')[source]

Write list of molecules (gas or aerosols).

write_mol(mol_data, mol_dict, mol, mol_type='vap', data='')[source]

Write one molecule.

abstract get(path)[source]
class ncGroup(f)[source]

Bases: ncOutput, abc.ABC

Base class to write outputs. HDF5Output and ncOutput inherit from it.

get(path)[source]
write_netcdf(filename, model, radius_scale: float = 0.0)[source]

Write a netCDF file using model, which can be viewed using ncview, ParaView, etc.

Parameters:
  • filename (string) – Name of the netCDF output file.

  • model (Model) – Model to write.

  • radius_scale (float) – Scale for planet radius (for visualization purposes). ncview prefers a scale of 0.