Skip to content

Fix GeoTIFF upload example and document band quantities - #243

Merged
amarcozzi merged 1 commit into
mainfrom
236-band-quantity-followups
Oct 29, 2026
Merged

amarcozzi merged 1 commit into
mainfrom
236-band-quantity-followups

Conversation

@amarcozzi

Copy link
Copy Markdown
Contributor

Closes #236

Already on main from #239: the client regen (UploadBandDefinition.type_/unit now optional) and the Fosberg band rename to fuel_moisture.1hr in the create_dead_fuel_moisture_grid_from_fosberg docstring, docs/v2/guides/creating-grids.md, and the live test.

This PR:

  • Fixes the GeoTIFF example in creating-grids.md: UploadBandDefinition has no interpolation argument; the example is now UploadBandDefinition(key="elevation"), with prose explaining the <quantity>/<quantity>.<label> key and that type and unit are derived from the quantity.
  • Adds the same band-key note to the create_grid_from_geotiff docstring (create_grid_from_netcdf takes no band definitions, so unchanged).
  • Updates the live GeoTIFF upload test to omit type_ and assert the derived type (continuous) and unit (m).

Verification: pytest tests/v2/test_grids.py -k "geotiff or netcdf or upload" against prod: 1 passed, 1 skipped (NetCDF test is skipped in the suite).

@amarcozzi
amarcozzi merged commit 285f03f into main Oct 29, 2026
4 checks passed
@amarcozzi
amarcozzi deleted the 236-band-quantity-followups branch October 29, 2026 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Regenerate the v2 client for band quantities (API-v2 #682)

1 participant