unity-sds / mdps-tutorial

Tutorials for the Sounder SIPS prototype effort
Apache License 2.0
2 stars 3 forks source link

Updated working with data notebook to include creating new collection #18

Closed ngachung closed 2 years ago

ngachung commented 2 years ago

Added two code cells.

  1. Call post with the following JSON
{
  "type": "Collection",
  "id": collection_id,
  "stac_version": "1.0.0",
  "description": "TODO",
  "links": [
    {
      "rel": "root",
      "href": "./collection.json?bucket=unknown_bucket&regex=%7BcmrMetadata.Granule.Collection.ShortName%7D___%7BcmrMetadata.Granule.Collection.VersionId%7D",
      "type": "application/json",
      "title": "test_file01.nc"
    },
    {
      "rel": "item",
      "href": "./collection.json?bucket=protected&regex=%5Etest_file.%2A%5C.nc%24",
      "type": "data",
      "title": "test_file01.nc"
    },
    {
      "rel": "item",
      "href": "./collection.json?bucket=protected&regex=%5Etest_file.%2A%5C.nc%5C.cas%24",
      "type": "metadata",
      "title": "test_file01.nc.cas"
    },
    {
      "rel": "item",
      "href": "./collection.json?bucket=private&regex=%5Etest_file.%2A%5C.cmr%5C.xml%24",
      "type": "metadata",
      "title": "test_file01.cmr.xml"
    }
  ],
  "stac_extensions": [],
  "extent": {
    "spatial": {
      "bbox": [
        [
          -180,
          -90,
          180,
          90
        ]
      ]
    },
    "temporal": {
      "interval": [
        [
          "2022-10-04T00:00:00.000000Z",
          "2022-10-04T23:59:59.999999Z"
        ]
      ]
    }
  },
  "license": "proprietary",
  "summaries": {
    "granuleId": [
      "^test_file.*$"
    ],
    "granuleIdExtraction": [
      "(^test_file.*)(\\.nc|\\.nc\\.cas|\\.cmr\\.xml)"
    ],
    "process": [
      "snpp.level1"
    ]
  }
}
  1. Call get to retrieve newly created collection

We know this JSON is not "easy" for an end user to construct, but we just want to see a working example first. We have a spreadsheet that shows mapping between Cumulus collection field and STAC collection field in Unity G-Drive for those interested.

review-notebook-app[bot] commented 2 years ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

anilnatha commented 2 years ago

@rtapella These changes have been published. Right after I published them I realized we should discuss our usability testing workflow before committing changes to main.