Package healpix.essentials
Class HealpixMapDouble
java.lang.Object
healpix.essentials.HealpixTables
healpix.essentials.HealpixBase
healpix.essentials.HealpixMapDouble
- All Implemented Interfaces:
- Serializable
Class representing a full HEALPix map containing double values.
    This class is conceptually very similar the the Healpix_Map<double>
    class of Healpix_cxx.
- Author:
- Martin Reinecke
- See Also:
- Copyright:
- 2011,2012 Max-Planck-Society
- 
Nested Class SummaryNested classes/interfaces inherited from class healpix.essentials.HealpixBaseHealpixBase.Xyf
- 
Field SummaryFieldsFields inherited from class healpix.essentials.HealpixBasefact1, fact2, ncap, nl2, nl3, nl4, npface, npix, ns_max, nside, order, order_max, schemeFields inherited from class healpix.essentials.HealpixTablesctab, facearray, jpll, jrll, swap_cycle, swaparray, utab, xoffset, yoffset
- 
Constructor SummaryConstructorsConstructorDescriptionHealpixMapDouble(double[] data_in, Scheme scheme_in) HealpixMapDouble(long nside_in, Scheme scheme_in) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidfill(double val) Sets all map pixel to a specific value.double[]getData()Returns the array containing all map pixels.doublegetPixel(int ipix) Returns the value of the pixel with a given index.doublegetPixel(long ipix) Returns the value of the pixel with a given index.voidimportDegrade(HealpixMapDouble orig, boolean pessimistic) Imports the map "orig" to this object, adjusting pixel ordering and reducing resolution.voidimportGeneral(HealpixMapDouble orig, boolean pessimistic) Imports the map "orig" to this object, adjusting pixel ordering and resolution if necessary.voidImports the map "orig" to this object, adjusting pixel ordering.voidImports the map "orig" to this object, adjusting pixel ordering and increasing resolution.voidsetDataAndScheme(double[] data_in, Scheme scheme_in) Adjusts the object to scheme_in, and sets pixel data to data_in.voidsetNside(long nside_in) Adjusts the object to nside_in.voidsetNsideAndScheme(long nside_in, Scheme scheme_in) Adjusts the object to nside_in and scheme_in.voidsetPixel(int ipix, double val) Sets the value of a specific pixel.voidsetPixel(long ipix, double val) Sets the value of a specific pixel.voidConverts the map from NESTED to RING scheme or vice versa.Methods inherited from class healpix.essentials.HealpixBaseang2pix, 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
- 
Field Details- 
undefpublic static final double undef- See Also:
 
 
- 
- 
Constructor Details
- 
Method Details- 
setNsideAdjusts the object to nside_in.- Overrides:
- setNsidein class- HealpixBase
- Parameters:
- nside_in- the new Nside parameter
- Throws:
- Exception
 
- 
setNsideAndSchemeAdjusts the object to nside_in and scheme_in.- Overrides:
- setNsideAndSchemein class- HealpixBase
- Parameters:
- nside_in- the new Nside parameter
- scheme_in- the new ordering scheme
- Throws:
- Exception
 
- 
setDataAndSchemeAdjusts the object to scheme_in, and sets pixel data to data_in.- Parameters:
- data_in- pixel data; must have a valid length (12*nside^2)
- scheme_in- the new ordering scheme
- Throws:
- Exception
 
- 
fillpublic void fill(double val) Sets all map pixel to a specific value.- Parameters:
- val- pixel value to use
 
- 
swapSchemeConverts the map from NESTED to RING scheme or vice versa. This operation is done in-place, i.e. it does not require additional memory.- Throws:
- Exception
 
- 
getPixelpublic double getPixel(int ipix) Returns the value of the pixel with a given index.- Parameters:
- ipix- index of the requested pixel
- Returns:
- pixel value
 
- 
getPixelpublic double getPixel(long ipix) Returns the value of the pixel with a given index.- Parameters:
- ipix- index of the requested pixel
- Returns:
- pixel value
 
- 
setPixelpublic void setPixel(int ipix, double val) Sets the value of a specific pixel.- Parameters:
- ipix- index of the pixel
- val- new value for the pixel
 
- 
setPixelpublic void setPixel(long ipix, double val) Sets the value of a specific pixel.- Parameters:
- ipix- index of the pixel
- val- new value for the pixel
 
- 
getDatapublic double[] getData()Returns the array containing all map pixels.- Returns:
- the map array
 
- 
importNogradeImports the map "orig" to this object, adjusting pixel ordering.- Parameters:
- orig- map to import
- Throws:
- Exception
 
- 
importUpgradeImports the map "orig" to this object, adjusting pixel ordering and increasing resolution.- Parameters:
- orig- map to import
- Throws:
- Exception
 
- 
importDegradeImports the map "orig" to this object, adjusting pixel ordering and reducing resolution.- Parameters:
- orig- map to import
- pessimistic- 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.
- Throws:
- Exception
 
- 
importGeneralImports the map "orig" to this object, adjusting pixel ordering and resolution if necessary.- Parameters:
- orig- map to import
- pessimistic- 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.
- Throws:
- Exception
 
 
-