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

Generate consolidated .py script for running ParFlow subsets #24

Open
arezaii opened this issue Dec 16, 2020 · 0 comments
Open

Generate consolidated .py script for running ParFlow subsets #24

arezaii opened this issue Dec 16, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@arezaii
Copy link
Contributor

arezaii commented Dec 16, 2020

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>)
@arezaii arezaii added the enhancement New feature or request label Dec 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant