Closed TomAugspurger closed 2 years ago
cc @gadomski, if you recall anything about this dataset. Do you know why the metadata might differ from the values in the COG?
I've taken a quick initial look, and there's some discrepancy in the resolution within the same dataset:
I'll have to look over the full holdings and dig into what's up.
After further review, there's an almost even split between correct and incorrect metadata. @TomAugspurger let's catch up offline (aka at our meeting later) to talk through strategies -- #10 should probably be addressed as well.
As reported by @aazuspan in https://github.com/gjoseph92/stackstac/issues/147, the
proj
information of these STAC items (sometimes?) doesn't align with the information reported bygdalinfo
.STAC metadata
``` {'type': 'Feature', 'stac_version': '1.0.0', 'id': 'n44w125-1', 'properties': {'gsd': 30, 'datetime': '2013-01-01T00:00:00Z', 'proj:epsg': 5498, 'proj:shape': [3612, 3612], 'end_datetime': '2013-11-01T00:00:00Z', 'proj:transform': [1e-05, 0.0, -125.0016666667, 0.0, -1e-05, 44.00166666666, 0.0, 0.0, 1.0], 'start_datetime': '1999-02-01T00:00:00Z', 'threedep:region': 'n40w130'}, 'geometry': {'type': 'Polygon', 'coordinates': [[[-123.99833333, 42.99833333], [-123.99833333, 44.00166667], [-125.00166667, 44.00166667], [-125.00166667, 42.99833333], [-123.99833333, 42.99833333]]]}, 'links': [{'rel': 'collection', 'href': 'https://planetarycomputer.microsoft.com/api/stac/v1/collections/3dep-seamless', 'type': 'application/json'}, {'rel': 'parent', 'href': 'https://planetarycomputer.microsoft.com/api/stac/v1/collections/3dep-seamless', 'type': 'application/json'}, {'rel':gdalinfo
``` Driver: GTiff/GeoTIFF Files: USGS_1_n44w125.tif Size is 3612, 3612 Coordinate System is: GEOGCRS["NAD83", DATUM["North American Datum 1983", ELLIPSOID["GRS 1980",6378137,298.257222101004, LENGTHUNIT["metre",1]]], PRIMEM["Greenwich",0, ANGLEUNIT["degree",0.0174532925199433]], CS[ellipsoidal,2], AXIS["geodetic latitude (Lat)",north, ORDER[1], ANGLEUNIT["degree",0.0174532925199433]], AXIS["geodetic longitude (Lon)",east, ORDER[2], ANGLEUNIT["degree",0.0174532925199433]], ID["EPSG",4269]] Data axis to CRS axis mapping: 2,1 Origin = (-125.001666666666665,44.001666666666665) Pixel Size = (0.000277777777778,-0.000277777777778) Metadata: AREA_OR_POINT=Area Image Structure Metadata: COMPRESSION=LZW INTERLEAVE=BAND PREDICTOR=3 Corner Coordinates: Upper Left (-125.0016667, 44.0016667) (125d 0' 6.00"W, 44d 0' 6.00"N) Lower Left (-125.0016667, 42.9983333) (125d 0' 6.00"W, 42d59'54.00"N) Upper Right (-123.9983333, 44.0016667) (123d59'54.00"W, 44d 0' 6.00"N) Lower Right (-123.9983333, 42.9983333) (123d59'54.00"W, 42d59'54.00"N) Center (-124.5000000, 43.5000000) (124d30' 0.00"W, 43d30' 0.00"N) Band 1 Block=256x256 Type=Float32, ColorInterp=Gray Description = Layer_1 Min=-5.715 Max=517.677 Minimum=-5.715, Maximum=517.677, Mean=27.307, StdDev=64.316 NoData Value=-999999 Overviews: 1806x1806, 903x903, 452x452, 226x226, 113x113 Metadata: LAYER_TYPE=athematic STATISTICS_MAXIMUM=517.67651367188 STATISTICS_MEAN=27.306801648412 STATISTICS_MINIMUM=-5.7150769233704 STATISTICS_STDDEV=64.31571761273 STATISTICS_VALID_PERCENT=99.83 ```Looking at the metadata in https://ai4edataeuwest.blob.core.windows.net/3dep/Elevation/1/TIFF/n44w125/USGS_1_n44w125.xml (needs to be signed) I see the
0.00001
.