|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HealpixMap
Healpix map data model interface.
| Nested Class Summary | |
|---|---|
static class |
HealpixMap.CoordSys
Coordinate system for this map - will put C,E,G in fits file. |
| 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(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 imap,
int pixId)
Return the value of an HEALPix cell in the map. |
HealpixMap.CoordSys |
getCoordSys()
return current coordsys |
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 |
getMin()
Returns minimum value from default map |
double |
getMin(int i)
Returns minimum value from a map. |
String |
getUnit(short mapIndex)
Get the unit of the map of index mapIndex |
double |
mean(int nmap,
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 |
AngularPosition |
pix2ang(long ipix)
Returns the angular position AngularPosition pointing at that
pixel index in the healpix sphere tesslated |
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 |
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 |
void |
toDataSet(String name)
Write generated maps to a FITS data set. |
| Methods inherited from interface healpix.core.dm.AbstractHealpixMap |
|---|
getImap, getName, getScheme, nPixel, nside, setImap, setName, setScheme |
| Method Detail |
|---|
int ang2pix(double theta,
double phi)
throws Exception
theta - angle (along meridian), in [0,Pi], theta=0 : north polephi - angle (along parallel), in [0,2*Pi]
Exception
AngularPosition pix2ang(long ipix)
throws Exception
AngularPosition pointing at that
pixel index in the healpix sphere tesslated
ipix - the index pixel to get the angular position
Exception
void add(AngularPosition pos,
double val)
pos - 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.double get(AngularPosition pos)
pos - Position of HEALPix cell whose value is to be incremented -
spherical coordinates (0<=theta<=Pi; 0<=phi<=2Pi).
double get(int imap,
int pixId)
imap - Map index in the range 0 to number of maps-1pixId - Pixel id.
double get(int pixId)
pixId - Pixel id.
void add(int index,
double val)
index - Pixel Id.val - Value to add to the HEALPix cell.
void add(int i,
AngularPosition pos,
double val)
i - 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.void normalize(int n)
n - Index of map to normalise.void average(int n)
n - Index of map.
void scale(int n,
double f)
n - Index of mapf - Value to multiply by.
void toDataSet(String name)
throws Exception
name - Name of the data set.
Exceptiondouble getMin()
double getMax()
double getMax(int i)
i - a map index from 0 to nMap-1
double getMin(int i)
i - a map index from 0 to nMap-1
void setValueCell(int nmap,
int ipix,
double val)
nmap - the nth mapipix - the ith pixelval - the double value to set
void setValueCell(int ipix,
double val)
ipix - the ith pixelval - the double value to set
double[] mollpro(int xsize,
double lon0)
HealpixMap regrade(int nside)
nside - resolution number
HealpixMap
void convert_ring2nest()
throws Exception
Exception
void convert_nest2ring()
throws Exception
Exception
double mean(int nmap,
int firstPix,
int lastPix)
nmap - the ith mapfirstPix - first pixel index to countlastPix - last pixel index to count
double[][] getMapItemData()
void setCoordSys(HealpixMap.CoordSys cs)
cs - HealpixMap.CoordSys getCoordSys()
String getUnit(short mapIndex)
mapIndex -
void setUnit(String unit,
short mapIndex)
unit - mapIndex -
|
"Built from revision exported" | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||