Configuring PyDom

PyDom comes with its set of defaults parameters and methods. In case you want to change those parameters, please follow these instructions.

User-defined configuration files

The setup.py installation script creates a directory .PyDom in the home directory. This is the place where the user can provide user-specific information about

  • the available datasets on the system : .PyDom/rc_datasets.py
  • the available grids : .PyDom/rc_grids.py
  • PyDom parameters :.PyDom/rc_params.py

Example files are provided with PyDom distribution (within the directory cfg/). Those files are copied within .PyDom/ during the standard installation. The use can edit those files to set its own configuration. Some more details are also provided here.

Run-time configuration

The user can also change PyDom parameters at the run-time with the function PyDom.rc:

import PyDom
PyDom.rc(netcdf_interface_module='pynetcdf')