{
  "cells": [
    {
      "cell_type": "markdown",
      "id": "subdivision-intro",
      "metadata": {},
      "source": "# One region at a time, across continents\n\nUse a matching subdivision map enabled native Aner development runtime and notebook integration. Aner Plot awaits a binary release; development runtime and extension packages are not distributed by the website.\n\nEach chart cell works on its own after the import cell. Install only its named `.anermap` pack, for example `aner maps install /media/maps/region.usa.co.anermap`. Importing `aner.plot` loads no geometry. A single region chart does not require a country, continent, world or neighboring region pack. Running every cell intentionally constructs seven separate charts and retains the selected scenes in notebook outputs.\n\nAll numerical values are synthetic teaching indices. Boulder is an illustrative latitude/longitude point over the Colorado state outline; this is not a city boundary, road map or surveyed observation. Lambert azimuthal equal area is a locally centered display projection; the source is generalized display geometry rather than an area measurement dataset.\n\nThe exact region IDs and join keys come from the published subdivision catalogue. Natural Earth source levels and vintages vary. Scotland uses the four country UK first order source; council areas remain explicitly described alternatives. Source attribution and licenses accompany output and optional packs.\n\nThe same analysis cells run as `.aner`, `.anernb` and Jupyter `.ipynb`. Existing notebook snapshots and supported HTML/SVG exports carry only their selected geometry for offline viewing. Rerunning code still needs the matching installed pack. No CSV, network service or map credentials are needed.\n"
    },
    {
      "cell_type": "code",
      "id": "subdivision-imports",
      "metadata": {},
      "source": [
        "import aner.plot\n",
        "import aner.geo\n"
      ],
      "execution_count": null,
      "outputs": []
    },
    {
      "cell_type": "code",
      "id": "subdivision-map-1",
      "metadata": {},
      "source": [
        "// One Colorado state outline, without USA, county, city or other state geometry.\n",
        "plot.map(\"region.usa.co\", keys: List(\"US-CO\"), values: List(12.0))\n",
        "    .add_points(positions: List(geo.position(longitude: -105.2705, latitude: 40.0150)),\n",
        "        values: List(18.0), labels: List(\"Boulder\"))\n",
        "    .point_labels(\"all\")\n",
        "    .projection(\"lambert_azimuthal_equal_area\")\n",
        "    .size(width: 900, height: 600)\n",
        "    .title(\"Boulder in Colorado: one independently loaded state\")\n",
        "    .caption(\"Synthetic indices; illustrative Boulder position. Natural Earth 2022 state outline, not a city or street map.\")\n",
        "    .show()\n"
      ],
      "execution_count": null,
      "outputs": []
    },
    {
      "cell_type": "code",
      "id": "subdivision-map-2",
      "metadata": {},
      "source": [
        "// Just Metropolitana de Santiago; no whole-country or other Chilean regions.\n",
        "plot.map(\"region.chl.rm\", keys: List(\"CL-RM\"), values: List(16.0))\n",
        "    .projection(\"lambert_azimuthal_equal_area\")\n",
        "    .size(width: 900, height: 600)\n",
        "    .title(\"Metropolitana de Santiago: one selected Chilean region\")\n",
        "    .caption(\"Synthetic index; generalized Natural Earth 2022 source. This global region pack is independent of chile and chile.region.rm.\")\n",
        "    .show()\n"
      ],
      "execution_count": null,
      "outputs": []
    },
    {
      "cell_type": "code",
      "id": "subdivision-map-3",
      "metadata": {},
      "source": [
        "// Source code AR-B is the Buenos Aires province feature, not the capital AR-C.\n",
        "plot.map(\"region.arg.b\", keys: List(\"AR-B\"), values: List(14.0))\n",
        "    .projection(\"lambert_azimuthal_equal_area\")\n",
        "    .size(width: 900, height: 600)\n",
        "    .title(\"Buenos Aires: select the AR-B source feature\")\n",
        "    .caption(\"Synthetic index; Natural Earth 2022. AR-C is the separate Ciudad de Buenos Aires feature. Source type labels are not a current legal register.\")\n",
        "    .show()\n"
      ],
      "execution_count": null,
      "outputs": []
    },
    {
      "cell_type": "code",
      "id": "subdivision-map-4",
      "metadata": {},
      "source": [
        "// Only the Tokyo source metropolis; not the whole country of Japan.\n",
        "plot.map(\"region.jpn.13\", keys: List(\"JP-13\"), values: List(19.0))\n",
        "    .projection(\"lambert_azimuthal_equal_area\")\n",
        "    .size(width: 900, height: 600)\n",
        "    .title(\"Tokyo: one selected Japanese region\")\n",
        "    .caption(\"Synthetic index; generalized Natural Earth 2022 source. The full source extent includes remote islands.\")\n",
        "    .show()\n"
      ],
      "execution_count": null,
      "outputs": []
    },
    {
      "cell_type": "code",
      "id": "subdivision-map-5",
      "metadata": {},
      "source": [
        "// One South African province; no Africa or South Africa overview is needed.\n",
        "plot.map(\"region.zaf.wc\", keys: List(\"ZA-WC\"), values: List(15.0))\n",
        "    .projection(\"lambert_azimuthal_equal_area\")\n",
        "    .size(width: 900, height: 600)\n",
        "    .title(\"Western Cape: one selected South African province\")\n",
        "    .caption(\"Synthetic index; generalized Natural Earth 2022 province geometry. No spatial measurement is inferred.\")\n",
        "    .show()\n"
      ],
      "execution_count": null,
      "outputs": []
    },
    {
      "cell_type": "code",
      "id": "subdivision-map-6",
      "metadata": {},
      "source": [
        "// One Australian state, independently installed without other states or territories.\n",
        "plot.map(\"region.aus.qld\", keys: List(\"AU-QLD\"), values: List(17.0))\n",
        "    .projection(\"lambert_azimuthal_equal_area\")\n",
        "    .size(width: 900, height: 600)\n",
        "    .title(\"Queensland: one selected Australian state\")\n",
        "    .caption(\"Synthetic index; generalized Natural Earth 2022 state geometry. Other Australian states and territories are not loaded.\")\n",
        "    .show()\n"
      ],
      "execution_count": null,
      "outputs": []
    },
    {
      "cell_type": "code",
      "id": "subdivision-map-7",
      "metadata": {},
      "source": [
        "// Four-country UK first-order layer: this chart loads only Scotland.\n",
        "plot.map(\"region.gbr.sct\", keys: List(\"GB-SCT\"), values: List(13.0))\n",
        "    .projection(\"lambert_azimuthal_equal_area\")\n",
        "    .size(width: 900, height: 600)\n",
        "    .title(\"Scotland: a constituent country selected independently\")\n",
        "    .caption(\"Synthetic index; Eurostat / geoBoundaries pinned 2021 first-order source. Other UK countries and council areas are not loaded.\")\n",
        "    .show()\n"
      ],
      "execution_count": null,
      "outputs": []
    }
  ],
  "metadata": {
    "kernelspec": {
      "display_name": "Aner",
      "language": "aner",
      "name": "aner"
    },
    "language_info": {
      "name": "aner",
      "file_extension": ".aner"
    }
  },
  "nbformat": 4,
  "nbformat_minor": 5
}
