![]() |
![]() |
![]() |
|||||||||||||||||
![]() |
![]() |
![]() |
|||||||||||||||||
![]() |
|
![]() |
|||||||||||||||||
![]() |
![]() |
![]() |
![]() |
healpix.core.dm
|
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface healpix.core.dm.AbstractHealpixMap |
---|
AbstractHealpixMap.Scheme |
Field Summary |
---|
Fields inherited from class healpix.core.HealpixIndex |
---|
ns_max, nside, nsidelist, REVISION, z0 |
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. |
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 |
AbstractHealpixMap.Scheme |
getScheme()
Return the current HEALPix scheme. |
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 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 |
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 |
setScheme(AbstractHealpixMap.Scheme scheme)
Set the HEALPix scheme. |
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.core.HealpixIndex |
---|
ang2pix_nest, ang2pix_ring, Ang2Vec, angDist, bitdiff, calculateNSide, corners_nest, corners_ring, crossProduct, dotProduct, getChildrenAt, getOrder, getPixRes, InRing_nested_longset, inRing, inRing, InRing, inRingCxx, InRingLongSet, integration_limits_in_costh, intrs_intrv, log2, neighbours_nest, nest2ring, next_in_line_nest, npix2Nside, nside2Npix, nside2order, parentAt, pix2ang_nest, pix2ang_ring, pix2vec_nest, pix2vec_ring, pixel_boundaries, printVec, query_disc, query_polygon, query_strip, query_triangle, ring, ring2nest, ringNum, setOrder, surfaceTriangle, vec2pix_nest, vec2pix_ring, Vect2Ang, vector |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 AbstractHealpixMap.Scheme getScheme()
AbstractHealpixMap
getScheme
in interface AbstractHealpixMap
public void setScheme(AbstractHealpixMap.Scheme scheme)
AbstractHealpixMap
setScheme
in interface AbstractHealpixMap
scheme
- Scheme to set.public long nPixel()
AbstractHealpixMap
nPixel
in interface AbstractHealpixMap
public int nside()
AbstractHealpixMap
nside
in interface AbstractHealpixMap
public void add(AngularPosition pos, double val)
HealpixMap
add
in interface HealpixMap
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.public double get(AngularPosition pos)
HealpixMap
get
in interface HealpixMap
pos
- 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 HealpixMap
i
- Map index in the range 0 to number of maps-1pixId
- Pixel id.
public double get(int pixId)
HealpixMap
get
in interface HealpixMap
pixId
- Pixel id.
public void add(int index, double val)
HealpixMap
add
in interface HealpixMap
index
- Pixel Id.val
- Value to add to the HEALPix cell.public void add(int i, AngularPosition pos, double val)
HealpixMap
add
in interface HealpixMap
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.public void normalize(int n)
HealpixMap
normalize
in interface HealpixMap
n
- Index of map to normalise.public void average(int n)
HealpixMap
average
in interface HealpixMap
n
- Index of map.public void scale(int n, double f)
HealpixMap
scale
in interface HealpixMap
n
- Index of mapf
- Value to multiply by.public void toDataSet(String name) throws Exception
HealpixMap
toDataSet
in interface HealpixMap
name
- Name of the data set.
Exception
public HealpixMap regrade(int nside)
HealpixMap
regrade
in interface HealpixMap
nside
- resolution number
HealpixMap
public double getMin()
HealpixMap
getMin
in interface HealpixMap
public double getMax()
HealpixMap
getMax
in interface HealpixMap
public double getMax(int i)
HealpixMap
getMax
in interface HealpixMap
i
- 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 HealpixMap
i
- 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 HealpixMap
nmap
- the nth mapipix
- the ith pixelval
- the double value to setpublic void setValueCell(int ipix, double val)
HealpixMap
setValueCell
in interface HealpixMap
ipix
- the ith pixelval
- the double value to setpublic int getNside()
public void setNside(int nside)
nside
- resolution numberpublic int ang2pix(double theta, double phi) throws Exception
HealpixMap
ang2pix
in interface HealpixMap
theta
- 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
HealpixMap
AngularPosition
pointing at that
pixel index in the healpix sphere tesslated
pix2ang
in interface HealpixMap
ipix
- the index pixel to get the angular position
Exception
public double[] mollpro(int xsize, double lon0)
mollpro
in interface HealpixMap
public String[] getName()
AbstractHealpixMap
HealpixMap
getName
in interface AbstractHealpixMap
public void setName(String[] colname)
AbstractHealpixMap
setName
in interface AbstractHealpixMap
colname
- names mapspublic int getImap(String cname)
AbstractHealpixMap
getImap
in interface AbstractHealpixMap
cname
- map name which we want to get the ith number
public void setImap(int i)
AbstractHealpixMap
setImap
in interface AbstractHealpixMap
i
- map ith numberpublic void convert_nest2ring() throws Exception
convert_nest2ring
in interface HealpixMap
Exception
public void convert_ring2nest() throws Exception
convert_ring2nest
in interface HealpixMap
Exception
public double[][] getMapItemData()
HealpixMap
getMapItemData
in interface HealpixMap
public double mean(int imap, int firstPix, int lastPix)
HealpixMap
mean
in interface HealpixMap
imap
- the ith mapfirstPix
- first pixel index to countlastPix
- last pixel index to count
public Object shallowClone()
|
"Built from revision exported" | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
![]() |
![]() |
![]() |
||||
![]() |
|
![]() |
||||
![]() |
![]() |
![]() |
||||
![]() |
|
![]() |
||||
![]() |
![]() |
![]() |
||||
![]() |
![]() |
![]() |