Skip to content

Commit

Permalink
Align platform and instruments with best practices
Browse files Browse the repository at this point in the history
  • Loading branch information
gadomski committed Aug 2, 2021
1 parent 336ddf8 commit 04f8ac0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
6 changes: 2 additions & 4 deletions src/stactools/alos_dem/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@

from pystac import Provider, Link

ALOS_DEM_PLATFORM = "Advanced Land Observing Satellite (ALOS)"
ALOS_DEM_INSTRUMENTS = [
"Panchromatic Remote-sensing Instrument for Stereo Mapping (PRISM)"
]
ALOS_DEM_PLATFORM = "alos"
ALOS_DEM_INSTRUMENTS = ["prism"]
ALOS_DEM_GSD = 30 # meters
ALOS_DEM_EPSG = 4326
ALOS_DEM_PROVIDERS = [
Expand Down
7 changes: 2 additions & 5 deletions tests/test_stac.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,8 @@ def test_create_item(self):
datetime.datetime(2016, 12, 7, tzinfo=datetime.timezone.utc))

common_metadata = item.common_metadata
self.assertEqual(common_metadata.platform,
"Advanced Land Observing Satellite (ALOS)")
self.assertEqual(common_metadata.instruments, [
"Panchromatic Remote-sensing Instrument for Stereo Mapping (PRISM)"
])
self.assertEqual(common_metadata.platform, "alos")
self.assertEqual(common_metadata.instruments, ["prism"])
self.assertEqual(common_metadata.gsd, 30)
self.assertEqual(common_metadata.providers, [
Provider("Japan Aerospace Exploration Agency",
Expand Down

0 comments on commit 04f8ac0

Please sign in to comment.