Class FITSFile

java.lang.Object
org.episteme.core.io.AbstractDataFile
org.episteme.natural.physics.loaders.fits.FITSFile
All Implemented Interfaces:
AutoCloseable, DataFile

public class FITSFile extends AbstractDataFile
Represents a FITS (Flexible Image Transport System) file.

Compliant with FITS Standard 4.0.

Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Constructor Details

    • FITSFile

      public FITSFile(Path path)
  • Method Details

    • getFormatDescription

      public String getFormatDescription()
      Description copied from interface: DataFile
      Returns a description of the file format version or standard (e.g. "FITS 4.0").
      Returns:
      the format description.
    • asMatrix

      public RealDoubleMatrix asMatrix() throws IOException
      Reads the primary image HDU as a Matrix.

      Scans the file for the first valid ImageHDU and returns its content.

      Returns:
      the image data as a RealDoubleMatrix
      Throws:
      IOException - if no image found or read error