NetCDF Time series slice with Python 3
问题 I'm trying to plot a week of time series data from NetCDF files and coming into some problems. I'm using the following packages: import netCDF4 from matplotlib import pyplot as plt import numpy as np import xarray as xr import dask First I import two .nc files: ds1 = xr.open_dataset('ERA5_forecast_100V_247_2008.nc') ds2 = xr.open_dataset('ERA5_analysis_100V_247_2008.nc') Then I select time and grid location using xarray: dsloc1 = ds1.sel(time='2008-02-10',longitude=2.2,latitude=48.7,method=