sat-utils / sat-stac-sentinel

Creation of a Sentinel Spatio-Temporal Asset Catalog (STAC) from inventory of the Sentinel public dataset on AWS
MIT License
21 stars 4 forks source link

STAC item, type of image "image/jp2" where it should be tiff #3

Closed guydou closed 5 years ago

guydou commented 5 years ago

Hi guys,

I was fetching records from 2019 to my catalog, and I saw that the type of the images in the assets is "image/jp2" but the file themselves are of type tiff

For example this asset, but there are many

 "B07": {
      "title": "Band 7",
      "type": "image/jp2",
      "eo:bands": [
        6
      ],
      "href": "https://sentinel-s2-l1c.s3.amazonaws.com/tiles/15/T/WK/2019/1/5/0/B07.TIF"
    }

Is it expected?

Guy

matthewhanson commented 5 years ago

Thanks for pointing that out @guydou ! I can't believe that wasn't caught before. The files should have extensions of jp2, not TIF.

I've updated the lambda function so that new Items ingested to sat-api.developmentseed.org will be fixed, and I'm kicking off an update script to update the existing records.

thanks again!