This class instantiates FITS primary HDU and IMAGE extension data. Essentially these data are a primitive multi-dimensional array.

Starting in version 0.9 of the nom.tam FITS library, this routine allows users to defer the reading of images if the FITS data is being read from a file. An ImageTiler object is supplied which can return an arbitrary subset of the image as a one dimensional array.A call to the getData() method will still return a multi-dimensional array, but the image data will not be read until the user explicitly requests. it.


The following tables list the members exposed by ImageData.

Public Constructors

 NameDescription
StaticPublic methodImageDataOverloaded.  
Top

Protected Fields

 NameDescription
Family fielddataSizeThe size of the data when last read (inherited from Data)
Family fieldfileOffsetThe starting location of the data when last read (inherited from Data)
Family fieldinputThe inputstream used. (inherited from Data)
Top

Public Properties

 NameDescription
Public propertyDataArrayOverridden. Return the actual data. Note that this may return a null when the data is not readable. It might be better to throw a FitsException, but this is a very commonly called method and we prefered not to change how users must invoke it.
Public propertyFileOffsetGet the file offset (inherited from Data)
Public propertyKernelReturn the non-FITS data object (inherited from Data)
Public propertyRewriteableReturns whether input stream is rewritable (inherited from Data)
Public propertySizeGet the size of the data element in bytes (inherited from Data)
Public propertyTilerReturns the ImageTiler instance
Top

Public Methods

 NameDescription
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (inherited from Object)
Public methodGetHashCodeServes as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (inherited from Object)
Public methodGetTypeGets the Type of the current instance. (inherited from Object)
Public methodReadOverridden. Method to read data
Public methodRewrite  (inherited from Data)
Public methodToStringReturns a String that represents the current Object. (inherited from Object)
Public methodWriteOverridden. method to write data
Top

Protected Methods

 NameDescription
Family methodFinalizeAllows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Family methodMemberwiseCloneCreates a shallow copy of the current Object. (inherited from Object)
Family methodParseHeader 
Family methodSetFileOffset  (inherited from Data)
Top

Explicit Interface Implementations

 NameDescription
StaticPrivate methodImageDataOverloaded.  
Top

See Also