Skip to content

Commit

Permalink
use 007 data and update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
benlee0423 committed Nov 26, 2024
1 parent 6fe9dd8 commit 00c35b9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 25 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/singularity_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
25 changes: 6 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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.

Expand Down

0 comments on commit 00c35b9

Please sign in to comment.