I have a mean precipitation netCDF file with the following characteristics:
<xarray.Dataset>
Dimensions: (rlat: 412, rlon: 424)
Coordinates:
lat (rlat, rlon) float64 21.99 22.03 22.07 22.11 ... 66.81 66.75 66.69
lon (rlat, rlon) float64 -10.06 -9.964 -9.864 ... 64.55 64.76 64.96
* rlat (rlat) float64 -23.38 -23.26 -23.16 -23.05 ... 21.61 21.73 21.83
* rlon (rlon) float64 -28.38 -28.26 -28.16 -28.05 ... 17.93 18.05 18.16
Data variables:
pr (rlat, rlon) float32 0.0001465 0.000145 ... 0.007854 0.004692
Attributes: (12/22)
CDI: Climate Data Interface version 1.3.2
Conventions: CF-1.6
NCO: 4.4.2
CDO: Climate Data Operators version 1.3.2 (htt...
contact: Fredrik Boberg, Danish Meteorological Ins...
creation_date: 2019-10-15 18:05:48
... ...
rcm_version_id: v1
project_id: CORDEX
CORDEX_domain: EUR-11
product: output
tracking_id: hdl:21.14103/a879aaf7-ddeb-436a-96fd-b717...
c3s_disclaimer: This data has been produced in the contex...
I am trying the plot function mentioned in the xarray package documentation https://docs.xarray.dev/en/stable/user-guide/plotting.html
out_ds.plot()
but it produces the following error:
Dataset.plot cannot be called directly. Use an explicit plot method, e.g. ds.plot.scatter(...)