Skip to content

Commit 0097974

Browse files
dcherianbenbovy
andcommitted
Update
Co-authored-by: Benoit Bovy <[email protected]>
1 parent 56586cf commit 0097974

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

design_notes/raster_index.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,12 @@ Below is a proposal for (2).
6161
## Proposal for transform index
6262

6363
We design RasterIndex as a wrapper around **one** of many transform based indexes:
64-
1. AffineTransformIndex ↔ GeoTransform
65-
2. ModelTransformationIndex ↔ ModelTransformationTag
66-
3. ModelTiepointScaleIndex ↔ ModelTiepointTag + ModelPixelScaleTag
67-
4. GCPIndex ↔ Ground Control Points
68-
5. RPCIndex ↔ Rational Polynomial Coefficients
64+
1. AffineTransformIndex ↔ GeoTransform
65+
2. ModelTransformationIndex ↔ ModelTransformationTag
66+
3. ModelTiepointScaleIndex ↔ ModelTiepointTag + ModelPixelScaleTag
67+
4. GCPIndex ↔ Ground Control Points
68+
5. RPCIndex ↔ Rational Polynomial Coefficients
69+
6. Subsampled auxiliary coordinates, detailed in [CF section 8.3](https://cfconventions.org/Data/cf-conventions/cf-conventions-1.12/cf-conventions.html#compression-by-coordinate-subsampling) and equivalent to GDAL's [geolocation arrays](https://gdal.org/en/stable/development/rfc/rfc4_geolocate.html) with `PIXEL_STEP` and/or LINE_STEP` > 1.
6970

7071
Each of the wrapped index has an associated transform:
7172
```python
@@ -92,6 +93,7 @@ class RasterTransform:
9293

9394
### Read-time
9495
These transforms are constructed by **popping** the relevant information from a user-provided source.
96+
This is analogous to an "encode/decode" workflow we currently have in Xarray.
9597
```python
9698
transform = rasterix.RasterTransform.from_geotransform(ds.spatial_ref.attrs)
9799
# transform = rasterix.RasterTransform.from_tiepoints(ds.band_data.attrs)

0 commit comments

Comments
 (0)