xarray

Handling NetCDF files using XArray for absolute beginners

https://nbviewer.jupyter.org/github/mccrayc/tutorials/blob/master/2_reanalysis/CFSR_Data_Tutorial.ipynb

import xarray as xr
ds_disk = xr.open_dataset('wrfout_d01_2019-03-21_00:00:00')

xarray.Dataset>
Dimensions: (Time: 24, bottom_top: 23, bottom_top_stag: 24, soil_layers_stag: 4, south_north: 74, south_north_stag: 75, west_east: 87, west_east_stag: 88)
Coordinates:
XLAT (Time, south_north, west_east) float32 ...
XLONG (Time, south_north, west_east) float32 ...
XTIME (Time) datetime64[ns] ...
XLAT_U (Time, south_north, west_east_stag) float32 ...
XLONG_U (Time, south_north, west_east_stag) float32 ...
XLAT_V (Time, south_north_stag, west_east) float32 ...
XLONG_V (Time, south_north_stag, west_east) float32 ...
Dimensions without coordinates: Time, bottom_top, bottom_top_stag, soil_layers_stag, south_north, south_north_stag, west_east, west_east_stag
Data variables:
Times (Time) |S19 ...
LU_INDEX (Time, south_north, west_east) float32 ...
ZNU (Time, bottom_top) float32 ...
ZNW (Time, bottom_top_stag) float32 ...
ZS (Time, soil_layers_stag) float32 ...
DZS (Time, soil_layers_stag) float32 ...
VAR_SSO (Time, south_north, west_east) float32 ...
U (Time, bottom_top, south_north, west_east_stag) float32 ...
V (Time, bottom_top, south_north_stag, west_east) float32 ...
W (Time, bottom_top_stag, south_north, west_east) float32 ...
PH (Time, bottom_top_stag, south_north, west_east) float32 ...
PHB (Time, bottom_top_stag, south_north, west_east) float32 ...
T (Time, bottom_top, south_north, west_east) float32 ...
HFX_FORCE (Time) float32 ...
LH_FORCE (Time) float32 ...
TSK_FORCE (Time) float32 ...
HFX_FORCE_TEND (Time) float32 ...
LH_FORCE_TEND (Time) float32 ...
TSK_FORCE_TEND (Time) float32 ...
MU (Time, south_north, west_east) float32 ...
MUB (Time, south_north, west_east) float32 ...
NEST_POS (Time, south_north, west_east) float32 ...
P (Time, bottom_top, south_north, west_east) float32 ...
PB (Time, bottom_top, south_north, west_east) float32 ...
FNM (Time, bottom_top) float32 ...
FNP (Time, bottom_top) float32 ...
RDNW (Time, bottom_top) float32 ...
RDN (Time, bottom_top) float32 ...
DNW (Time, bottom_top) float32 ...
DN (Time, bottom_top) float32 ...
CFN (Time) float32 ...
CFN1 (Time) float32 ...
THIS_IS_AN_IDEAL_RUN (Time) int32 ...
P_HYD (Time, bottom_top, south_north, west_east) float32 ...
Q2 (Time, south_north, west_east) float32 ...
T2 (Time, south_north, west_east) float32 ...
TH2 (Time, south_north, west_east) float32 ...
PSFC (Time, south_north, west_east) float32 ...
U10 (Time, south_north, west_east) float32 ...
V10 (Time, south_north, west_east) float32 ...
RDX (Time) float32 ...
RDY (Time) float32 ...
RESM (Time) float32 ...
ZETATOP (Time) float32 ...
CF1 (Time) float32 ...
CF2 (Time) float32 ...
CF3 (Time) float32 ...
ITIMESTEP (Time) int32 ...
QVAPOR (Time, bottom_top, south_north, west_east) float32 ...
QCLOUD (Time, bottom_top, south_north, west_east) float32 ...
QRAIN (Time, bottom_top, south_north, west_east) float32 ...
QICE (Time, bottom_top, south_north, west_east) float32 ...
QSNOW (Time, bottom_top, south_north, west_east) float32 ...
QGRAUP (Time, bottom_top, south_north, west_east) float32 ...
SHDMAX (Time, south_north, west_east) float32 ...
SHDMIN (Time, south_north, west_east) float32 ...
SNOALB (Time, south_north, west_east) float32 ...
TSLB (Time, soil_layers_stag, south_north, west_east) float32 ...
SMOIS (Time, soil_layers_stag, south_north, west_east) float32 ...
SH2O (Time, soil_layers_stag, south_north, west_east) float32 ...
SMCREL (Time, soil_layers_stag, south_north, west_east) float32 ...
SEAICE (Time, south_north, west_east) float32 ...
XICEM (Time, south_north, west_east) float32 ...
SFROFF (Time, south_north, west_east) float32 ...
UDROFF (Time, south_north, west_east) float32 ...
IVGTYP (Time, south_north, west_east) int32 ...
ISLTYP (Time, south_north, west_east) int32 ...
VEGFRA (Time, south_north, west_east) float32 ...
GRDFLX (Time, south_north, west_east) float32 ...
ACGRDFLX (Time, south_north, west_east) float32 ...
ACSNOM (Time, south_north, west_east) float32 ...
SNOW (Time, south_north, west_east) float32 ...
SNOWH (Time, south_north, west_east) float32 ...
CANWAT (Time, south_north, west_east) float32 ...
SSTSK (Time, south_north, west_east) float32 ...
COSZEN (Time, south_north, west_east) float32 ...
LAI (Time, south_north, west_east) float32 ...
VAR (Time, south_north, west_east) float32 ...
MAPFAC_M (Time, south_north, west_east) float32 ...
MAPFAC_U (Time, south_north, west_east_stag) float32 ...
MAPFAC_V (Time, south_north_stag, west_east) float32 ...
MAPFAC_MX (Time, south_north, west_east) float32 ...
MAPFAC_MY (Time, south_north, west_east) float32 ...
MAPFAC_UX (Time, south_north, west_east_stag) float32 ...
MAPFAC_UY (Time, south_north, west_east_stag) float32 ...
MAPFAC_VX (Time, south_north_stag, west_east) float32 ...
MF_VX_INV (Time, south_north_stag, west_east) float32 ...
MAPFAC_VY (Time, south_north_stag, west_east) float32 ...
F (Time, south_north, west_east) float32 ...
E (Time, south_north, west_east) float32 ...
SINALPHA (Time, south_north, west_east) float32 ...
COSALPHA (Time, south_north, west_east) float32 ...
HGT (Time, south_north, west_east) float32 ...
TSK (Time, south_north, west_east) float32 ...
P_TOP (Time) float32 ...
T00 (Time) float32 ...
P00 (Time) float32 ...
TLP (Time) float32 ...

你可能感兴趣的:(xarray)