Xarray Where at Kgr

Best kgr Tips and References website . Search anything about kgr Ideas in this website.

Xarray Where. To_xarray [source] ¶ return an xarray object from the pandas object. Scalar, array, variable, dataarray or dataset with boolean dtype.

Xarray.dataarray.where
Xarray.dataarray.where from xarray.pydata.org

You can try using digital earth australia's xr_rasterize function to convert your geopandas geodataframe into an xarray object, and then use xarray's.where() method to mask you're array. This method is a wrapper around matplotlib’s matplotlib.pyplot.plot().

Xarray.dataarray.where

You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. Xarray offers extremely flexible indexing routines that combine the best features of numpy and pandas for data selection. The most basic way to access elements of a dataarray object is to use python’s [] syntax, such as array [i, j], where i and j are both integers.