pylag.netcdf_logger module
Module containing classes that facilitate the writing of data to file
- class pylag.netcdf_logger.NetCDFLogger(config, file_name, start_datetime, n_particles, grid_names)[source]
Bases:
object
NetCDF data logger.
Objects of type NetCDFLogger can be used to write particle data to file.
- Parameters
config (ConfigParser) – Configuration object
file_name (str) – Name of the *.nc output file to be generated. If the .nc extension is not present it is automatically added.
start_datetime (str) – String giving the simulation start date and time.
n_particles (int) – The number of particles.
grid_names (list[str]) – List of grids on which input data is defined.