Xshape
deprecated. use geopandas.
Install / Use
/learn @ClimateImpactLab/XshapeREADME
xshape is no longer in development. This repository is a read-only archive.
To plot xarray data using a shapefile, I suggest simply dumping into geopandas:
.. code-block:: python
# for some DataArray da indexed by a single coordinate,
# matching the values in a column of a shapefile
import geopandas as gpd
shp = gpd.read_file('some_shapefile').set_index(
column_name_with_values_matching_da_coordinate)
shp.assign(myvar=da.to_series()).plot('myvar')
If you'd like to take over development of xshape, feel free to reach out!
Related Skills
node-connect
340.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
340.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.2kCommit, push, and open a PR
