Package skyview.survey
Class HealPixImage
- java.lang.Object
-
- skyview.survey.Image
-
- skyview.survey.HealPixImage
-
- All Implemented Interfaces:
java.io.Serializable
,Component
public class HealPixImage extends Image
This class defines an image gotten by reading a HEALPix image where the pixels are in the nested pixel order. This assumes the FITS structures found in the WMAP data but could be adapted to other orders as needed. There are several HEALPix formats supported: A single HEALPix intensity array in the primary HDU HEALPix data in the first extension HDU as a binary table with each row in the table corresponding to a single pixel. This format can support multiple HEALPix Stokes parameter values per pixel, in particular I, Q and U and be read from the file and the derived quantities PI, PI/I, and PA can be returned if the I,Q,U are present. A single HEALPix intensity array stored in the first extension with R rows, where each row in the table has an array of N values representing RxN pixels. A HEALPix file which has been split into multiple tiles. These tiles will be read as needed.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HealPixImage(java.lang.String file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getData(long ipix)
Get a single element of datadouble[]
getDataArray()
Probably should happen, but just in case we support the get array function.int
getDepth()
Only a scalar image.int
getHeight()
Get the height of the image in pixelsint
getWidth()
Get the width of the image in pixelsvoid
setData(long npix, double val)
Support changing the data! Probably won't use this...-
Methods inherited from class skyview.survey.Image
clearData, getBaseImage, getCenter, getCorners, getDescription, getName, getTransformer, getWCS, initialize, isTiled, setAccumulate, setDataArray, setName, valid, validate
-
-
-
-
Constructor Detail
-
HealPixImage
public HealPixImage(java.lang.String file) throws SurveyException
- Throws:
SurveyException
-
-
Method Detail
-
getWidth
public int getWidth()
Get the width of the image in pixels
-
getHeight
public int getHeight()
Get the height of the image in pixels
-
getDepth
public int getDepth()
Only a scalar image. Note that if we are returning a PA image then this does not transform simply when we change coordinates. This is really a vector.
-
getData
public double getData(long ipix)
Get a single element of data
-
getDataArray
public double[] getDataArray()
Probably should happen, but just in case we support the get array function.- Overrides:
getDataArray
in classImage
-
-