Skip to content

Commit

Permalink
add mock granules, metadata, and json
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfromearth committed Jul 1, 2024
1 parent 782c2a8 commit 23749a2
Show file tree
Hide file tree
Showing 13 changed files with 394 additions and 0 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
16 changes: 16 additions & 0 deletions tests/data/harmony/message.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"sources": [{
"collection": "C1234088182-EEDTEST"
}],
"format": {
"mime": "application/x-netcdf4"
},
"subset": {},
"requestId": "00001111-2222-3333-4444-555566667777",
"user": "jdoe",
"client": "harmony-example",
"isSynchronous": false,
"stagingLocation": "s3://example-bucket/public/some-org/some-service/some-uuid/",
"callback": "http://localhost/some-path",
"version": "0.10.0"
}
30 changes: 30 additions & 0 deletions tests/data/harmony/source/catalog.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"stac_version": "1.0.0-beta.2",
"stac_extensions": [],
"id": "cfc32383-cfd1-4e43-8d5f-55f539b6fa59",
"links": [
{
"rel": "harmony_source",
"href": "https://cmr.uat.earthdata.nasa.gov/search/concepts/C1234088182-EEDTEST"
},
{
"rel": "item",
"href": "./granule_S012G01.json",
"type": "application/json",
"title": "granule_S012G01"
},
{
"rel": "item",
"href": "./granule_S012G02.json",
"type": "application/json",
"title": "granule_S012G02"
},
{
"rel": "item",
"href": "./granule_S012G03.json",
"type": "application/json",
"title": "granule_S012G03"
}
],
"description": "CMR Granules for C1234088182-EEDTEST batch 1"
}
30 changes: 30 additions & 0 deletions tests/data/harmony/source/catalog0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"stac_version": "1.0.0-beta.2",
"stac_extensions": [],
"id": "cfc32383-cfd1-4e43-8d5f-55f539b6fa59",
"links": [
{
"rel": "harmony_source",
"href": "https://cmr.uat.earthdata.nasa.gov/search/concepts/C1234088182-EEDTEST"
},
{
"rel": "item",
"href": "./granule_S012G01.json",
"type": "application/json",
"title": "granule_S012G01"
},
{
"rel": "item",
"href": "./granule_S012G02.json",
"type": "application/json",
"title": "granule_S012G02"
},
{
"rel": "next",
"href": "tests/data/harmony/source/catalog1.json",
"type": "application/json",
"title": "Next page"
}
],
"description": "CMR Granules for C1234088182-EEDTEST batch 1"
}
24 changes: 24 additions & 0 deletions tests/data/harmony/source/catalog1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"stac_version": "1.0.0-beta.2",
"stac_extensions": [],
"id": "cfc32383-cfd1-4e43-8d5f-55f539b6fa59",
"links": [
{
"rel": "harmony_source",
"href": "https://cmr.uat.earthdata.nasa.gov/search/concepts/C1234088182-EEDTEST"
},
{
"rel": "item",
"href": "./granule_S012G03.json",
"type": "application/json",
"title": "granule_S012G03"
},
{
"rel": "prev",
"href": "tests/data/harmony/source/catalog0.json",
"type": "application/json",
"title": "Previous page"
}
],
"description": "CMR Granules for C1234088182-EEDTEST batch 2"
}
49 changes: 49 additions & 0 deletions tests/data/harmony/source/granule_S012G01.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"stac_version": "1.0.0-beta.2",
"stac_extensions": [],
"id": "51d02b24-d00e-4640-9887-05f98f6b96d8",
"type": "Feature",
"links": [],
"properties": {
"start_datetime": "2020-01-02T00:00:00.000Z",
"end_datetime": "2020-01-02T23:59:59.000Z"
},
"bbox": [1, 3, 1, 3],
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-179.95,
-89.95
],
[
-179.95,
89.95
],
[
179.95,
89.95
],
[
179.95,
-89.95
],
[
-179.95,
-89.95
]
]
]
},
"assets": {
"data": {
"href": "file://tests/data/harmony/granule_copies_dir/TEMPO_NO2_L2_V03_20240601T210934Z_S012G01_subsetted.nc4",
"title": "TEMPO_NO2_L2_V03_20240601T210934Z_S012G01_subsetted.nc4",
"type": "application/x-netcdf4",
"roles": [
"data"
]
}
}
}
49 changes: 49 additions & 0 deletions tests/data/harmony/source/granule_S012G02.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"stac_version": "1.0.0-beta.2",
"stac_extensions": [],
"id": "21eb7dc5-7a9d-4374-9a88-12451ba653ef",
"type": "Feature",
"links": [],
"properties": {
"start_datetime": "2020-01-03T00:00:00.000Z",
"end_datetime": "2020-01-03T23:59:59.000Z"
},
"bbox": [-1, -3, -1, -3],
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-179.95,
-89.95
],
[
-179.95,
89.95
],
[
179.95,
89.95
],
[
179.95,
-89.95
],
[
-179.95,
-89.95
]
]
]
},
"assets": {
"data": {
"href": "file://tests/data/harmony/granule_copies_dir/TEMPO_NO2_L2_V03_20240601T211614Z_S012G02_subsetted.nc4",
"title": "TEMPO_NO2_L2_V03_20240601T211614Z_S012G02_subsetted.nc4",
"type": "application/x-netcdf4",
"roles": [
"data"
]
}
}
}
49 changes: 49 additions & 0 deletions tests/data/harmony/source/granule_S012G03.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"stac_version": "1.0.0-beta.2",
"stac_extensions": [],
"id": "dc07a25a-54bd-4389-97b6-c1d68cf0d586",
"type": "Feature",
"links": [],
"properties": {
"start_datetime": "2020-01-05T00:00:00.000Z",
"end_datetime": "2020-01-05T23:59:59.000Z"
},
"bbox": [-4, -2, -4, 2],
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-179.95,
-89.95
],
[
-179.95,
89.95
],
[
179.95,
89.95
],
[
179.95,
-89.95
],
[
-179.95,
-89.95
]
]
]
},
"assets": {
"data": {
"href": "file://tests/data/harmony/granule_copies_dir/TEMPO_NO2_L2_V03_20240601T212254Z_S012G03_subsetted.nc4",
"title": "TEMPO_NO2_L2_V03_20240601T212254Z_S012G03_subsetted.nc4",
"type": "application/x-netcdf4",
"roles": [
"data"
]
}
}
}
49 changes: 49 additions & 0 deletions tests/data/harmony/source/granule_S012G04.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"stac_version": "1.0.0-beta.2",
"stac_extensions": [],
"id": "53cdf09b-4004-4405-9363-f93455a11c2f",
"type": "Feature",
"links": [],
"properties": {
"start_datetime": "2020-01-04T00:00:00.000Z",
"end_datetime": "2020-01-04T23:59:59.000Z"
},
"bbox": [4, 2, 4, 2],
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-179.95,
-89.95
],
[
-179.95,
89.95
],
[
179.95,
89.95
],
[
179.95,
-89.95
],
[
-179.95,
-89.95
]
]
]
},
"assets": {
"data": {
"href": "file://tests/data/harmony/granules/TEMPO_NO2_L2_V03_20240601T120121Z_S012G04.nc",
"title": "TEMPO_NO2_L2_V03_20240601T120121Z_S012G04.nc",
"type": "application/x-netcdf4",
"roles": [
"data"
]
}
}
}
49 changes: 49 additions & 0 deletions tests/data/harmony/source/granule_S012G05.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"stac_version": "1.0.0-beta.2",
"stac_extensions": [],
"id": "349b5f4a-34ab-4b0d-ae00-b55fe3d166fb",
"type": "Feature",
"links": [],
"properties": {
"start_datetime": "2020-01-05T00:00:00.000Z",
"end_datetime": "2020-01-05T23:59:59.000Z"
},
"bbox": [-5, -3, -5, 3],
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-179.95,
-89.95
],
[
-179.95,
89.95
],
[
179.95,
89.95
],
[
179.95,
-89.95
],
[
-179.95,
-89.95
]
]
]
},
"assets": {
"data": {
"href": "file://tests/data/harmony/granules/TEMPO_NO2_L2_V03_20240601T120128Z_S012G05.nc",
"title": "TEMPO_NO2_L2_V03_20240601T120128Z_S012G05.nc",
"type": "application/x-netcdf4",
"roles": [
"data"
]
}
}
}
Loading

0 comments on commit 23749a2

Please sign in to comment.