{
  "type": "Feature",
  "stac_version": "1.0.0",
  "stac_extensions": ["https://stac-extensions.github.io/table/v1.2.0/schema.json", "https://stac-extensions.github.io/web-map-links/v1.2.0/schema.json", "https://stac-extensions.github.io/alternate-assets/v1.2.0/schema.json", "https://marinesensitivity.github.io/stac-sdm/v1.0.0/schema.json"],
  "id": "msens-v8-ch_nmfs-model_cell",
  "collection": "msens-v8-ch_nmfs",
  "bbox": [-180, -18, 180, 75],
  "geometry": {
    "type": "Polygon",
    "coordinates": [
      [
        [-180, -18],
        [180, -18],
        [180, 75],
        [-180, 75],
        [-180, -18]
      ]
    ]
  },
  "properties": {
    "sdm:response_type": "mixed",
    "sdm:method": "critical_habitat",
    "sdm:source_authority": "NOAA NMFS",
    "sdm:temporal_interval": "static",
    "datetime": "2025-01-01T00:00:00Z",
    "title": "NMFS Critical Habitat surfaces, v8",
    "description": "Per-taxon model surfaces stored as model_cell rows; served statically as GeoParquet and dynamically via the DuckDB-SQL TiTiler endpoint."
  },
  "assets": {
    "data": {
      "href": "https://s3.us-east-1.amazonaws.com/oceanmetrics.io-public/marine-atlas/v8/dist_merged/",
      "type": "application/vnd.apache.parquet",
      "roles": ["data"],
      "title": "model_cell surfaces (partitioned GeoParquet; filter by mdl_key)",
      "table:primary_geometry": "cell_id",
      "table:columns": [
        {
          "name": "mdl_key",
          "type": "string",
          "description": "stable model id (FK model.mdl_key)"
        },
        {
          "name": "cell_id",
          "type": "int32",
          "description": "grid cell id (FK cell.cell_id)"
        },
        {
          "name": "val",
          "type": "double",
          "description": "model value"
        }
      ],
      "alternate": {
        "duckdb_sql": {
          "href": "https://titiler-v8.marinesensitivity.org/msens",
          "alternate:name": "Live DuckDB-SQL surface",
          "roles": ["data"],
          "sdm:sql_template": "SELECT cell_id, val AS value FROM model_cell WHERE mdl_key = '{mdl_key}'"
        }
      }
    },
    "pmtiles_native": {
      "href": "https://file.marinesensitivity.org/pmtiles/v8/ch_nmfs/",
      "type": "application/vnd.pmtiles",
      "roles": ["data", "visual"],
      "representation": "native",
      "title": "Per-model original-range PMTiles (the ORIGINAL surface; filter by mdl_key)"
    },
    "cog_model": {
      "href": "https://s3.us-east-1.amazonaws.com/oceanmetrics.io-public/marine-atlas/v8/native/vec_grid/",
      "type": "image/tiff; application=geotiff; profile=cloud-optimized",
      "roles": ["data", "visual"],
      "representation": "model",
      "title": "Per-model 0.05° gridded COGs (the MODELED surface; opt-in); titiler /cog"
    }
  },
  "links": [
    {
      "rel": "root",
      "href": "../../catalog.json"
    },
    {
      "rel": "parent",
      "href": "../collection.json"
    },
    {
      "rel": "collection",
      "href": "../collection.json"
    },
    {
      "rel": "xyz",
      "href": "https://titiler-v8.marinesensitivity.org/msens/tiles/{z}/{x}/{y}.png?sql=U0VMRUNUIGNlbGxfaWQsIHZhbCBBUyB2YWx1ZSBGUk9NIG1vZGVsX2NlbGwgV0hFUkUgbWRsX2tleSA9ICdjaF9ubWZzfEFjaXBlbnNlcl9tZWRpcm9zdHJpcyc&colormap=spectral_r",
      "type": "image/png",
      "title": "Rendered raster tiles via TiTiler (DuckDB SQL); re-bake sql= per mdl_key"
    },
    {
      "rel": "tilejson",
      "href": "https://titiler-v8.marinesensitivity.org/msens/tilejson.json?sql=U0VMRUNUIGNlbGxfaWQsIHZhbCBBUyB2YWx1ZSBGUk9NIG1vZGVsX2NlbGwgV0hFUkUgbWRsX2tleSA9ICdjaF9ubWZzfEFjaXBlbnNlcl9tZWRpcm9zdHJpcyc&colormap=spectral_r",
      "type": "application/json",
      "title": "TileJSON for the DuckDB-SQL surface"
    },
    {
      "rel": "self",
      "href": "https://file.marinesensitivity.org/stac/v8/ch_nmfs/msens-v8-ch_nmfs-model_cell.json"
    }
  ]
}
