Oct 15, 2020 · Now that we know precisely which weather variables are included in the GRIB2 data, we can start processing our xarray dataset. Filtering the xarray data to a specific variable. With xarray, filtering the dataset’s contents to a single variable of interest is very straightforward: ds = ds.get("TMP_P0_L103_GLL0") Otherwise, xarray falls back to using scipy to write netCDF files and defaults to the NETCDF3_64BIT format (scipy does not support netCDF4). group : str, optional Path to the netCDF4 group in the given file to open (only works for format=’NETCDF4’).
%matplotlib inline import matplotlib.pyplot as plt import matplotlib.cm as cm import numpy as np from numpy import genfromtxt from pyproj import Proj import xarray as xr import cartopy.crs as ccrs import cartopy.feature as cf import scipy.ndimage from scipy.ndimage.filters import gaussian_filter import datetime from datetime import datetime import pandas as pd # MetPy from siphon ...