unity-sds / unity-data-services

Apache License 2.0
0 stars 3 forks source link

Update stage-in to rename downloaded_feature_collection.json to catalog.json #424

Closed ngachung closed 1 week ago

wphyojpl commented 1 month ago

While working on this. I realized that it is actually a feature collection.

{'type': 'FeatureCollection', 'features': 
[
    {'type': 'Feature', 'stac_version': '1.0.0', 'id': 'SNDR.SNPP.ATMS.L1A.nominal2.01', 'properties': {'start_datetime': '2016-01-14T09:54:00Z', 'end_datetime': '2016-01-14T10:00:00Z', 'created': '2020-12-14T13:50:00Z', 'updated': '2022-08-15T06:26:39.830000Z', 'datetime': '2022-08-15T06:26:37.029000Z'}, 'geometry': {'type': 'Point', 'coordinates': [0.0, 0.0]}, 'links': [{'rel': 'collection', 'href': '.'}], 'assets': {'SNDR.SNPP.ATMS.L1A.nominal2.01.nc': {'href': 'README.md', 'title': 'SNDR.SNPP.ATMS.L1A.nominal2.01.nc', 'description': 'SNDR.SNPP.ATMS.L1A.nominal2.01.nc', 'roles': ['data']}}, 'bbox': [0.0, 0.0, 0.0, 0.0], 'stac_extensions': [], 'collection': 'SNDR_SNPP_ATMS_L1A___1'}, 
    {'type': 'Feature', 'stac_version': '1.0.0', 'id': 'SNDR.SNPP.ATMS.L1A.nominal2.08', 'properties': {'start_datetime': '2016-01-14T10:36:00Z', 'end_datetime': '2016-01-14T10:42:00Z', 'created': '2020-12-14T13:50:00Z', 'updated': '2022-08-15T06:26:26.078000Z', 'datetime': '2022-08-15T06:26:19.333000Z'}, 'geometry': {'type': 'Point', 'coordinates': [0.0, 0.0]}, 'links': [{'rel': 'collection', 'href': '.'}], 'assets': {'SNDR.SNPP.ATMS.L1A.nominal2.08.nc': {'href': 'CHANGELOG.md', 'title': 'SNDR.SNPP.ATMS.L1A.nominal2.08.nc', 'description': 'SNDR.SNPP.ATMS.L1A.nominal2.08.nc', 'roles': ['data']}}, 'bbox': [0.0, 0.0, 0.0, 0.0], 'stac_extensions': [], 'collection': 'SNDR_SNPP_ATMS_L1A___1'}, 
    {'type': 'Feature', 'stac_version': '1.0.0', 'id': 'SNDR.SNPP.ATMS.L1A.nominal2.06', 'properties': {'start_datetime': '2016-01-14T10:24:00Z', 'end_datetime': '2016-01-14T10:30:00Z', 'created': '2020-12-14T13:50:00Z', 'updated': '2022-08-15T06:26:26.068000Z', 'datetime': '2022-08-15T06:26:18.641000Z'}, 'geometry': {'type': 'Point', 'coordinates': [0.0, 0.0]}, 'links': [{'rel': 'collection', 'href': '.'}], 'assets': {'SNDR.SNPP.ATMS.L1A.nominal2.06.nc': {'href': 'CODE_OF_CONDUCT.md', 'title': 'SNDR.SNPP.ATMS.L1A.nominal2.06.nc', 'description': 'SNDR.SNPP.ATMS.L1A.nominal2.06.nc', 'roles': ['data']}}, 'bbox': [0.0, 0.0, 0.0, 0.0], 'stac_extensions': [], 'collection': 'SNDR_SNPP_ATMS_L1A___1'}, 
    {'type': 'Feature', 'stac_version': '1.0.0', 'id': 'SNDR.SNPP.ATMS.L1A.nominal2.18', 'properties': {'start_datetime': '2016-01-14T11:36:00Z', 'end_datetime': '2016-01-14T11:42:00Z', 'created': '2020-12-14T13:50:00Z', 'updated': '2022-08-15T06:26:26.060000Z', 'datetime': '2022-08-15T06:26:19.698000Z'}, 'geometry': {'type': 'Point', 'coordinates': [0.0, 0.0]}, 'links': [{'rel': 'collection', 'href': '.'}], 'assets': {'SNDR.SNPP.ATMS.L1A.nominal2.18.nc': {'href': 'CONTRIBUTING.md', 'title': 'SNDR.SNPP.ATMS.L1A.nominal2.18.nc', 'description': 'SNDR.SNPP.ATMS.L1A.nominal2.18.nc', 'roles': ['data']}}, 'bbox': [0.0, 0.0, 0.0, 0.0], 'stac_extensions': [], 'collection': 'SNDR_SNPP_ATMS_L1A___1'}, {'type': 'Feature', 'stac_version': '1.0.0', 'id': 'SNDR.SNPP.ATMS.L1A.nominal2.04', 'properties': {'start_datetime': '2016-01-14T10:12:00Z', 'end_datetime': '2016-01-14T10:18:00Z', 'created': '2020-12-14T13:50:00Z', 'updated': '2022-08-15T06:26:26.050000Z', 'datetime': '2022-08-15T06:26:19.491000Z'}, 'geometry': {'type': 'Point', 'coordinates': [0.0, 0.0]}, 'links': [{'rel': 'collection', 'href': '.'}], 'assets': {'SNDR.SNPP.ATMS.L1A.nominal2.04.nc': {'href': 'LICENSE', 'title': 'SNDR.SNPP.ATMS.L1A.nominal2.04.nc', 'description': 'SNDR.SNPP.ATMS.L1A.nominal2.04.nc', 'roles': ['data']}}, 'bbox': [0.0, 0.0, 0.0, 0.0], 'stac_extensions': [], 'collection': 'SNDR_SNPP_ATMS_L1A___1'}], 'numberMatched': 20, 'numberReturned': 20, 'stac_version': '1.0.0', 'links': [{'rel': 'self', 'href': 'https://58nbcawrvb.execute-api.us-west-2.amazonaws.com/test/am-uds-dapa/collections/SNDR_SNPP_ATMS_L1A___1/items?datetime=2016-01-14T08:00:00Z/2016-01-14T11:59:59Z&limit=100&offset=0'}, {'rel': 'root', 'href': 'https://58nbcawrvb.execute-api.us-west-2.amazonaws.com'}, {'rel': 'next', 'href': 'https://58nbcawrvb.execute-api.us-west-2.amazonaws.com/test/am-uds-dapa/collections/SNDR_SNPP_ATMS_L1A___1/items?datetime=2016-01-14T08:00:00Z/2016-01-14T11:59:59Z&limit=100&offset=100'}, {'rel': 'prev', 'href': 'https://58nbcawrvb.execute-api.us-west-2.amazonaws.com/test/am-uds-dapa/collections/SNDR_SNPP_ATMS_L1A___1/items?datetime=2016-01-14T08:00:00Z/2016-01-14T11:59:59Z&limit=100&offset=0'}
]}

Should it be renamed to feature_collection.json or redo the content to catalog?