cds.aladin
Class PlanHealpix

java.lang.Object
  extended by cds.aladin.Plan
      extended by cds.aladin.PlanImage
          extended by cds.aladin.PlanBG
              extended by cds.aladin.PlanHealpix
All Implemented Interfaces:
java.lang.Runnable

public class PlanHealpix
extends PlanBG

Plan gérant une image au format Healpix

Author:
Thomas Boch [CDS]

Field Summary
static int DIRSIZE
           
 
Constructor Summary
PlanHealpix(Aladin aladin, java.lang.String file, MyInputStream in)
           
 
Method Summary
 void createAllSky(java.lang.String path, java.lang.String survey, int order, int outLosangeWidth)
          Création des fichiers Allsky FITS 8 bits et JPEG pour tout un niveau Healpix
static long getFather(long npix)
          Retourne le numéro du pixel père (pour l'order précédent)
static java.lang.String getFilePath(java.lang.String survey, int order, long npix)
           
static long getHealpixMin(int n1, long n, int n2, boolean nside)
           
 int hpx2xy(int xyOffset)
          Retourne l'indice XY en fonction d'un indice Healpix => nécessité d'initialiser au préalable avec createHealpixOrdre(int)
static long log2(long x)
           
 boolean switchToField(int idxField)
          Switch display to field #idxField
 int xy2hpx(int hpxOffset)
          Retourne l'indice XY en fonction d'un indice Healpix => nécessité d'initialiser au préalable avec createHealpixOrdre(int)
 
Methods inherited from class cds.aladin.Plan
getOpacityLevel, run, setOpacityLevel, stop, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DIRSIZE

public static final int DIRSIZE
See Also:
Constant Field Values
Constructor Detail

PlanHealpix

public PlanHealpix(Aladin aladin,
                   java.lang.String file,
                   MyInputStream in)
Method Detail

switchToField

public boolean switchToField(int idxField)
Switch display to field #idxField

Parameters:
idxField -
Returns:
true if we managed to switch, false otherwise

getHealpixMin

public static long getHealpixMin(int n1,
                                 long n,
                                 int n2,
                                 boolean nside)

log2

public static long log2(long x)

getFather

public static long getFather(long npix)
Retourne le numéro du pixel père (pour l'order précédent)


xy2hpx

public final int xy2hpx(int hpxOffset)
Retourne l'indice XY en fonction d'un indice Healpix => nécessité d'initialiser au préalable avec createHealpixOrdre(int)


hpx2xy

public final int hpx2xy(int xyOffset)
Retourne l'indice XY en fonction d'un indice Healpix => nécessité d'initialiser au préalable avec createHealpixOrdre(int)


getFilePath

public static java.lang.String getFilePath(java.lang.String survey,
                                           int order,
                                           long npix)

createAllSky

public void createAllSky(java.lang.String path,
                         java.lang.String survey,
                         int order,
                         int outLosangeWidth)
                  throws java.lang.Exception
Création des fichiers Allsky FITS 8 bits et JPEG pour tout un niveau Healpix

Parameters:
path - Emplacement de la base
survey - nom du survey
order - order Healpix
outLosangeWidth - largeur des losanges pour le Allsky (typiquement 64 ou 128 pixels)
Throws:
java.lang.Exception


Copyright © 2009 UDS/CNRS