-
Notifications
You must be signed in to change notification settings - Fork 30
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
[1pt] PR: Create inputs for selected HUC(s) #1178
base: dev
Are you sure you want to change the base?
Conversation
Here are some example steps to add data to a Docker image and save it as a file using the command line Run Docker container
Add data to a container
Save container to an image
Export image to an image file
Load image file to Docker image
|
We are putting this on hold for a bit. As of one or two days ago the Whitebox installer is failing. They have been making updates, and even one hotfix last night, so they may still be actively fixing it. We will wait until next week and try again on our Docker builds tests. If worse comes to worse, we can see if we can extract Whitebox's old zip file from one of our current Docker images, put it in our Repo and use that to build new Docker image. We will see how this plays out over the next few weeks. |
The Docker build error is now a separate issue #1181. |
Test against ESIP failed for get_sample_data: clear ; python /foss_fim/data/sandbox/get_sample_data.py -u 12040101 -i "s3://noaa-nws-owp-fim/hand_fim/" -o /foss_fim/data/sandbox/sample-data-12040101 -s3 -ak (hidden) -sk (hidden) Traceback (most recent call last): --- I am not sure it is critical to keep this functionality. I see two options:
Also: The README.md should have the word "python" in front of the script calls. e.g. python /foss_fim/data/sandbox/get_sample_data.py. I fixed it in the PR notes already. |
Added S3 to usage
The last error occurred because |
…ion-mapping into dev-sample-data
Update. We can no longer use explicit aws keys in our enviro's. Those arguments will need to be removed and we will need to use our SSO system. If this ever gets opened up externally, users will need their keys installed on their machines. |
We will also need to review the inputs and paths. Like loading bridge data I think. We need to check DEM paths as well. Also, we can not load any validatation or test case data of any kinds for IFC as it is not considered to be public. |
/data/sandbox/docker file needs updates too (sorry) |
|
As of facca2e, the sandbox (FIM in a Box) code in this feature branch will be archived. Refer to commit 4e6ae2e for the latest version of the sandbox code. This pull request will contain scripts to create a new inputs folder with data for specified HUC(s) as well as related patches to replace absolute file paths with relative file paths, a fix for evaluating when IFC data are not available, and update code to generate pre-clip data so that WBD for Alaska contains only one layer. NOTE: this PR requires |
With opening the s3 input option, we will need to update the readme.md (and/or others) to tell them it exists and how to either use it or a pointer for instructions. I personally think it is better to add a some text inside the README.md on how to do it. Pointing to the PR seems loose. Thoughts? |
Update `get_sample_data.py` syntax
Summary
Contains files to generate data to run and evaluate FIM (
fim_pipeline.sh
andsynthesize_test_cases.py
) for specified HUC(s) as well as related patches to replace absolute file paths with relative file paths, a fix for evaluating when IFC data are not available, and update code to generate pre-clip data so that WBD for Alaska contains only one layer. NOTE: this PR requireswbd.gpkg
to be created by the updatedgenerate_pre_clip_fim_huc8.py
to be copied to the pre-clip HUC folders to remove a warning insynthesize_test_case.py
.Resolves #1265 and resolves #1296.
Usage
Additions
data/
sandbox/
[archived]Dockerfile
: A copy of the root Dockerfile that also pulls code and data into the build image [archived]fim-in-a-box.ipynb
: Jupyter notebook to run and evaluate an example HUC [archived]README.md
[archived]get_sample_data.py
: Copies relevant data (e.g.,inputs
andtest_cases
) from the FIM data folder for specified HUC(s) and saves it to a separate locationwbd/generate_pre_clip_fim_huc8.py
: Fix file paths and layerssrc/bash_variables.sh
: Add paths for landsea and nws_lidtools/run_test_case.py
: Skip evaluation for missing validation data and fix hardcoded paths for masksTesting
fim_pipeline.sh
andsynthesize_test_cases.py
ran on HUCs 12090301 and 19020302 without errors.Deployment Plan (For developer use)
How does the changes affect the product?
Issuer Checklist (For developer use)
You may update this checklist before and/or after creating the PR. If you're unsure about any of them, please ask, we're here to help! These items are what we are going to look for before merging your code.
[_pt] PR: <description>
dev
branch (the default branch), you have a descriptive Feature Branch name using the format:dev-<description-of-change>
(e.g.dev-revise-levee-masking
)dev
branchpre-commit
hooks were run locally/foss_fim/
, run:pytest unit_tests/
)4.x.x.x
Merge Checklist (For Technical Lead use only)