FAQ & Troubleshooting¶
Installation¶
ModuleNotFoundError: No module named 'pykrige'
Kriging and ML methods require the kriging extra:
ModuleNotFoundError: No module named 'rioxarray'
GeoTIFF export and boundary clipping require the raster extra:
ModuleNotFoundError: No module named 'matplotlib'
Plotting requires the viz extra:
ModuleNotFoundError: No module named 'plotly'
Interactive maps require the interactive extra:
ModuleNotFoundError: No module named 'gstools'
Cokriging and Sequential Gaussian Simulation require the geostat extra:
ModuleNotFoundError: No module named 'mapie'
Conformal prediction intervals for GBM require the uncertainty extra:
ModuleNotFoundError: No module named 'cdsapi'
ERA5 reanalysis requires the era5 extra plus a free CDS API account:
~/.cdsapirc following the CDS API setup guide.
Boundaries¶
ValueError: Could not geocode location 'X'
Nominatim couldn't find the place name. Try:
- A more specific name:
"Calgary, Alberta, Canada"instead of"Calgary" - A bbox tuple:
boundary=(-114.5, 50.8, -113.8, 51.3) - A file:
boundary="my_region.geojson"
Boundary clips everything to NaN
The boundary polygon may not overlap your station data. Check:
boundary_bbox(boundary)returns a bbox that covers your datarioxarrayis installed:pip install "geointerpo[raster]"- Try
clip_to_boundary=Falseto isolate the issue
Data sources¶
No stations returned from Meteostat
Meteostat may have no stations for that bbox/date. Try:
- A wider bbox (increase
padding_deg) - A different date (some stations have gaps)
data="sample"to confirm the pipeline works offline
Interpolation¶
ValueError: Not enough points for spline
Spline requires at least 16 points. Either add more stations or use method="rbf" or method="idw".
kriging returns all NaN
Check that pykrige is installed and try variogram_model="linear" as a safe fallback.
natural_neighbor output looks like IDW
With very sparse data most grid points fall outside the station convex hull, so the IDW fallback activates. This is correct behaviour — the Voronoi weights are only applied to interior points.
Plotting¶
RuntimeError: Colorbar layout not compatible with tight_layout
Use layout="constrained" in your figure:
Performance¶
Speed up large grids
- Increase
resolution(0.5° instead of 0.1°) for a quick first pass natural_neighboris O(n_stations × n_grid) — useidworrbffor large grids- GP scales as O(n³) — prefer
rforgbmfor more than ~500 stations