Package skyview.survey
Class HealPixImage
java.lang.Object
skyview.survey.Image
skyview.survey.HealPixImage
- All Implemented Interfaces:
Serializable
,Component
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:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
getData
(long ipix) Get a single element of datadouble[]
Probably should happen, but just in case we support the get array function.int
getDepth()
Only a scalar image.int
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 Details
-
HealPixImage
- Throws:
SurveyException
-
-
Method Details
-
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
-
setData
public void setData(long npix, double val) Support changing the data! Probably won't use this...
-