generated from NOAA-OWP/owp-open-source-project-template
-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need for an output_root directory #857
Comments
Once #744 this should no longer be an issue. |
Should have mentioned #744, but this gives more complete description with
proposed solutions.
…On Thu, Jul 18, 2024 at 12:27 PM Austin Raney ***@***.***> wrote:
Once #744 <#744> this should no
longer be an issue.
—
Reply to this email directly, view it on GitHub
<#857 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACA4SRMMRJREDBWY24Y3UDDZM73JPAVCNFSM6AAAAABLDB6R5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZXGEZDQMRUGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
@SnowHydrology, Potentially? The design we have right now allows it, but that could change. |
Thanks @aaraney. To clarify, the design would currently allow the user to change the output file names, but it may not in the future? |
@SnowHydrology, correct. |
Closed via#855. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In recent CONUS baseline testing, it is realized that a specific sub-directory is needed to store the ngen output data files, which count to over a million. Current form of realization files writes these files to project directory, which makes working in the directory extrmely incovennient. For example, a simple
ls
command takes many minutes to complete. Then you cannot spot the file you are looking for. In general, such situation would arise for any relatively large basin.Code exists that accommodate this. But requires the user to create the sub-directory in advance, otherwise, it default to project directory. A updated version of the code added a safety feature for case the user forget to create the needed sub-directory.
To alleviate the problem, all current realization files need to add the following line:
"output_root": "./output_dir/"
at the top level of the realization json tree. That will make ngen to write all the output files to ./output_dir. You are free to choose your own favorite name instead of "output_dir". At the time of this writing, if you forget to create
./output_dir/
in advance before running, the default output directory is the project directory.The updated code (to be merged) throws an error if you do not created the output_root before starting ngen to remind you to create the subdirectory before things get messy. It may require all updated realization to be merged first.
Current behavior
Large amount of output files when running ngen for CONUS or any large basin.
Expected behavior
Output files are written to a user specified directory to keep the project directory clean.
Steps to replicate behavior (include URLs)
ngen
in framework for a relatively large basinScreenshots
The text was updated successfully, but these errors were encountered: