{ "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": [ "
<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 Serverarray(['2022-03-31T13:00:00.000000000'], dtype='datetime64[ns]')
array([1], dtype=int16)
array([-4.96 , -4.910015, -4.860031, ..., 59.870031, 59.920015, 59.97 ])
array([ 50.02, 50.07, 50.12, ..., 144.87, 144.92, 144.97])
array([[[[293.04, 293.48, 293.48, ..., 236.4 , 242.07, 245.12],\n",
" [292.61, 293.04, 293.04, ..., 245.12, 248.74, 250.14],\n",
" [292.17, 292.61, 292.61, ..., 252.88, 254.86, 254.86],\n",
" ...,\n",
" [258.68, 258.68, 259.31, ..., 255.51, 254.86, 254.86],\n",
" [258.68, 259.31, 259.92, ..., 254.86, 254.86, 254.86],\n",
" [316.71, 308.91, 304.24, ..., 332.77, 332.77, 332.77]]]])