{ "cells": [ { "cell_type": "markdown", "id": "a4641c58-14f3-4e58-af01-3ed5cd2b8867", "metadata": { "tags": [] }, "source": [ "# 读取风云卫星数据文件" ] }, { "cell_type": "code", "execution_count": 1, "id": "3b5bee50-0cae-47c6-9244-144ed1748708", "metadata": { "tags": [] }, "outputs": [], "source": [ "# set up things\n", "%matplotlib inline\n", "%load_ext autoreload\n", "%autoreload 2\n", "\n", "import warnings\n", "warnings.filterwarnings('ignore')" ] }, { "cell_type": "code", "execution_count": 2, "id": "1d813531-0813-4747-8066-c9cccad38773", "metadata": {}, "outputs": [], "source": [ "import numpy as np\n", "\n", "from nmc_met_io.read_satellite import read_awx_cloud" ] }, { "cell_type": "code", "execution_count": 3, "id": "642923ce-9879-4599-83dc-de3b051aeac8", "metadata": {}, "outputs": [], "source": [ "data = read_awx_cloud(\"./samples/ANI_IR1_R04_20220331_2100_FY2G.AWX\")" ] }, { "cell_type": "code", "execution_count": 4, "id": "2e4b15c0-73fc-4df0-98fc-c974778c2334", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "
<xarray.Dataset>\n",
       "Dimensions:  (channel: 1, lat: 1300, lon: 1900, time: 1)\n",
       "Coordinates:\n",
       "  * time     (time) datetime64[ns] 2022-03-31T13:00:00\n",
       "  * channel  (channel) int16 1\n",
       "  * lat      (lat) float64 -4.96 -4.91 -4.86 -4.81 ... 59.82 59.87 59.92 59.97\n",
       "  * lon      (lon) float64 50.02 50.07 50.12 50.17 ... 144.8 144.9 144.9 145.0\n",
       "Data variables:\n",
       "    image    (time, channel, lat, lon) float64 293.0 293.5 293.5 ... 332.8 332.8\n",
       "Attributes:\n",
       "    Conventions:  CF-1.6\n",
       "    Origin:       MICAPS Cassandra Server
" ], "text/plain": [ "\n", "Dimensions: (channel: 1, lat: 1300, lon: 1900, time: 1)\n", "Coordinates:\n", " * time (time) datetime64[ns] 2022-03-31T13:00:00\n", " * channel (channel) int16 1\n", " * lat (lat) float64 -4.96 -4.91 -4.86 -4.81 ... 59.82 59.87 59.92 59.97\n", " * lon (lon) float64 50.02 50.07 50.12 50.17 ... 144.8 144.9 144.9 145.0\n", "Data variables:\n", " image (time, channel, lat, lon) float64 293.0 293.5 293.5 ... 332.8 332.8\n", "Attributes:\n", " Conventions: CF-1.6\n", " Origin: MICAPS Cassandra Server" ] }, "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "source": [ "data" ] } ], "metadata": { "kernelspec": { "display_name": "Meteorology with Python", "language": "python", "name": "met" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.9.12" }, "widgets": { "application/vnd.jupyter.widget-state+json": { "state": {}, "version_major": 2, "version_minor": 0 } } }, "nbformat": 4, "nbformat_minor": 5 }