pytmosph3r.interface.netcdf
Module Contents
- class ncInput(filename)[source]
Bases:
pytmosph3r.interface.io.Input
Base class to read input data.
HDF5Input
andncInput
inherit from it.
- class ncOutput(filename, append=False)[source]
Bases:
pytmosph3r.interface.io.Output
,ncInput
Base class to write outputs.
HDF5Output
andncOutput
inherit from it.
- class ncGroup(f)[source]
Bases:
ncOutput
,abc.ABC
Base class to write outputs.
HDF5Output
andncOutput
inherit from it.
- 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.