{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Mosaics" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "asilib version: 0.25.3\n" ] } ], "source": [ "from datetime import datetime\n", " \n", "import matplotlib.pyplot as plt\n", "import matplotlib.colors\n", "import aacgmv2\n", "import numpy as np\n", "import scipy.interpolate\n", "from scipy.interpolate.interpnd import _ndim_coords_from_arrays\n", "from scipy.spatial import cKDTree\n", "try:\n", " import cartopy.crs as ccrs\n", " transform=ccrs.PlateCarree()\n", "except ImportError:\n", " transform=None\n", "\n", "import asilib\n", "import asilib.asi\n", "import asilib.map\n", "import asilib.utils\n", "\n", "print(f'asilib version: {asilib.__version__}')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We first create an `asilib.Imagers()` object consisting of TREx-RGB `asilib.Imagers()` defined a list of location_codes." ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "application/vnd.microsoft.datawrangler.viewer.v0+json": { "columns": [ { "name": "index", "rawType": "int64", "type": "integer" }, { "name": "array", "rawType": "object", "type": "string" }, { "name": "location_code", "rawType": "object", "type": "string" }, { "name": "name", "rawType": "object", "type": "string" }, { "name": "latitude", "rawType": "float64", "type": "float" }, { "name": "longitude", "rawType": "float64", "type": "float" } ], "conversionMethod": "pd.DataFrame", "ref": "b2857e2a-a819-4bfe-9093-bf1665742294", "rows": [ [ "0", "TREx_RGB", "ATHA", "Athabasca", "54.6", "-113.64" ], [ "1", "TREx_RGB", "FSMI", "Fort Smith", "60.03", "-111.93" ], [ "2", "TREx_RGB", "GILL", "Gillam", "56.38", "-94.64" ], [ "3", "TREx_RGB", "LUCK", "Lucky Lake", "51.15", "-107.26" ], [ "4", "TREx_RGB", "PINA", "Pinawa", "50.26", "-95.87" ], [ "5", "TREx_RGB", "RABB", "Rabbit Lake", "58.23", "-103.68" ] ], "shape": { "columns": 5, "rows": 6 } }, "text/html": [ "
| \n", " | array | \n", "location_code | \n", "name | \n", "latitude | \n", "longitude | \n", "
|---|---|---|---|---|---|
| 0 | \n", "TREx_RGB | \n", "ATHA | \n", "Athabasca | \n", "54.60 | \n", "-113.64 | \n", "
| 1 | \n", "TREx_RGB | \n", "FSMI | \n", "Fort Smith | \n", "60.03 | \n", "-111.93 | \n", "
| 2 | \n", "TREx_RGB | \n", "GILL | \n", "Gillam | \n", "56.38 | \n", "-94.64 | \n", "
| 3 | \n", "TREx_RGB | \n", "LUCK | \n", "Lucky Lake | \n", "51.15 | \n", "-107.26 | \n", "
| 4 | \n", "TREx_RGB | \n", "PINA | \n", "Pinawa | \n", "50.26 | \n", "-95.87 | \n", "
| 5 | \n", "TREx_RGB | \n", "RABB | \n", "Rabbit Lake | \n", "58.23 | \n", "-103.68 | \n", "