From 00c35b98566c9bad1038a04f36ffb70397ba23a0 Mon Sep 17 00:00:00 2001 From: benlee0423 Date: Mon, 25 Nov 2024 16:46:59 -0800 Subject: [PATCH] use 007 data and update readme --- .github/workflows/singularity_image.yml | 12 ++++++------ README.md | 25 ++++++------------------- 2 files changed, 12 insertions(+), 25 deletions(-) diff --git a/.github/workflows/singularity_image.yml b/.github/workflows/singularity_image.yml index fb7579d..f6ffcbe 100644 --- a/.github/workflows/singularity_image.yml +++ b/.github/workflows/singularity_image.yml @@ -25,12 +25,12 @@ jobs: - name: Test run: | - rm -rf /home/ubuntu/workspace/AWI_16_2853886_006/partitions*.json - rm -rf /home/ubuntu/workspace/AWI_16_2853886_006/*.csv - rm -rf /home/ubuntu/workspace/AWI_16_2853886_006/*.parquet - rm -rf /home/ubuntu/workspace/AWI_16_2853886_006/outputs/*/* - singularity run --bind /home/ubuntu/workspace/AWI_16_2853886_006:/ngen/ngen/data ciroh-ngen-singularity.sif /ngen/ngen/data auto 2 - output_count=`ls /home/ubuntu/workspace/AWI_16_2853886_006/outputs/* | wc -l` + rm -rf /home/ubuntu/workspace/AWI_16_2863657_007/partitions*.json + rm -rf /home/ubuntu/workspace/AWI_16_2863657_007/*.csv + rm -rf /home/ubuntu/workspace/AWI_16_2863657_007/*.parquet + rm -rf /home/ubuntu/workspace/AWI_16_2863657_007/outputs/*/* + singularity run --bind /home/ubuntu/workspace/AWI_16_2863657_007:/ngen/ngen/data ciroh-ngen-singularity.sif /ngen/ngen/data auto 2 + output_count=`ls /home/ubuntu/workspace/AWI_16_2863657_007/outputs/*/* | wc -l` if [[ "$output_count" < 1 ]]; then echo "No outputs found" exit 1 diff --git a/README.md b/README.md index 3ca0dda..b775e1b 100644 --- a/README.md +++ b/README.md @@ -41,29 +41,16 @@ NGIAB provides a containerized and user-friendly solution for running the NextGe ├── guide.sh ├── README.md └── singularity - ├── build.log ├── singularity_ngen.def └── templates - ├── extern - │   └── install_extern_libraries.sh ├── guide - │   └── HelloNGEN.sh - ├── netcdf - │   └── install_netcdf_cxx.sh - ├── ngen - │   └── install_ngen.sh - └── t-route - └── install_t_route.sh +    └── HelloNGEN.sh + ``` 1. [`guilde.sh`](guide.sh) : The guide script to run the simulations on the singularity image 2. [`README.md`](README.md) : Documentation of how to run the model and contribute in development on NGIAB 3. [`singularity_ngen.def`](singularity/singularity_ngen.def) : The singularity definition file to build image - 4. [`build.log`](singularity/build.log) : This is the last build log that shows all detailed information about the last image build process. - 5. [`install_extern_libraries.sh`](singularity/templates/extern/install_extern_libraries.sh) : This is helper script to install external NGen module during image building process. - 6. [`HelloNGEN.sh`](singularity/templates/guide/HelloNGEN.sh) : This is NGen execution script, which runs when the image is being executed by users. - 7. [`install_netcdf_cxx.sh`](singularity/templates/netcdf/install_netcdf_cxx.sh) : This is helper script to install latest NetCDF C++ version during image building process. - 8. [`install_ngen.sh`](singularity/templates/ngen/install_ngen.sh) : This is helper script to install latest NextGen version during image building process. - 9. [`install_t_route.sh`](singularity/templates/t-route/install_t_route.sh) : This is helper script to install latest T-route version during image building process. + 4. [`HelloNGEN.sh`](singularity/templates/guide/HelloNGEN.sh) : This is NGen execution script, which runs when the image is being executed by users. ## Prerequisites @@ -143,18 +130,18 @@ cd NextGen/ngen-data - **Linux/Mac/Windows WSL:** Use wget to download the compressed data file: ```bash -wget --no-parent https://ciroh-ua-ngen-data.s3.us-east-2.amazonaws.com/AWI-006/AWI_16_2853886_006.tar.gz +wget --no-parent https://ciroh-ua-ngen-data.s3.us-east-2.amazonaws.com/AWI-007/AWI_16_2863657_007.tar.gz ``` **Step 3: Extract and Rename** - **All Platforms:** Extract the downloaded file and optionally rename the folder: ```bash -tar -xf AWI_16_2853886_006.tar.gz +tar -xf AWI_16_2863657_007.tar.gz ``` ### Below is Optional: Rename the folder ```bash -mv AWI_16_2853886_006 my_data +mv AWI_16_2863657_007 my_data ``` Now you have successfully downloaded and prepared the sample input data in the NextGen/ngen-data directory. Remember to replace "my_data" with your preferred folder name if you choose to rename it.