Skip to content

Raster Metadata

King, Jonathan M requested to merge ghsc/users/jking/pfdf:metadata into main

Summary

This merge request consolidates the Raster class's metadata logic into the new RasterMetadata class. Advanced users can now use this class to manipulate raster metadata, without needing to also manipulate large data arrays. The merge also adds the ability to index rasters via Raster.__getitem__.

Notes for Reviewer

I'd suggest reviewing the following items:

  • pfdf.raster._metadata: This new module implements the RasterMetadata class
  • pfdf.raster._raster.Raster.__getitem__: This new method allows users to index a raster dataset
  • pfdf.raster._utils.validate.slices: This new function checks that raster indices are valid

Closes #84 (closed), #166 (closed), #182 (closed)

Merge request reports

Loading