spv.spectrum.factory.GHRSFOS
Class GHRSFactoryModule

java.lang.Object
  extended by spv.spectrum.factory.AbstractFileFactoryModule
      extended by spv.spectrum.factory.ImageAbstractFactoryModule
          extended by spv.spectrum.factory.GHRSFOS.GHRSFOSAbstractFactoryModule
              extended by spv.spectrum.factory.GHRSFOS.GHRSFactoryModule
All Implemented Interfaces:
SpectrumFileFactoryModule

public class GHRSFactoryModule
extends GHRSFOSAbstractFactoryModule

GHRS spectra have their flux arrays stored as doubles and their DQ arrays stored as ints. This class handles the details associated with this peculiarity.

Version:
1.0 - 04Nov02
Author:
Ivo Busko (Space Telescope Science Institute)

Field Summary
 
Fields inherited from class spv.spectrum.factory.AbstractFileFactoryModule
BIN_NUMBER_UNITS, C_BACK, C_DATA, C_DQ, C_ERROR, C_FLUX, C_GROSS, C_NELEM, C_NET, C_SPORDER, C_WAVELENGTH
 
Constructor Summary
GHRSFactoryModule()
           
 
Method Summary
protected  java.lang.String getInstrumentKeyword()
          Gets the value of the INSTRUMENT FITS keyword associated with GHRS.
protected  int[] readDQ(nom.tam.fits.ImageHDU im_hdu, int[] group)
          Reads a DQ array from a image HDU.
protected  double[] readWavelengths(nom.tam.fits.ImageHDU im_hdu, int[] group)
          Reads a wavelength array from a image HDU.
 
Methods inherited from class spv.spectrum.factory.GHRSFOS.GHRSFOSAbstractFactoryModule
isValidInstrument, makeFileDescriptor, makeSpectrum, makeSpectrumSpecification
 
Methods inherited from class spv.spectrum.factory.ImageAbstractFactoryModule
generateWavelengths, getXUnitsFromHeader, getYUnitsFromHeader, readFloat, readFloat, readFromDoubleArray, readFromFloatArray, readFromIntArray
 
Methods inherited from class spv.spectrum.factory.AbstractFileFactoryModule
addSSAPParameters, buildExtentMetaParameters, buildLocationMetaParameters, buildSingleSpectrum, buildSingleSpectrum, buildSingleSpectrum, buildSpectralExtentMetaParameter, buildTimeExtentMetaParameter, fixIntensityUnits, getGenericMetaParameter, getInstrumentPositionMetaParameter, getPositionMetaParameter, getTimeMetaParameter, getUnits, getURL, isFullD, isFullI, isTwoD, maskAll
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GHRSFactoryModule

public GHRSFactoryModule()
Method Detail

readWavelengths

protected double[] readWavelengths(nom.tam.fits.ImageHDU im_hdu,
                                   int[] group)
Reads a wavelength array from a image HDU.

Specified by:
readWavelengths in class GHRSFOSAbstractFactoryModule
Parameters:
im_hdu - the HDU
group - the group
Returns:
the wavelength array

readDQ

protected int[] readDQ(nom.tam.fits.ImageHDU im_hdu,
                       int[] group)
Reads a DQ array from a image HDU.

Specified by:
readDQ in class GHRSFOSAbstractFactoryModule
Parameters:
im_hdu - the HDU
group - the group
Returns:
the DQ array

getInstrumentKeyword

protected java.lang.String getInstrumentKeyword()
Gets the value of the INSTRUMENT FITS keyword associated with GHRS.

Specified by:
getInstrumentKeyword in class GHRSFOSAbstractFactoryModule
Returns:
the value of the INSTRUMENT FITS keyword associated with GHRS