Skip to content
This repository was archived by the owner on Sep 9, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
python-version: [ "3.9", "3.10" ]
poetry-version: [ "1.1.14" ]
# os: [ ubuntu-18.04, macos-latest, windows-latest ]
os: [ ubuntu-18.04, macos-latest ]
os: [ ubuntu-22.04, macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Repo Specific
tests/test_files/tmp/
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
128 changes: 61 additions & 67 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ packages = [
]

[tool.poetry.dependencies]
python = "^3.7"
python = "^3.9"
requests = "^2.28.0"
tenacity = "^8.0.1"
giturlparse = "^0.10.0"
pystac = "^1.7.3"


[tool.poetry.dev-dependencies]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"type": "Feature",
"stac_version": "1.0.0",
"id": "SNDR.SS1330.CHIRP.20160829T2317.m06.g233.L1_AQ.std.v02_48.G.200425130422",
"properties": {
"datetime": "2016-08-29T23:17:00Z",
"start_datetime": "2016-08-29T23:17:00Z",
"end_datetime": "2023-01-01T00:06:00.000000Z",
"created": "2023-05-24T16:01:04.801686Z",
"updated": "2023-05-24T16:01:04.801692Z"
},
"geometry": "",
"links": [
{
"rel": "root",
"href": "./catalog.json",
"type": "application/json"
},
{
"rel": "parent",
"href": "./catalog.json",
"type": "application/json"
}
],
"assets": {
"data": {
"href": "/unity/ads/sounder_sips/chirp_test_data/SNDR.SS1330.CHIRP.20160829T2317.m06.g233.L1_AQ.std.v02_48.G.200425130422.nc",
"title": "Main Data File"
},
"metadata_stac": {
"href": "/unity/ads/sounder_sips/chirp_test_data/SNDR.SS1330.CHIRP.20160829T2317.m06.g233.L1_AQ.std.v02_48.G.200425130422.json",
"title": "Metadata STAC File"
}
},
"bbox": "",
"stac_extensions": []
}
18 changes: 18 additions & 0 deletions tests/test_files/catalog_01.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"type": "Catalog",
"id": "catalog_id",
"stac_version": "1.0.0",
"description": "Tutorial chirp catalog.",
"links": [
{
"rel": "root",
"href": "./catalog_01.json",
"type": "application/json"
},
{
"rel": "item",
"href": "./SNDR.SS1330.CHIRP.20160829T2317.m06.g233.L1_AQ.std.v02_48.G.200425130422.json",
"type": "application/json"
}
]
}
18 changes: 18 additions & 0 deletions tests/test_files/catalog_corrupt.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"type": "Catalog",
"id": "catalog_id",
"stac_version": "1.0.0",
"description": "Tutorial chirp catalog.",
"links": [
{
"rel": "root",
"href": "./catalog.json",
"type": "application/json"
},
{
"rel": "item",
"href": "./SNDR.SS1330.CHIRP.20160829T2317.m06.g233.L1_AQ.std.v02_48.G.200425130422.json",
"type": "application/json"

]
}
18 changes: 18 additions & 0 deletions tests/test_files/catalog_corrupt_02.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"type": "Catalogsss",
"id": "catalog_id",
"stac_version": "1.0.0",
"description": "Tutorial chirp catalog.",
"links": [
{
"rel": "root",
"href": "./catalog.json",
"type": "application/json"
},
{
"rel": "item",
"href": "./SNDR.SS1330.CHIRP.20160829T2317.m06.g233.L1_AQ.std.v02_48.G.200425130422.json",
"type": "application/json"
}
]
}
1 change: 1 addition & 0 deletions tests/test_files/cmr_granules.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"type":"FeatureCollection","stac_version":"1.0.0","numberMatched":2,"numberReturned":2,"features":[{"properties":{"datetime":"2016-08-22T00:05:22.000Z","start_datetime":"2016-08-22T00:05:22.000Z","end_datetime":"2016-08-22T00:11:22.000Z"},"bbox":[-7.02,-60.32,26.31,-36.16],"assets":{"metadata":{"href":"https://cmr.earthdata.nasa.gov:443/search/concepts/G2040068613-GES_DISC.xml","type":"application/xml"},"opendap":{"title":"The OPENDAP location for the granule. (GET DATA : OPENDAP DATA)","href":"https://sounder.gesdisc.eosdis.nasa.gov/opendap/CHIRP/SNDR13CHRP1.2/2016/235/SNDR.SS1330.CHIRP.20160822T0005.m06.g001.L1_AQ.std.v02_48.G.200425095850.nc","type":"application/x-netcdf"},"data":{"title":"Download SNDR.SS1330.CHIRP.20160822T0005.m06.g001.L1_AQ.std.v02_48.G.200425095850.nc","href":"https://data.gesdisc.earthdata.nasa.gov/data/CHIRP/SNDR13CHRP1.2/2016/235/SNDR.SS1330.CHIRP.20160822T0005.m06.g001.L1_AQ.std.v02_48.G.200425095850.nc"}},"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[6.18,-36.16],[-7.02,-56.04],[23.24,-60.32],[26.31,-38.94],[6.18,-36.16]]]},"stac_extensions":[],"id":"G2040068613-GES_DISC","stac_version":"1.0.0","collection":"C2011289787-GES_DISC","links":[{"rel":"self","href":"https://cmr.earthdata.nasa.gov:443/search/concepts/G2040068613-GES_DISC.stac"},{"rel":"parent","href":"https://cmr.earthdata.nasa.gov:443/search/concepts/C2011289787-GES_DISC.stac"},{"rel":"collection","href":"https://cmr.earthdata.nasa.gov:443/search/concepts/C2011289787-GES_DISC.stac"},{"rel":"root","href":"https://cmr.earthdata.nasa.gov:443/search/"},{"rel":"via","href":"https://cmr.earthdata.nasa.gov:443/search/concepts/G2040068613-GES_DISC.json"},{"rel":"via","href":"https://cmr.earthdata.nasa.gov:443/search/concepts/G2040068613-GES_DISC.umm_json"}]},{"properties":{"datetime":"2016-08-22T00:11:22.000Z","start_datetime":"2016-08-22T00:11:22.000Z","end_datetime":"2016-08-22T00:17:22.000Z"},"bbox":[-43.78,-81.77028018298317,23.22,-56.18],"assets":{"metadata":{"href":"https://cmr.earthdata.nasa.gov:443/search/concepts/G2040068619-GES_DISC.xml","type":"application/xml"},"opendap":{"title":"The OPENDAP location for the granule. (GET DATA : OPENDAP DATA)","href":"https://sounder.gesdisc.eosdis.nasa.gov/opendap/CHIRP/SNDR13CHRP1.2/2016/235/SNDR.SS1330.CHIRP.20160822T0011.m06.g002.L1_AQ.std.v02_48.G.200425095901.nc","type":"application/x-netcdf"},"data":{"title":"Download SNDR.SS1330.CHIRP.20160822T0011.m06.g002.L1_AQ.std.v02_48.G.200425095901.nc","href":"https://data.gesdisc.earthdata.nasa.gov/data/CHIRP/SNDR13CHRP1.2/2016/235/SNDR.SS1330.CHIRP.20160822T0011.m06.g002.L1_AQ.std.v02_48.G.200425095901.nc"}},"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[-7.16,-56.18],[-43.78,-71.72],[20.73,-81.77],[23.22,-60.47],[-7.16,-56.18]]]},"stac_extensions":[],"id":"G2040068619-GES_DISC","stac_version":"1.0.0","collection":"C2011289787-GES_DISC","links":[{"rel":"self","href":"https://cmr.earthdata.nasa.gov:443/search/concepts/G2040068619-GES_DISC.stac"},{"rel":"parent","href":"https://cmr.earthdata.nasa.gov:443/search/concepts/C2011289787-GES_DISC.stac"},{"rel":"collection","href":"https://cmr.earthdata.nasa.gov:443/search/concepts/C2011289787-GES_DISC.stac"},{"rel":"root","href":"https://cmr.earthdata.nasa.gov:443/search/"},{"rel":"via","href":"https://cmr.earthdata.nasa.gov:443/search/concepts/G2040068619-GES_DISC.json"},{"rel":"via","href":"https://cmr.earthdata.nasa.gov:443/search/concepts/G2040068619-GES_DISC.umm_json"}]}],"links":[{"rel":"self","href":"https://cmr.earthdata.nasa.gov:443/search/granules.stac?collection_concept_id=C2011289787-GES_DISC&temporal%5B%5D=2016-08-22T00%3A10%3A00%2C2016-08-22T00%3A15%3A00&page_num=1"},{"rel":"root","href":"https://cmr.earthdata.nasa.gov:443/search/"}],"context":{"returned":2,"limit":1000000,"matched":2}}
Loading