-
Notifications
You must be signed in to change notification settings - Fork 2
Updates/compare products #103
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
Merged
Merged
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
0ce178e
compare output products
abradley60 2061ba6
main merge
abradley60 8e05812
working difference cli
abradley60 94b4638
ignore comparison files
abradley60 84c8284
refactor
abradley60 5b169ca
remove setting creds, boto3 looks in env
abradley60 5da3de0
remove setting creds, boto3 looks in env
abradley60 1f0c6b9
update pixi
abradley60 8d91edc
fix file compare logic
abradley60 81b776e
Merge branch 'updates/metadata' into updates/compare_products
abradley60 12ee8da
comparison fix
abradley60 6eecb22
Merge branch 'updates/metadata' into updates/compare_products
abradley60 81b7189
updating tests
abradley60 b8910a5
working comparison tests
abradley60 91a399a
updated docs
abradley60 e034156
settings file for tests
abradley60 f2d0baa
adding flag for updatig products
abradley60 e011e04
spelling
abradley60 b69f182
comment updates
abradley60 60d03cf
doc updates
abradley60 3b93afc
spelling fix pixi task
abradley60 5ebcb37
dockerignore updates
abradley60 cf72671
linking static layer bugfix
abradley60 2fdf7ea
docs update
abradley60 a548457
pixi .lock update
abradley60 db628b6
deleting unwanted file
abradley60 d3b2b61
fix rema dem url
abradley60 3aae7b1
Update docs/pipelines/isce3_rtc.md
abradley60 baa8209
Update docs/pipelines/isce3_rtc.md
abradley60 5dc5abd
docs clean up
abradley60 d3d8f13
Update docs/pipelines/isce3_rtc.md
abradley60 3d65a3d
Update docs/pipelines/isce3_rtc.md
abradley60 1f03ca8
Update docs/pipelines/isce3_rtc.md
abradley60 51fe643
Update docs/pipelines/isce3_rtc.md
abradley60 f3f853e
docs update
abradley60 87926fd
docs update
abradley60 6466a05
adding error/success codes to docs
abradley60 605b214
compare cog doc fix
abradley60 0c73c24
doc string format
abradley60 3925412
updating tests and docstrings
abradley60 60c9e95
removing sensitive info from AUS_COP_HUB logs
abradley60 7e4311c
log statement for AUS_COP_HUB download
abradley60 347f21b
pygssearch bugfix and sanitise
abradley60 a1074ad
remove un-needed comment
abradley60 eddbca6
adding burst ID map to docs
abradley60 ed98aa1
missing imports
abradley60 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,4 +2,4 @@ | |
| .pytest_cache | ||
| *.secret | ||
| *.env | ||
| tests/sar_pipeline/data/isce3_rtc/TMP/* | ||
| tests/sar_pipeline/isce3_rtc/data/TMP/* | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,72 @@ | ||
| # sar-pipeline | ||
|
|
||
| This repository contains code for running SAR processing pipelines on the NCI and AWS. | ||
| This repository contains code for running SAR processing pipelines on the NCI and AWS. Currently, this codebase supports two pipelines for generating Sentinel-1 Normalised Radar Backscatter (NRB). | ||
|
|
||
| ## Environment set up | ||
| * [isce3_rtc (Sentinel-1 IW) that can be run locally and on AWS](docs/pipelines/aws_isce3_rtc.md) | ||
| * [pyroSAR-GAMMA (Sentinel-1 IW/EW) that can be run on the NCI](docs/pipelines/pyrosar_gamma.md) | ||
|
|
||
| For more information see [Setup](docs/development/README.md) | ||
| For more information see [Pipelines](docs/pipelines/README.md) or the specific workflow docs for usage examples and running tests. | ||
|
|
||
| ## Development Setup | ||
|
|
||
| Detailed documentation for the project setup can be found in the [development documentation](docs/development/README.md). It is highly recommended this be reviewed before contributing to the project. This project utilises [pixi](https://pixi.sh/latest/) for managing packages and running tests. | ||
|
|
||
| * [Cloning the project](docs/development/README.md) | ||
| * [Developer set up](docs/development/developer_pixi.md) | ||
| * [User set up](docs/development/user_conda.md) | ||
|
|
||
| ## Workflows | ||
| ## Quick Setup | ||
|
|
||
| Clone the repository | ||
|
|
||
| ```bash | ||
| git clone https://github.com/GeoscienceAustralia/sar-pipeline.git | ||
| ``` | ||
|
|
||
| ### ISCE3 RTC (Docker) | ||
|
|
||
| 1. Build the container | ||
|
|
||
| ```bash | ||
| docker build -t sar-pipeline -f Docker/isce3_rtc/Dockerfile . | ||
| ``` | ||
|
|
||
| 2. Test the image interactively (type `exit` to exit) | ||
|
|
||
| ```bash | ||
| docker run -it --entrypoint /bin/bash sar-pipeline | ||
| ``` | ||
|
|
||
| 1. Set the following minimum environment credentials in a `.env` file. At minimum we require AWS credentials and a set of credentials to download data. Earthdata credentials to download from the Alaska Satelite Facility (ASF) can be created [here](http://urs.earthdata.nasa.gov/). | ||
|
|
||
| ```text | ||
| EARTHDATA_LOGIN= | ||
| EARTHDATA_PASSWORD= | ||
| AWS_ACCESS_KEY_ID= | ||
| AWS_SECRET_ACCESS_KEY= | ||
| AWS_DEFAULT_REGION="ap-southeast-2" | ||
| ``` | ||
|
|
||
| 4. Generate backscatter data for a test burst. The outputs will be written to a local `data` folder. | ||
|
|
||
| ```bash | ||
| mkdir data | ||
| ``` | ||
|
|
||
| ```bash | ||
| docker run --env-file .env -v ${PWD}/data:/home/rtc_user/working sar-pipeline:0.4.1.dev36-g6eecb22a7.d20250925 \ | ||
| --scene S1A_IW_SLC__1SSH_20220101T124744_20220101T124814_041267_04E7A2_1DAD \ | ||
| --burst_id_list t070_149815_iw3 \ | ||
| --skip_upload_to_s3 \ | ||
| --make_existing_products \ | ||
| --scene_data_source ASF \ | ||
| --orbit_data_source ASF | ||
| ``` | ||
|
|
||
| Note if there are permission issues writing to the local `./data` folder, the can be run. | ||
|
|
||
| ```bash | ||
| sudo chmod -R 777 ./data | ||
| ``` | ||
|
|
||
|
|
||
| For more information see [Workflows](docs/pipelines/README.md) | ||
| * [NCI (pyroSAR+GAMMA)](docs/pipelines/pyrosar_gamma.md) | ||
| * [AWS (ISCE3_RTC)](docs/pipelines/aws_isce3_rtc.md) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,49 +1,8 @@ | ||
| # Workflows | ||
| The repository will handle multiple workflows and backends, some of which have specific requirements. | ||
| # Pipelines | ||
| The repository will handle multiple pipelines and backends, some of which have specific requirements. | ||
|
|
||
| ## Workflows | ||
| - pyroSAR + GAMMA | ||
| - [Requirements](pyrosar_gamma.md) | ||
|
|
||
| ## Command line interface | ||
| > **_NOTE:_** At this time, pyroSAR + GAMMA is the only workflow, and the command line interfaces have not yet been generalised to other workflows. | ||
| The package has a number of useful command line interfaces: | ||
|
|
||
| ### Finding the location of a scene on the NCI | ||
| The `find-scene` command will display the location of a given scene on the NCI. | ||
| The full path to the scene is required as the input to other commands. | ||
|
|
||
| Example usage: | ||
| ``` | ||
| $ find-scene S1A_EW_GRDM_1SDH_20240129T091735_20240129T091828_052319_065379_0F1E | ||
| /path/to/scene/S1A_EW_GRDM_1SDH_20240129T091735_20240129T091828_052319_065379_0F1E.zip | ||
| ``` | ||
|
|
||
| ### Submit a workflow | ||
| This will submit a job request to the NCI based on the job parameters and file paths in the supplied config. | ||
| The [default config](../../sar_pipeline/nci/configs/default.toml) will be used if no other config is provided. | ||
|
|
||
| Example usage | ||
| ``` | ||
| $ submit-pyrosar-gamma-workflow /path/to/scene/S1A_EW_GRDM_1SDH_20240129T091735_20240129T091828_052319_065379_0F1E.zip | ||
| ``` | ||
| This will submit a job to the NCI with the default config. | ||
| To use a different config, run the command and supply the `--config` option | ||
| ``` | ||
| --config /path/to/config.toml | ||
| ``` | ||
|
|
||
| ### Run a workflow interactively | ||
| If you are still testing a workflow, it is best to run it in an interactive session. | ||
| While in an interactive session, you can run the workflow directly. | ||
|
|
||
| Example usage | ||
| ``` | ||
| $ run-pyrosar-gamma-workflow /path/to/scene/S1A_EW_GRDM_1SDH_20240129T091735_20240129T091828_052319_065379_0F1E.zip | ||
| ``` | ||
| To use a different config, run the command and supply the `--config` option | ||
| ``` | ||
| --config /path/to/config.toml | ||
| ``` | ||
| - isce3_rtc | ||
| - [Requirements](isce3_rtc.md) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.