public class HealpixMapDouble extends HealpixBase
HealpixBase.Xyf
Modifier and Type | Field and Description |
---|---|
static double |
undef |
fact1, fact2, ncap, nl2, nl3, nl4, npface, npix, ns_max, nside, order, order_max, scheme
ctab, facearray, jpll, jrll, swap_cycle, swaparray, utab, xoffset, yoffset
Constructor and Description |
---|
HealpixMapDouble() |
HealpixMapDouble(double[] data_in,
Scheme scheme_in) |
HealpixMapDouble(long nside_in,
Scheme scheme_in) |
Modifier and Type | Method and Description |
---|---|
void |
fill(double val)
Sets all map pixel to a specific value.
|
double[] |
getData()
Returns the array containing all map pixels.
|
double |
getPixel(int ipix)
Returns the value of the pixel with a given index.
|
double |
getPixel(long ipix)
Returns the value of the pixel with a given index.
|
void |
importDegrade(HealpixMapDouble orig,
boolean pessimistic)
Imports the map "orig" to this object, adjusting pixel ordering
and reducing resolution.
|
void |
importGeneral(HealpixMapDouble orig,
boolean pessimistic)
Imports the map "orig" to this object, adjusting pixel ordering
and resolution if necessary.
|
void |
importNograde(HealpixMapDouble orig)
Imports the map "orig" to this object, adjusting pixel ordering.
|
void |
importUpgrade(HealpixMapDouble orig)
Imports the map "orig" to this object, adjusting pixel ordering
and increasing resolution.
|
void |
setDataAndScheme(double[] data_in,
Scheme scheme_in)
Adjusts the object to scheme_in, and sets pixel data to data_in.
|
void |
setNside(long nside_in)
Adjusts the object to nside_in.
|
void |
setNsideAndScheme(long nside_in,
Scheme scheme_in)
Adjusts the object to nside_in and scheme_in.
|
void |
setPixel(int ipix,
double val)
Sets the value of a specific pixel.
|
void |
setPixel(long ipix,
double val)
Sets the value of a specific pixel.
|
void |
swapScheme()
Converts the map from NESTED to RING scheme or vice versa.
|
ang2pix, boundaries, getNpix, getNside, getOrder, getScheme, loc2pix, maxPixrad, neighbours, nest2ring, npix2Nside, nside2Npix, nside2order, order2Npix, pix2ang, pix2loc, pix2ring, pix2vec, pix2xyf, pix2zphi, queryDisc, queryDiscInclusive, queryPolygon, queryPolygonInclusive, queryStrip, ring2nest, ring2theta, ring2xyf, ring2z, setScheme, vec2pix, xyf2pix, xyf2pix, zphi2pix
public static final double undef
public HealpixMapDouble() throws java.lang.Exception
java.lang.Exception
public HealpixMapDouble(long nside_in, Scheme scheme_in) throws java.lang.Exception
java.lang.Exception
public HealpixMapDouble(double[] data_in, Scheme scheme_in) throws java.lang.Exception
java.lang.Exception
public void setNside(long nside_in) throws java.lang.Exception
setNside
in class HealpixBase
nside_in
- the new Nside parameterjava.lang.Exception
public void setNsideAndScheme(long nside_in, Scheme scheme_in) throws java.lang.Exception
setNsideAndScheme
in class HealpixBase
nside_in
- the new Nside parameterscheme_in
- the new ordering schemejava.lang.Exception
public void setDataAndScheme(double[] data_in, Scheme scheme_in) throws java.lang.Exception
data_in
- pixel data; must have a valid length (12*nside^2)scheme_in
- the new ordering schemejava.lang.Exception
public void fill(double val)
val
- pixel value to usepublic void swapScheme() throws java.lang.Exception
java.lang.Exception
public double getPixel(int ipix)
ipix
- index of the requested pixelpublic double getPixel(long ipix)
ipix
- index of the requested pixelpublic void setPixel(int ipix, double val)
ipix
- index of the pixelval
- new value for the pixelpublic void setPixel(long ipix, double val)
ipix
- index of the pixelval
- new value for the pixelpublic double[] getData()
public void importNograde(HealpixMapDouble orig) throws java.lang.Exception
orig
- map to importjava.lang.Exception
public void importUpgrade(HealpixMapDouble orig) throws java.lang.Exception
orig
- map to importjava.lang.Exception
public void importDegrade(HealpixMapDouble orig, boolean pessimistic) throws java.lang.Exception
orig
- map to importpessimistic
- if true, set a pixel to undefined if at least one the
original subpixels was undefined; otherwise only set it to undefined if
all original subpixels were undefined.java.lang.Exception
public void importGeneral(HealpixMapDouble orig, boolean pessimistic) throws java.lang.Exception
orig
- map to importpessimistic
- only used when resolution must be reduced: if true,
set a pixel to undefined if at least one the original subpixels
was undefined; otherwise only set it to undefined if all original
subpixels were undefined.java.lang.Exception