wri / gfw_forest_loss_geotrellis

Global Tree Cover Loss Analysis using Geotrellis and SPARK
MIT License
10 stars 8 forks source link

Remove duplicate layer name entries in raster-catalog-*.json #216

Closed danscales closed 8 months ago

danscales commented 8 months ago

I noticed that there were several cases where there were multiple entries with the same dataset name in raster-catalog-pro.json and raster-catalog-default.json. Since RasterCatalog.getSourceUri() only looks for the first matching entry, the later entries are never used. So, to avoid confusion, I removed the later duplicate entries from both files.

The earlier entries (the ones being used) always have the same (or in a few cases, a later) version date, but they often have a different pixel meaning.