{
 "version": "0.1.0",
 "generated": "2026-11-03T13:24:35+00:00",
 "town": {
  "slug": "porcuna",
  "name": "Porcuna",
  "name_official": "Porcuna",
  "ine_code": "23069",
  "province": "Jaén",
  "region": "Andalucía",
  "population": 5936,
  "population_year": "2025"
 },
 "map": {
  "bounds_core": [
   -4.19444,
   37.86317,
   -4.16882,
   37.87946
  ],
  "bounds_aoi": [
   -4.20489,
   37.8549,
   -4.15834,
   37.88781
  ]
 },
 "numbers": {
  "core_area_km2": 1.22,
  "core_cells": 54,
  "lst_core_median_c": 46.2,
  "lst_core_p95_c": 47.5,
  "lst_core_max150_c": 48.7,
  "lst_hot_threshold_c": 46.7,
  "hot_threshold_pct": 85,
  "n_eligible_cells": 892,
  "green_core_pct": 8.0,
  "built_minus_leafy_c": 1.2,
  "built_minus_vegetated_c": -0.8,
  "leafy_ndvi": 0.5,
  "lst_aoi_median_c": 48.1,
  "lst_dates": [
   "2025-06-08",
   "2026-09-23"
  ],
  "ndvi_dates": [
   "2025-06-26",
   "2026-09-24"
  ],
  "n_schools_core": 4,
  "n_health_core": 4,
  "main_square": {
   "name": "Plaza de Andalucía",
   "osm_id": "way/938828699",
   "method": "square nearest the town hall (Ayuntamiento de Porcuna)"
  }
 },
 "sanity": {
  "clear_overpasses": 25,
  "landsat_scenes": 25,
  "landsat_rejected": 3,
  "sentinel2_images": 32,
  "built_minus_leafy_c": 1.2,
  "n_leafy_cells": 73,
  "leafy_ndvi": 0.5,
  "built_minus_vegetated_c": -0.8,
  "n_vegetated_cells": 2493,
  "hotspot_anomalies_c": [
   1.1,
   1.2,
   0.8,
   0.7,
   0.6
  ],
  "hotspots_found": 5,
  "unnamed_hotspots": [],
  "problems": [],
  "pass": true
 },
 "layers": {
  "lst": {
   "file": "lst.png",
   "crs": "EPSG:3857",
   "coordinates": [
    [
     -4.208349,
     37.890544
    ],
    [
     -4.154989,
     37.890544
    ],
    [
     -4.154989,
     37.852039
    ],
    [
     -4.208349,
     37.852039
    ]
   ],
   "vmin": 44.0,
   "vmax": 51.0,
   "stops": [
    "#1d3b78",
    "#2f7fd6",
    "#4fd1ff",
    "#b04fff",
    "#ff5aa0",
    "#ff9e6b",
    "#ffe28a"
   ],
   "res_m": 30
  },
  "green": {
   "file": "green.png",
   "crs": "EPSG:3857",
   "coordinates": [
    [
     -4.208349,
     37.890544
    ],
    [
     -4.154899,
     37.890544
    ],
    [
     -4.154899,
     37.85211
    ],
    [
     -4.208349,
     37.85211
    ]
   ],
   "threshold": 0.3,
   "res_m": 10
  }
 },
 "lst": {
  "scenes": [
   {
    "id": "LC09_L2SP_201034_20250608_02_T1",
    "date": "2025-06-08",
    "platform": "landsat-9",
    "scene_cloud_pct": 0.25,
    "wrs": "201/034",
    "clear_pct": 100.0,
    "coverage_pct": 100.0
   },
   {
    "id": "LC08_L2SP_201034_20250616_02_T1",
    "date": "2025-06-16",
    "platform": "landsat-8",
    "scene_cloud_pct": 34.81,
    "wrs": "201/034",
    "clear_pct": 100.0,
    "coverage_pct": 100.0
   },
   {
    "id": "LC08_L2SP_201034_20250702_02_T1",
    "date": "2025-07-02",
    "platform": "landsat-8",
    "scene_cloud_pct": 0.87,
    "wrs": "201/034",
    "clear_pct": 100.0,
    "coverage_pct": 100.0
   },
   {
    "id": "LC09_L2SP_201034_20250710_02_T1",
    "date": "2025-07-10",
    "platform": "landsat-9",
    "scene_cloud_pct": 10.03,
    "wrs": "201/034",
    "clear_pct": 100.0,
    "coverage_pct": 100.0
   },
   {
    "id": "LC08_L2SP_201034_20250718_02_T1",
    "date": "2025-07-18",
    "platform": "landsat-8",
    "scene_cloud_pct": 2.53,
    "wrs": "201/034",
    "clear_pct": 100.0,
    "coverage_pct": 100.0
   },
   {
    "id": "LC09_L2SP_201034_20250726_02_T1",
    "date": "2025-07-26",
    "platform": "landsat-9",
    "scene_cloud_pct": 0.99,
    "wrs": "201/034",
    "clear_pct": 100.0,
    "coverage_pct": 100.0
   },
   {
    "id": "LC08_L2SP_201034_20250803_02_T1",
    "date": "2025-08-03",
    "platform": "landsat-8",
    "scene_cloud_pct": 0.0,
    "wrs": "201/034",
    "clear_pct": 100.0,
    "coverage_pct": 100.0
   },
   {
    "id": "LC09_L2SP_201034_20250811_02_T1",
    "date": "2025-08-11",
    "platform": "landsat-9",
    "scene_cloud_pct": 0.0,
    "wrs": "201/034",
    "clear_pct": 100.0,
    "coverage_pct": 100.0
   },
   {
    "id": "LC08_L2SP_201034_20250819_02_T1",
    "date": "2025-08-19",
    "platform": "landsat-8",
    "scene_cloud_pct": 0.42,
    "wrs": "201/034",
    "clear_pct": 100.0,
    "coverage_pct": 100.0
   },
   {
    "id": "LC09_L2SP_201034_20250827_02_T1",
    "date": "2025-08-27",
    "platform": "landsat-9",
    "scene_cloud_pct": 2.85,
    "wrs": "201/034",
    "clear_pct": 100.0,
    "coverage_pct": 100.0
   },
   {
    "id": "LC09_L2SP_201034_20250912_02_T1",
    "date": "2025-09-12",
    "platform": "landsat-9",
    "scene_cloud_pct": 0.0,
    "wrs": "201/034",
    "clear_pct": 100.0,
    "coverage_pct": 100.0
   },
   {
    "id": "LC08_L2SP_201034_20260603_02_T1",
    "date": "2026-06-03",
    "platform": "landsat-8",
    "scene_cloud_pct": 2.75,
    "wrs": "201/034",
    "clear_pct": 100.0,
    "coverage_pct": 100.0
   },
   {
    "id": "LC09_L2SP_201034_20260611_02_T1",
    "date": "2026-06-11",
    "platform": "landsat-9",
    "scene_cloud_pct": 14.06,
    "wrs": "201/034",
    "clear_pct": 100.0,
    "coverage_pct": 100.0
   },
   {
    "id": "LC09_L2SP_201034_20260627_02_T1",
    "date": "2026-06-27",
    "platform": "landsat-9",
    "scene_cloud_pct": 4.51,
    "wrs": "201/034",
    "clear_pct": 100.0,
    "coverage_pct": 100.0
   },
   {
    "id": "LC08_L2SP_201034_20260705_02_T1",
    "date": "2026-07-05",
    "platform": "landsat-8",
    "scene_cloud_pct": 2.07,
    "wrs": "201/034",
    "clear_pct": 100.0,
    "coverage_pct": 100.0
   },
   {
    "id": "LC09_L2SP_201034_20260713_02_T1",
    "date": "2026-07-13",
    "platform": "landsat-9",
    "scene_cloud_pct": 3.25,
    "wrs": "201/034",
    "clear_pct": 100.0,
    "coverage_pct": 100.0
   },
   {
    "id": "LC08_L2SP_201034_20260721_02_T1",
    "date": "2026-07-21",
    "platform": "landsat-8",
    "scene_cloud_pct": 35.35,
    "wrs": "201/034",
    "clear_pct": 100.0,
    "coverage_pct": 100.0
   },
   {
    "id": "LC09_L2SP_201034_20260729_02_T1",
    "date": "2026-07-29",
    "platform": "landsat-9",
    "scene_cloud_pct": 1.48,
    "wrs": "201/034",
    "clear_pct": 100.0,
    "coverage_pct": 100.0
   },
   {
    "id": "LC08_L2SP_201034_20260806_02_T1",
    "date": "2026-08-06",
    "platform": "landsat-8",
    "scene_cloud_pct": 0.04,
    "wrs": "201/034",
    "clear_pct": 100.0,
    "coverage_pct": 100.0
   },
   {
    "id": "LC09_L2SP_201034_20260814_02_T1",
    "date": "2026-08-14",
    "platform": "landsat-9",
    "scene_cloud_pct": 0.22,
    "wrs": "201/034",
    "clear_pct": 100.0,
    "coverage_pct": 100.0
   },
   {
    "id": "LC08_L2SP_201034_20260822_02_T1",
    "date": "2026-08-22",
    "platform": "landsat-8",
    "scene_cloud_pct": 0.02,
    "wrs": "201/034",
    "clear_pct": 100.0,
    "coverage_pct": 100.0
   },
   {
    "id": "LC09_L2SP_201034_20260830_02_T1",
    "date": "2026-08-30",
    "platform": "landsat-9",
    "scene_cloud_pct": 0.0,
    "wrs": "201/034",
    "clear_pct": 100.0,
    "coverage_pct": 100.0
   },
   {
    "id": "LC08_L2SP_201034_20260907_02_T1",
    "date": "2026-09-07",
    "platform": "landsat-8",
    "scene_cloud_pct": 0.11,
    "wrs": "201/034",
    "clear_pct": 100.0,
    "coverage_pct": 100.0
   },
   {
    "id": "LC09_L2SP_201034_20260915_02_T1",
    "date": "2026-09-15",
    "platform": "landsat-9",
    "scene_cloud_pct": 0.01,
    "wrs": "201/034",
    "clear_pct": 100.0,
    "coverage_pct": 100.0
   },
   {
    "id": "LC08_L2SP_201034_20260923_02_T1",
    "date": "2026-09-23",
    "platform": "landsat-8",
    "scene_cloud_pct": 0.29,
    "wrs": "201/034",
    "clear_pct": 100.0,
    "coverage_pct": 100.0
   }
  ],
  "rejected": [
   {
    "id": "LC08_L2SP_201034_20250920_02_T1",
    "date": "2025-09-20",
    "platform": "landsat-8",
    "scene_cloud_pct": 10.87,
    "wrs": "201/034",
    "reason": "clear fraction 14%"
   },
   {
    "id": "LC08_L2SP_201034_20250904_02_T1",
    "date": "2025-09-04",
    "platform": "landsat-8",
    "scene_cloud_pct": 15.83,
    "wrs": "201/034",
    "reason": "clear fraction 0%"
   },
   {
    "id": "LC09_L2SP_201034_20250624_02_T1",
    "date": "2025-06-24",
    "platform": "landsat-9",
    "scene_cloud_pct": 23.23,
    "wrs": "201/034",
    "reason": "clear fraction 4%"
   }
  ],
  "n_overpasses": 25
 },
 "ndvi": {
  "scenes": [
   {
    "id": "S2C_MSIL2A_20250626T105641_R094_T30SUH_20250626T150302",
    "date": "2025-06-26",
    "tile": "30SUH",
    "scene_cloud_pct": 0.0
   },
   {
    "id": "S2C_MSIL2A_20250716T105641_R094_T30SUH_20250716T160917",
    "date": "2025-07-16",
    "tile": "30SUH",
    "scene_cloud_pct": 0.0
   },
   {
    "id": "S2B_MSIL2A_20250721T105619_R094_T30SUH_20250721T132337",
    "date": "2025-07-21",
    "tile": "30SUH",
    "scene_cloud_pct": 0.0
   },
   {
    "id": "S2A_MSIL2A_20250728T105701_R094_T30SUH_20250728T162557",
    "date": "2025-07-28",
    "tile": "30SUH",
    "scene_cloud_pct": 0.0
   },
   {
    "id": "S2A_MSIL2A_20250728T105701_R094_T30SUG_20250728T162557",
    "date": "2025-07-28",
    "tile": "30SUG",
    "scene_cloud_pct": 0.0
   },
   {
    "id": "S2B_MSIL2A_20250731T105619_R094_T30SUG_20250731T132553",
    "date": "2025-07-31",
    "tile": "30SUG",
    "scene_cloud_pct": 0.0
   },
   {
    "id": "S2A_MSIL2A_20250807T105711_R094_T30SUH_20250807T161814",
    "date": "2025-08-07",
    "tile": "30SUH",
    "scene_cloud_pct": 0.0
   },
   {
    "id": "S2A_MSIL2A_20250807T105711_R094_T30SUG_20250807T161814",
    "date": "2025-08-07",
    "tile": "30SUG",
    "scene_cloud_pct": 0.0
   },
   {
    "id": "S2B_MSIL2A_20250810T105619_R094_T30SUH_20250810T132603",
    "date": "2025-08-10",
    "tile": "30SUH",
    "scene_cloud_pct": 0.0
   },
   {
    "id": "S2B_MSIL2A_20250810T105619_R094_T30SUG_20250810T132603",
    "date": "2025-08-10",
    "tile": "30SUG",
    "scene_cloud_pct": 0.0
   },
   {
    "id": "S2B_MSIL2A_20250820T105619_R094_T30SUG_20250820T134811",
    "date": "2025-08-20",
    "tile": "30SUG",
    "scene_cloud_pct": 0.0
   },
   {
    "id": "S2A_MSIL2A_20250827T105701_R094_T30SUH_20250827T170314",
    "date": "2025-08-27",
    "tile": "30SUH",
    "scene_cloud_pct": 0.0
   },
   {
    "id": "S2A_MSIL2A_20250827T105701_R094_T30SUG_20250827T161110",
    "date": "2025-08-27",
    "tile": "30SUG",
    "scene_cloud_pct": 0.0
   },
   {
    "id": "S2B_MSIL2A_20250830T105619_R094_T30SUG_20250830T132026",
    "date": "2025-08-30",
    "tile": "30SUG",
    "scene_cloud_pct": 0.0
   },
   {
    "id": "S2C_MSIL2A_20250914T105701_R094_T30SUH_20250914T181606",
    "date": "2025-09-14",
    "tile": "30SUH",
    "scene_cloud_pct": 0.0
   },
   {
    "id": "S2A_MSIL2A_20250916T105721_R094_T30SUG_20250916T151314",
    "date": "2025-09-16",
    "tile": "30SUG",
    "scene_cloud_pct": 0.0
   },
   {
    "id": "S2A_MSIL2A_20260603T105711_R094_T30SUH_20260603T173858",
    "date": "2026-06-03",
    "tile": "30SUH",
    "scene_cloud_pct": 0.0
   },
   {
    "id": "S2C_MSIL2A_20260621T105621_R094_T30SUH_20260621T144252",
    "date": "2026-06-21",
    "tile": "30SUH",
    "scene_cloud_pct": 0.0
   },
   {
    "id": "S2C_MSIL2A_20260711T105621_R094_T30SUH_20260711T144417",
    "date": "2026-07-11",
    "tile": "30SUH",
    "scene_cloud_pct": 0.0
   },
   {
    "id": "S2A_MSIL2A_20260713T105711_R094_T30SUG_20260713T173510",
    "date": "2026-07-13",
    "tile": "30SUG",
    "scene_cloud_pct": 0.0
   },
   {
    "id": "S2B_MSIL2A_20260726T105619_R094_T30SUG_20260726T133100",
    "date": "2026-07-26",
    "tile": "30SUG",
    "scene_cloud_pct": 0.0
   },
   {
    "id": "S2C_MSIL2A_20260731T105621_R094_T30SUG_20260731T144309",
    "date": "2026-07-31",
    "tile": "30SUG",
    "scene_cloud_pct": 0.0
   },
   {
    "id": "S2A_MSIL2A_20260802T105711_R094_T30SUG_20260802T205411",
    "date": "2026-08-02",
    "tile": "30SUG",
    "scene_cloud_pct": 0.0
   },
   {
    "id": "S2B_MSIL2A_20260805T105619_R094_T30SUG_20260805T133053",
    "date": "2026-08-05",
    "tile": "30SUG",
    "scene_cloud_pct": 0.0
   },
   {
    "id": "S2C_MSIL2A_20260810T105621_R094_T30SUH_20260810T143318",
    "date": "2026-08-10",
    "tile": "30SUH",
    "scene_cloud_pct": 0.0
   },
   {
    "id": "S2A_MSIL2A_20260812T105651_R094_T30SUH_20260812T192512",
    "date": "2026-08-12",
    "tile": "30SUH",
    "scene_cloud_pct": 0.0
   },
   {
    "id": "S2C_MSIL2A_20260830T105621_R094_T30SUG_20260830T144012",
    "date": "2026-08-30",
    "tile": "30SUG",
    "scene_cloud_pct": 0.0
   },
   {
    "id": "S2A_MSIL2A_20260911T105701_R094_T30SUH_20260911T173812",
    "date": "2026-09-11",
    "tile": "30SUH",
    "scene_cloud_pct": 0.0
   },
   {
    "id": "S2B_MSIL2A_20260914T105619_R094_T30SUG_20260914T152429",
    "date": "2026-09-14",
    "tile": "30SUG",
    "scene_cloud_pct": 0.0
   },
   {
    "id": "S2A_MSIL2A_20260921T105701_R094_T30SUH_20260921T192615",
    "date": "2026-09-21",
    "tile": "30SUH",
    "scene_cloud_pct": 0.0
   },
   {
    "id": "S2B_MSIL2A_20260924T105709_R094_T30SUH_20260924T150018",
    "date": "2026-09-24",
    "tile": "30SUH",
    "scene_cloud_pct": 0.0
   },
   {
    "id": "S2B_MSIL2A_20260924T105709_R094_T30SUG_20260924T150018",
    "date": "2026-09-24",
    "tile": "30SUG",
    "scene_cloud_pct": 0.0
   }
  ],
  "n": 32
 },
 "method": {
  "cell_m": 150,
  "core_building_cover_min": 0.1,
  "hotspot_building_cover_min": 0.15,
  "hotspot_industrial_max": 0.5,
  "nearby_m": {
   "school": 300,
   "health": 400,
   "care": 400,
   "market": 400,
   "public": 600,
   "townhall": 600,
   "square": 250,
   "water": 200
  },
  "doc": "Small-town heat profile: hottest built-up spots of the urban core on a 150 m grid.\n\n    python smalltowns/pipeline/build_town.py --town algorfa\n    python smalltowns/pipeline/build_town.py --all [--jobs 2]\n\nCensus sections are too few in a 3,000-20,000 town to rank, so instead:\n 1. urban core   = Cadastre (INSPIRE) building footprints rasterised to a 150 m grid; cells with >= 12 % building\n                   cover, closed and hole-filled, connected component at (or nearest to) the town point;\n 2. surface heat = Landsat 8/9 summer median LST (2025 + 2026, cities/pipeline/satellite.py) on 30 m, averaged to\n                   150 m; vegetation = Sentinel-2 summer median NDVI;\n 3. hotspots     = built-up core cells (>= 15 % building cover, < 50 % industrial footprint) at or above the 85th\n                   percentile of the core, grown from the hottest cell into its hot neighbours (<= 6 cells, within\n                   1 C of the peak), 3-5 of them at least 300 m apart; relaxed to the 75th/65th percentile when fewer\n                   than 3 are found;\n 4. names        = nearest named OSM square in or within 75 m of the hotspot; else a named landmark (church, town\n                   hall, market, park); else the longest named street inside it; never invented;\n 5. nearby       = schools, health centres, care homes, market, main square and public buildings from OSM;\n 6. measures     = 3 low-cost first measures per hotspot chosen by rules from what is actually there.\n\nOutputs smalltowns/data/<slug>/: stats.json, hotspots.geojson, core.geojson, pois.geojson, lst.png/.pgw, green.png/.pgw"
 },
 "sources": {
  "landsat": {
   "name": "Landsat 8-9 OLI/TIRS Collection 2 Level-2, Surface Temperature (ST_B10)",
   "provider": "USGS / NASA, via Microsoft Planetary Computer",
   "collection": "landsat-c2-l2",
   "url": "https://planetarycomputer.microsoft.com/dataset/landsat-c2-l2",
   "credit": "Landsat imagery courtesy of the U.S. Geological Survey / NASA",
   "licence": "Public domain (USGS)"
  },
  "sentinel2": {
   "name": "Sentinel-2 L2A surface reflectance (B04, B08, SCL)",
   "provider": "ESA Copernicus, via Microsoft Planetary Computer",
   "collection": "sentinel-2-l2a",
   "url": "https://planetarycomputer.microsoft.com/dataset/sentinel-2-l2a",
   "credit": "Contains modified Copernicus Sentinel data 2025-2026",
   "licence": "Copernicus Sentinel data terms (free, full and open)"
  },
  "buildings": {
   "name": "Dirección General del Catastro, INSPIRE Buildings (BU)",
   "url": "https://www.catastro.hacienda.gob.es/webinspire/index.html",
   "licence": "Free reuse with attribution ('Dirección General del Catastro')",
   "file": "https://www.catastro.hacienda.gob.es/INSPIRE/Buildings/23/23069-PORCUNA/A.ES.SDGC.BU.23069.zip",
   "cadastre_code": "23069",
   "cadastre_name": "PORCUNA"
  },
  "osm": {
   "name": "© OpenStreetMap contributors",
   "url": "https://www.openstreetmap.org/copyright",
   "licence": "ODbL 1.0",
   "access": "OpenStreetMap API 0.6 /map (bbox tiles)"
  }
 },
 "build_seconds": 2,
 "climate": null
}