Read and write image data units.
There are two main classes to perform image HDU I/Os:
ImageHdu is dedicated to HDU-level tasks; It roughly extends Hdu by providing a raster() method, to access the data unit.ImageRaster focuses on services to read and write the data unit.In addition, FileMemRegions is a helper class to specify which regions to consider, both in the FITS file and in the Raster object, when reading or writing the data unit region-wise.
For example, here is how to write the 2D region of a raster spanning from (8, 16) to (32, 48) into the HDU at position (144, 36):
where:
hdu is an ImageHduraster() returns an ImageRasterFileMemRegions is built inline through brace-enclosed initializer listsRasterClasses | |
| class | FileMemRegions< n > |
| Mapping between an in-file (FITS image data unit) region and an in-memory (raster) region for reading and writing image regions. More... | |
| class | ImageHdu |
| Image HDU reader-writer. More... | |
| class | ImageRaster |
| Reader-writer for the image data unit. More... | |