Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# SCM syntax highlighting & preventing 3-way merges
pixi.lock merge=binary linguist-language=YAML linguist-generated=true
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,8 @@ cython_debug/
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

# pixi environments
.pixi
*.egg-info
.DS_Store
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repos:
- id: end-of-file-fixer
- id: check-docstring-first
- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.5.3
rev: v3.6.2
hooks:
- id: prettier
args: [--cache-location=.prettier_cache/cache]
Expand All @@ -22,7 +22,7 @@ repos:
hooks:
- id: validate-pyproject
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.0
rev: v0.12.7
hooks:
- id: ruff-check
args: [--fix]
Expand All @@ -31,7 +31,7 @@ repos:
hooks:
- id: black-jupyter
- repo: https://github.com/keewis/blackdoc
rev: v0.4.0
rev: v0.4.1
hooks:
- id: blackdoc
additional_dependencies: ["black==25.1.0"]
Expand Down
7,310 changes: 7,310 additions & 0 deletions pixi.lock

Large diffs are not rendered by default.

55 changes: 55 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
[project]
name = "xdggs-examples"
description = "Real-world examples using xdggs."
dynamic = ["version"]
dependencies = ["healpix-geo>=0.0.4"]

[tool.ruff]
target-version = "py310"
builtins = ["ellipsis"]
Expand Down Expand Up @@ -37,3 +43,52 @@ fixable = ["I", "TID252"]
[tool.ruff.lint.flake8-tidy-imports]
# Disallow all relative imports.
ban-relative-imports = "all"

[tool.pixi.workspace]
name = "xdggs-examples"
channels = ["conda-forge"]
platforms = ["linux-64"]

[tool.pixi.pypi-dependencies]
xdggs-examples = { path = ".", editable = true }

[tool.pixi.tasks]

[tool.pixi.feature.nicam.dependencies]
zarr = "*"
intake = "<2"
intake-xarray = "<2"
pooch = "*"

[tool.pixi.dependencies]
jupyterlab = ">=4.4"
dask-labextension = ">=7"
ipywidgets = "*"
jupyter-resource-usage = "*"
jupyterlab_code_formatter = "*"
black = "*"
isort = "*"
ruff = "*"
dask = ">=2025.5.1"
distributed = ">=2025.5.1"
xarray = ">=2025.6.1"
matplotlib = ">=3.10"
numpy = ">=2.3.0"
pandas = ">=2.3.0"
geopandas = ">=1.1.0"
arro3-core = ">=0.4.0"
shapely = ">=2.1"
pyproj = "*"
lonboard = "*"
h3ronpy = "*"
cdshealpix = "*"
flox = "*"

[tool.pixi.environments]
nicam = ["nicam"]

[tool.pixi.system-requirements]
libc = { family = "glibc", version = "2.34" }

[dependency-groups]
nicam = ["xdggs @ git+https://github.com/keewis/xdggs.git@test"]
1 change: 1 addition & 0 deletions regridding/wm/wm.cpg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ISO-8859-1
Binary file added regridding/wm/wm.dbf
Binary file not shown.
Binary file added regridding/wm/wm.h5
Binary file not shown.
1 change: 1 addition & 0 deletions regridding/wm/wm.prj
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]
Binary file added regridding/wm/wm.shp
Binary file not shown.
Binary file added regridding/wm/wm.shx
Binary file not shown.
Binary file added regridding/wm/wm_lat.nc
Binary file not shown.
Binary file added regridding/wm/wm_lon.nc
Binary file not shown.
Loading