Skip to content
This repository was archived by the owner on May 20, 2024. It is now read-only.
This repository was archived by the owner on May 20, 2024. It is now read-only.

Generate consolidated .py script for running ParFlow subsets #24

@arezaii

Description

@arezaii

The current output is just a .yaml, .json, and .pfidb file that a user can then use to run ParFlow.

A nice enhancement would be to generate an additional output, a single .py file that contains all the commands to load, validate, distribute, and run the model, so a user would just need to do something like python run_my_subset.py rather than having to instantiate a Run object and run it as follows:

from parflow.tools import Run
sim = Run.from_definition(<path and filename>)
sim.validate(verbose=True)
sim.dist(sim.TopoSlopesX.FileName)
sim.dist(sim.TopoSlopesY.FileName)
sim.run(working_directory=<path>)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions