|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthealpix.essentials.HealpixTables
healpix.essentials.HealpixBase
healpix.core.dm.HealpixMapImp
public class HealpixMapImp
A Healpix map can generate sky maps encoded in the HEALPix sky indexing scheme (http://healpix.sourceforge.net/). The created maps can be written to a FITS data set for further processing with e.g. visualisation/analysis tools in the HEALPix distribution.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface healpix.core.dm.HealpixMap |
|---|
HealpixMap.CoordSys |
| Field Summary |
|---|
| Fields inherited from class healpix.essentials.HealpixBase |
|---|
ns_max, order_max |
| Constructor Summary | |
|---|---|
HealpixMapImp(long pixels,
String[] maps)
Construct a HEALPix mapper whose sphere tesselisation contains no less than a given number of pixels. |
|
HealpixMapImp(short nsideIndex,
String[] maps)
Construct a HEALPix mapper for a given NSIDE. |
|
HealpixMapImp(String[] maps,
double[][] mapIt)
Construct a HEALPix mapper for a given map names and data columns. |
|
| Method Summary | |
|---|---|
void |
add(AngularPosition pos,
double val)
Add a value to a HEALPix cell in the default map. |
void |
add(int i,
AngularPosition pos,
double val)
Add a value to a HEALPix cell in a map |
void |
add(int index,
double val)
Add a value to a HEALPix cell in the default map. |
int |
ang2pix(AngularPosition pos)
Get the map ith pixel from an AngularPosition position |
int |
ang2pix(double theta,
double phi)
Returns the index healpix pixel from an angular position |
void |
average(int n)
Replace each cell value by the average of all values added to the cell. |
void |
convert_nest2ring()
makes the conversion map NEST to RING |
void |
convert_ring2nest()
makes the conversion map RING to NEST |
double |
get(AngularPosition pos)
Return the value of an HEALPix cell in the default map. |
double |
get(int pixId)
Return the value of an HEALPix cell in the default map. |
double |
get(int i,
int pixId)
Return the value of an HEALPix cell in the map. |
HealpixMap.CoordSys |
getCoordSys()
return current coordsys |
int |
getCount(int i,
int pixId)
Get the accumulated added value to a pixel |
int |
getImap(String cname)
Get the number corresponding to that name cname |
double[][] |
getMapItemData()
Gets the column(s) data values |
double |
getMax()
Returns maximum value from default map. |
double |
getMax(int i)
Returns maximum value from a map. |
double |
getMaxMapItem(int i)
Gets the max map item. |
double |
getMin()
Returns minimum value from default map |
double |
getMin(int i)
Returns minimum value from a map. |
double |
getMinMapItem(int i)
Gets the min map item. |
String[] |
getName()
Get the names from the HealpixMap |
int |
getNside()
Return the value of the HEALPix NSIDE parameter. |
int |
getPosCount(int i,
AngularPosition pos)
Get the accumulated added value to a pixel |
String |
getUnit(short mapIndex)
Get the unit of the map of index mapIndex |
double |
mean(int imap,
int firstPix,
int lastPix)
Average value over data from firstPix to lastPix index |
double[] |
mollpro(int xsize,
double lon0)
Method to get the projected map dependent of the scheme : will obtain xsize as x-dimension of the output-array and lon0 as the longitude (in degrees) |
void |
normalize(int n)
Scale a map by total number of values added, i.e. the sum of all cell values amounts to one after the operation |
long |
nPixel()
Return the number of pixels/cells of the sphere tesselisation. |
int |
nside()
Return the value of the HEALPix NSIDE parameter. |
AngularPosition |
pix2ang(long ipix)
Returns the Pointing corresponding to the center of the supplied pixel. |
HealpixMap |
regrade(int nside)
Down/Upgrade the map resolution |
void |
scale(int n,
double f)
Scale each cell value by the given value. |
void |
setCoordSys(HealpixMap.CoordSys cs)
set the Coordsys. |
void |
setImap(int i)
Sets the map data from its number in healpix map |
void |
setName(String[] colname)
Set the names of the maps |
void |
setNside(int nside)
Setting the resolution number nside |
void |
setUnit(String unit,
short mapIndex)
Sets unit of the map index mapIndex |
void |
setValueCell(int ipix,
double val)
Sets the value val into the cell numbered ipix in default map |
void |
setValueCell(int nmap,
int ipix,
double val)
Sets the value val into the cell numbered ipix in nmap map |
Object |
shallowClone()
Shallow clone. |
void |
toDataSet(String name)
Write generated maps to a FITS data set. |
| Methods inherited from class healpix.essentials.HealpixBase |
|---|
ang2pix, boundaries, getNpix, getOrder, getScheme, maxPixrad, neighbours, nest2ring, npix2Nside, nside2Npix, nside2order, order2Npix, pix2ring, pix2vec, pix2zphi, queryDisc, queryDiscInclusive, queryPolygon, queryPolygonInclusive, queryStrip, ring2nest, ring2theta, ring2z, setNside, setNsideAndScheme, setScheme, vec2pix, zphi2pix |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface healpix.core.dm.AbstractHealpixMap |
|---|
getScheme, setScheme |
| Constructor Detail |
|---|
public HealpixMapImp(String[] maps,
double[][] mapIt)
throws Exception
mapIt - the data arraymaps - Array of strings with map names. the length of the array
determines the number of maps to generate.
Exception
public HealpixMapImp(short nsideIndex,
String[] maps)
throws Exception
nsideIndex - HEALPix sphere tesselisation is done with NSIDE=2^nSideIndex,
nSideIndex must be greater or equal to 0.maps - Array of strings with map names. the length of the array
determines the number of maps to generate.
Exception
public HealpixMapImp(long pixels,
String[] maps)
throws Exception
pixels - Minimum number of cells/pixels that the tesselisation shall
contain.maps - Names of Healpix maps to create.
Exception| Method Detail |
|---|
public long nPixel()
AbstractHealpixMap
nPixel in interface AbstractHealpixMappublic int nside()
AbstractHealpixMap
nside in interface AbstractHealpixMap
public void add(AngularPosition pos,
double val)
HealpixMap
add in interface HealpixMappos - Position of HEALPix cell whose value is to be incremented -
spherical coordinates (0<=theta<=Pi; 0<=phi<=2Pi).val - Value to add to the HEALPix cell.public double get(AngularPosition pos)
HealpixMap
get in interface HealpixMappos - Position of HEALPix cell whose value is to be incremented -
spherical coordinates (0<=theta<=Pi; 0<=phi<=2Pi).
public int getCount(int i,
int pixId)
i - ith mappixId - pixel id
public int getPosCount(int i,
AngularPosition pos)
throws Exception
i - ith mappos - Angular position in sky
Exception
public double get(int i,
int pixId)
HealpixMap
get in interface HealpixMapi - Map index in the range 0 to number of maps-1pixId - Pixel id.
public double get(int pixId)
HealpixMap
get in interface HealpixMappixId - Pixel id.
public void add(int index,
double val)
HealpixMap
add in interface HealpixMapindex - Pixel Id.val - Value to add to the HEALPix cell.
public void add(int i,
AngularPosition pos,
double val)
HealpixMap
add in interface HealpixMapi - Map index in the range 0 to number of maps-1pos - Position of HEALPix cell whose value is to be incremented -
spherical coordinates (0<=theta<=Pi; 0<=phi<=2Pi).val - Value to add to the HEALPix cell.public void normalize(int n)
HealpixMap
normalize in interface HealpixMapn - Index of map to normalise.public void average(int n)
HealpixMap
average in interface HealpixMapn - Index of map.
public void scale(int n,
double f)
HealpixMap
scale in interface HealpixMapn - Index of mapf - Value to multiply by.
public void toDataSet(String name)
throws Exception
HealpixMap
toDataSet in interface HealpixMapname - Name of the data set.
Exceptionpublic HealpixMap regrade(int nside)
HealpixMap
regrade in interface HealpixMapnside - resolution number
HealpixMappublic double getMin()
HealpixMap
getMin in interface HealpixMappublic double getMax()
HealpixMap
getMax in interface HealpixMappublic double getMax(int i)
HealpixMap
getMax in interface HealpixMapi - a map index from 0 to nMap-1
public double getMaxMapItem(int i)
i - the i
public double getMin(int i)
HealpixMap
getMin in interface HealpixMapi - a map index from 0 to nMap-1
public double getMinMapItem(int i)
i - the i
public void setValueCell(int nmap,
int ipix,
double val)
HealpixMap
setValueCell in interface HealpixMapnmap - the nth mapipix - the ith pixelval - the double value to set
public void setValueCell(int ipix,
double val)
HealpixMap
setValueCell in interface HealpixMapipix - the ith pixelval - the double value to setpublic int getNside()
getNside in class HealpixBasepublic void setNside(int nside)
nside - resolution number
public int ang2pix(double theta,
double phi)
throws Exception
HealpixMap
ang2pix in interface HealpixMaptheta - angle (along meridian), in [0,Pi], theta=0 : north polephi - angle (along parallel), in [0,2*Pi]
Exception
public int ang2pix(AngularPosition pos)
throws Exception
AngularPosition position
pos - the AngularPosition position
Exception
public AngularPosition pix2ang(long ipix)
throws Exception
HealpixBase
pix2ang in interface HealpixMappix2ang in class HealpixBaseipix - the requested pixel number.
Exception
public double[] mollpro(int xsize,
double lon0)
mollpro in interface HealpixMappublic String[] getName()
AbstractHealpixMapHealpixMap
getName in interface AbstractHealpixMappublic void setName(String[] colname)
AbstractHealpixMap
setName in interface AbstractHealpixMapcolname - names mapspublic int getImap(String cname)
AbstractHealpixMap
getImap in interface AbstractHealpixMapcname - map name which we want to get the ith number
public void setImap(int i)
AbstractHealpixMap
setImap in interface AbstractHealpixMapi - map ith number
public void convert_nest2ring()
throws Exception
convert_nest2ring in interface HealpixMapException
public void convert_ring2nest()
throws Exception
convert_ring2nest in interface HealpixMapExceptionpublic double[][] getMapItemData()
HealpixMap
getMapItemData in interface HealpixMap
public double mean(int imap,
int firstPix,
int lastPix)
HealpixMap
mean in interface HealpixMapimap - the ith mapfirstPix - first pixel index to countlastPix - last pixel index to count
public Object shallowClone()
public HealpixMap.CoordSys getCoordSys()
HealpixMap
getCoordSys in interface HealpixMappublic void setCoordSys(HealpixMap.CoordSys cs)
HealpixMap
setCoordSys in interface HealpixMappublic String getUnit(short mapIndex)
HealpixMap
getUnit in interface HealpixMapHealpixMap.getUnit(short)
public void setUnit(String unit,
short mapIndex)
HealpixMap
setUnit in interface HealpixMapHealpixMap.setUnit(java.lang.String, short)
|
"Built from revision exported" | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||