Skip to content

docs: Rename band to plane to match TIFF PlanarConfiguration terminology - #360

Merged
weiji14 merged 1 commit into
mainfrom
band-to-plane
Oct 16, 2026
Merged

weiji14 merged 1 commit into
mainfrom
band-to-plane

Conversation

@weiji14

@weiji14 weiji14 commented Oct 13, 2026

Copy link
Copy Markdown
Member

Use the more generic 'plane' (component plane) term, instead of band/channel (that is more common for GeoTIFFs/GDAL). Motivated by #251 (comment).

Note that there are still some references to 'band' (e.g. band-interleave) scattered throughout which I've kept around, but most should be renamed (or changed to band/plane).

Reference:

@weiji14 weiji14 self-assigned this Oct 13, 2026
@ds-release-bot ds-release-bot Bot added the docs label Oct 13, 2026
Comment on lines +169 to +170
band-interleaved, the result will be a list of byte ranges, one for each
band/plane.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we stick with plane-interleaved?

Suggested change
band-interleaved, the result will be a list of byte ranges, one for each
band/plane.
plane-interleaved, the result will be a list of byte ranges, one for each
plane.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, band-interleaved is the proper (raster) term. I don't think anyone uses plane-interleaved.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that only for GeoTIFFs or do non-raster TIFFs also follow that term?

Based on the links above, it doesn't seem like the term "band" surfaces anywhere in the TIFF spec?

assert_eq!(ifd.tile_height(), Some(256));

// Fetch tile at position (0, 0) - this fetches all 3 bands automatically
// Fetch tile at position (0, 0) - this fetches all 3 bands/planes automatically

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Fetch tile at position (0, 0) - this fetches all 3 bands/planes automatically
// Fetch tile at position (0, 0) - this fetches all 3 planes automatically

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's keep it as bands/planes because the test name is test_band_interleaved.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel that if we're renaming to plane instead of band, then we should use the terminology plane-interleaved rather than band-interleaved

@weiji14
weiji14 merged commit 39c6ad0 into main Oct 16, 2026
15 checks passed
@weiji14
weiji14 deleted the band-to-plane branch October 16, 2026 03:14
weiji14 added a commit that referenced this pull request Oct 16, 2026
weiji14 added a commit that referenced this pull request Oct 22, 2026
…IFF (#251)

* Add band-interleaved multi-band sample TIFF
* Fetch range of bands for a tile instead of all bands
* Add specific test pulling specific band ranges from a TIFF

* Enable fetching disjoint bands from a TIFF

Change from passing in a Range<usize> to a Vec<usize> so specific bands can be indexed.

* Change parameters from just bands to more extensible fetch_options

Create a FetchOptions struct that allows passing specific parameters (currently only `bands`) when doing a fetch_tile operation. Keep the existing option of passing only None to do the default action of fetching of all bands.

* Check that we are not fetching bands outside the max band count

With some special handling to handle 0-based indexing.

* Support fetching specific bands with `fetch_tiles`

Use the same FetchOptions struct, included another unit test using the eox_cloudless.tif data as test case.

* Rename to ReadOptions

* Enable fetching specific bands via TIFF.fetch_tile and .fetch_tiles

Add `bands` kwarg to TIFF.fetch_tile and TIFF.fetch_tiles to allow fetching only specific bands (or by default, all bands when `None` is given). Included a unit test to ensure it is possible to fetch only 2 bands from an RGB TIFF.

* Update geotiff-test-data from efc3ee1 to b7158c4

Include updated uint8_1band_deflate_block128_unaligned_predictor2.tif file from developmentseed/geotiff-test-data#74

* Change unit test to check against AEF embedding dataset with 64 bands

Try pulling 3 bands out of 64 from the sample AlphaEarth Foundations embedding TIFF dataset. Updated geotiff-test-data from b7158c4 to 0b1055b which includes the tiled sample AEF embedding TIFF from developmentseed/geotiff-test-data#79

* Rename fetch_options parameter to read_options

Following the ReadOptions struct name used in 72e1071

* Change bands/planes to be kwarg only

* Rename bands -> planes

Xref #360

* Clarify that planes arguments should be using 0-based indexing

E.g. [0, 1, 2] for the first three planes/bands.

---------

Co-authored-by: Kyle Barron <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants