Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

variable geometry support, plotting, WKB IO #98

Merged
merged 51 commits into from
Feb 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
ceaed87
raw implementation of summarize
martinfleis Feb 3, 2025
0566f27
assume array CRS is managed by xproj
martinfleis Feb 4, 2025
cadb5d0
docs
martinfleis Feb 4, 2025
580654b
query on values
martinfleis Feb 4, 2025
ad9fe22
grid plotting
martinfleis Feb 4, 2025
706f60a
way more complicated plotting
martinfleis Feb 5, 2025
97f3ce3
propagate
martinfleis Feb 5, 2025
592272c
legend
martinfleis Feb 5, 2025
69bc5e9
to_wkb
martinfleis Feb 6, 2025
4381266
Merge remote-tracking branch 'upstream/main' into summary
martinfleis Feb 6, 2025
d022994
wkb encoding
martinfleis Feb 6, 2025
8409d3f
some docs and fixes
martinfleis Feb 6, 2025
b3de57a
ignore zarr
martinfleis Feb 6, 2025
9faa66a
updated intro
martinfleis Feb 6, 2025
6dec8f4
io docs update
martinfleis Feb 6, 2025
f611c2e
minor plotting update
martinfleis Feb 6, 2025
49f450c
lint
martinfleis Feb 6, 2025
0299328
zonal and summary fix
martinfleis Feb 7, 2025
7bf00f8
partially broken plotting
martinfleis Feb 7, 2025
a3ac829
fixup plotting
martinfleis Feb 7, 2025
2daec6c
some docs
martinfleis Feb 8, 2025
af04a5d
api
martinfleis Feb 8, 2025
02abc8d
refactor plotting
martinfleis Feb 8, 2025
b957a18
more plotting
martinfleis Feb 8, 2025
bcf9764
plotting notebook
martinfleis Feb 8, 2025
c375c8b
update glaciers
martinfleis Feb 10, 2025
3d315b8
summarize_tests
martinfleis Feb 18, 2025
bb3aa20
summary
martinfleis Feb 18, 2025
12553e3
don't depend on xproj
martinfleis Feb 18, 2025
ca1756f
xproj to envs
martinfleis Feb 18, 2025
d9827f7
one more
martinfleis Feb 18, 2025
ec22efb
add stuff to docs
martinfleis Feb 18, 2025
36b7bec
plotting documentation
martinfleis Feb 19, 2025
0f8587a
zonal stats
martinfleis Feb 19, 2025
5709679
fix typing
martinfleis Feb 19, 2025
95d6663
fix typing
martinfleis Feb 19, 2025
b50f2a8
rm temp plotting notebook
martinfleis Feb 19, 2025
e3f8d86
make mypy happy
martinfleis Feb 19, 2025
ee702e6
pin sphinx
martinfleis Feb 19, 2025
94ac97c
document query (that one is weird now)
martinfleis Feb 19, 2025
30678b7
split query to mask and query
martinfleis Feb 19, 2025
553ff82
mask tests
martinfleis Feb 21, 2025
6142737
cleanup
martinfleis Feb 21, 2025
20b37c4
wkb testing
martinfleis Feb 21, 2025
4df37db
plotting tests
martinfleis Feb 21, 2025
dc3a021
fix expected
martinfleis Feb 21, 2025
873a1f8
mpl ci
martinfleis Feb 21, 2025
d64ce87
numpy compat
martinfleis Feb 21, 2025
cf25b43
load svalbard remotely
martinfleis Feb 21, 2025
51bd1e8
cleanup
martinfleis Feb 21, 2025
b33e7a3
tests
martinfleis Feb 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -145,5 +145,8 @@ doc/source/geo-encoded*
.ruff_cache
doc/source/cube.joblib.compressed
doc/source/cube.pickle
doc/source/*zarr

cache/

result_images/
4 changes: 3 additions & 1 deletion ci/310.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@ dependencies:
- pytest-reportlog
- geopandas-base
- geodatasets
- pyogrio
- pyogrio
- xproj
- matplotlib
2 changes: 2 additions & 0 deletions ci/311.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ dependencies:
- geopandas-base
- geodatasets
- pyogrio
- xproj
- matplotlib
2 changes: 2 additions & 0 deletions ci/312.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@ dependencies:
- geodatasets
- pyogrio
- mypy
- xproj
- matplotlib


2 changes: 2 additions & 0 deletions ci/313.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ dependencies:
- geopandas-base
- geodatasets
- pyogrio
- xproj
- matplotlib
- pip
- pip:
- exactextract
2 changes: 2 additions & 0 deletions ci/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ dependencies:
- geopandas-base
- geodatasets
- pyogrio
- xproj
- matplotlib
- pip
- pip:
- git+https://github.com/shapely/shapely.git@main
Expand Down
9 changes: 9 additions & 0 deletions doc/source/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ Methods
Dataset.xvec.zonal_stats
Dataset.xvec.encode_cf
Dataset.xvec.decode_cf
Dataset.xvec.encode_wkb
Dataset.xvec.decode_wkb
Dataset.xvec.summarize_geometry
Dataset.xvec.plot


DataArray.xvec
Expand Down Expand Up @@ -90,7 +94,12 @@ Methods
DataArray.xvec.to_crs
DataArray.xvec.set_crs
DataArray.xvec.query
DataArray.xvec.mask
DataArray.xvec.to_geodataframe
DataArray.xvec.to_geopandas
DataArray.xvec.extract_points
DataArray.xvec.zonal_stats
DataArray.xvec.encode_wkb
DataArray.xvec.decode_wkb
DataArray.xvec.summarize_geometry
DataArray.xvec.plot
1 change: 1 addition & 0 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"pandas": ("https://pandas.pydata.org/docs", None),
"rasterio": ("https://rasterio.readthedocs.io/en/latest/", None),
"exactextract": ("https://isciences.github.io/exactextract/", None),
"matplotlib": ("https://matplotlib.org/stable/", None),
}

# -- Options for HTML output -------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions doc/source/extract_pts.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"import numpy as np\n",
"import shapely\n",
"import xarray as xr\n",
"\n",
"import xvec"
]
},
Expand Down
4 changes: 2 additions & 2 deletions doc/source/geopandas.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
"import numpy as np\n",
"import pandas as pd\n",
"import xarray as xr\n",
"import xvec\n",
"from geodatasets import get_path\n",
"\n",
"from geodatasets import get_path"
"import xvec"
]
},
{
Expand Down
2 changes: 2 additions & 0 deletions doc/source/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ projections
geopandas
extract_pts
zonal_stats
summary_geometry
plotting
io
```

Expand Down
Loading