Package skyview.survey
Class HipsImage
java.lang.Object
skyview.survey.Image
skyview.survey.HipsImage
- 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.
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetAllSkyPixel(long npix) doublegetData(long ipix) Defer reading the data until it is asked for.double[]Probably should happen, but just in case we support the get array function.intgetDepth()Get the number of planes in the imageintGet the height of the imageintgetWidth()Get the width of the imagevoidinitialize(double scale) voidsetData(long npix, double val) Support changing the data! Probably won't use this...voidsetOrder(double scale) Determine which order to sample at given the limits in the HiPS and the user requested scale.doubletiledPixel(long npix) Methods inherited from class skyview.survey.Image
clearData, getBaseImage, getCenter, getCorners, getDescription, getName, getTransformer, getWCS, initialize, isTiled, setAccumulate, setDataArray, setName, valid, validate
-
Constructor Details
-
HipsImage
Create a image associated with a HiPS- Parameters:
directory- The base directory for the HiPS
-
-
Method Details
-
initialize
public void initialize(double scale) throws TransformationException, IllegalArgumentException, IOException -
setOrder
public void setOrder(double scale) Determine which order to sample at given the limits in the HiPS and the user requested scale.- Parameters:
scale- Scale of desired pixels in radians.
-
getWidth
public int getWidth()Description copied from class:ImageGet the width of the image -
getHeight
public int getHeight()Description copied from class:ImageGet the height of the image -
getDepth
public int getDepth()Description copied from class:ImageGet the number of planes in the image -
getData
public double getData(long ipix) Defer reading the data until it is asked for. -
getAllSkyPixel
public double getAllSkyPixel(long npix) -
tiledPixel
public double tiledPixel(long npix) -
getDataArray
public double[] getDataArray()Probably should happen, but just in case we support the get array function.- Overrides:
getDataArrayin classImage
-
setData
public void setData(long npix, double val) Support changing the data! Probably won't use this...
-