konrad.cloud.PhysicalCloud.from_netcdf

classmethod PhysicalCloud.from_netcdf(ncfile, timestep=- 1, *args, **kwargs)

Load a model component from a netCDF file.

Note

The konrad.netcdf.NetcdfHandler converts variables of type double variables into float to reduce disk space. However, the underlying climt library requires input for konrad.radiation.RRTMG to be of type double. Make sure to perform the respective typecasting when reading variables from netCDF files.

Parameters
  • ncfile (str) – Path to the netCDF file.

  • timestep (int) – Index of timestep to read.