8.5.2. Run Class
- class parflow.tools.core.Run(name, basescript=None)
Bases:
BaseRunMain object that can be used to define a ParFlow simulation
- Parameters:
name (str) – Name for the given run.
basescript (str) – Path to current file so the simulation execution and relative path will be assumed to have the script directory as their working directory. If not provided, the working directory will be the directory where the python executable was run from.
Methods
Method to generate a Run object from a file. |
|
Returns name of run |
|
Setting new name for a run |
|
Method to write database file to disk |
|
Method to generate a clone of a run (for generating run ensembles, etc.) |
|
Method to run simulation |
|
Check the input files for NaNs. |
|
Distribute a PFB file using the P/Q/R settings from the run or override them with the provided arguments. |
|
Undistribute a PFB file. |
Inherited Methods
Return details based on a location. |
|
Return docs based on a location. |
|
Return a list of PFDBObj of a given type that are part of our children. |
|
Return global settings for our current parflow run. |
|
Gets the key names necessary for the run while skipping unset ones |
|
Allow to define any parflow key so it can be exported. Many formats are supported: - key/value: To set a single value relative to our current PFDBObj. - yaml_file: YAML file path to load and import using the current PFDBObj as root. - yaml_content: YAML string to load and import using the current PFDBObj as root. - hierarchical_map: Nested dict containing several key/value pair using the current PFDBObj as root. - flat_map: Flat dict with parflow key/value pair to set using the current PFDBObj as root. |
|
Return a PFDBObj object based on a location. |
|
Method that will return a flat map of all the ParFlow keys. |
|
Helper method returning the key to use for Parflow on a given field key. |
|
Method to validate sub hierarchy |
|
Return a value based on a location. |
Attributes
Return a DataAccessor to streamline access to numpy array of the various field this run is linked to. |
|
Helper method returning the full name of a given ParFlow key. |