NASA - Jet Propulsion Laboratory
    + View the NASA Portal
Search JPL
Jet Propulsion Laboratory Home Earth Solar System Stars & Galaxies Technology
Introduction Background Software Links


healpix.fits
Class Fits2HealpixMapImp

java.lang.Object
  extended by healpix.fits.Fits2HealpixMapImp
All Implemented Interfaces:
Fits2HealpixMap

public class Fits2HealpixMapImp
extends Object
implements Fits2HealpixMap

Converts fits file into healpix map. Read the fits and create the HealpixMap object.

Version:
$Id: Fits2HealpixMapImp.java,v 1.1.2.4 2010/02/22 14:55:50 healpix Exp $
Author:
ejoliet

Field Summary
 String[] names
          The names.
 
Constructor Summary
Fits2HealpixMapImp()
          Default constructor.
 
Method Summary
 HealpixMap fits2map(String filename)
          Read fits binary table from FITS file and set the HealpixMap with the data from table read
 String[] getColname()
          Get maps name
 char getDataType(String ftype)
          Gets the data type.
 int getDimension(String ftype)
          Gets the dimension.
 HealpixMap getMap()
          Getting the map.
 void printTable()
          Print out the data table.
 double[][] readFitsBinaryTable(String filename)
          Reads a binary table from fits file
 void setColname(String[] nam)
          Set the maps name
 void setMap(HealpixMap m)
          Set the HealpixMap
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

names

public String[] names
The names.

Constructor Detail

Fits2HealpixMapImp

public Fits2HealpixMapImp()
Default constructor.

Method Detail

readFitsBinaryTable

public double[][] readFitsBinaryTable(String filename)
                               throws Exception
Description copied from interface: Fits2HealpixMap
Reads a binary table from fits file

Specified by:
readFitsBinaryTable in interface Fits2HealpixMap
Parameters:
filename - the fits file name
Returns:
double[][] Array of doubles containing the values
Throws:
Exception
See Also:
Fits2HealpixMap.readFitsBinaryTable(java.lang.String)

getDimension

public int getDimension(String ftype)
Gets the dimension.

Parameters:
ftype - the ftype
Returns:
the dimension

getDataType

public char getDataType(String ftype)
Gets the data type.

Parameters:
ftype - the ftype
Returns:
the data type

fits2map

public HealpixMap fits2map(String filename)
                    throws Exception
Description copied from interface: Fits2HealpixMap
Read fits binary table from FITS file and set the HealpixMap with the data from table read

Specified by:
fits2map in interface Fits2HealpixMap
Parameters:
filename - FITS file name.
Returns:
HealpixMap map.
Throws:
Exception
See Also:
Fits2HealpixMap.fits2map(java.lang.String)

printTable

public void printTable()
                throws Exception
Print out the data table.

Throws:
Exception

getMap

public HealpixMap getMap()
Description copied from interface: Fits2HealpixMap
Getting the map.

Specified by:
getMap in interface Fits2HealpixMap
Returns:
HealpixMap map
See Also:
Fits2HealpixMap.getMap()

setMap

public void setMap(HealpixMap m)
Description copied from interface: Fits2HealpixMap
Set the HealpixMap

Specified by:
setMap in interface Fits2HealpixMap
Parameters:
m - HealpixMap
See Also:
Fits2HealpixMap.setMap(healpix.core.dm.HealpixMap)

setColname

public void setColname(String[] nam)
Description copied from interface: Fits2HealpixMap
Set the maps name

Specified by:
setColname in interface Fits2HealpixMap
Parameters:
nam - names
See Also:
Fits2HealpixMap.setColname(java.lang.String[])

getColname

public String[] getColname()
Description copied from interface: Fits2HealpixMap
Get maps name

Specified by:
getColname in interface Fits2HealpixMap
Returns:
names
See Also:
Fits2HealpixMap.getColname()

"Built from revision exported"

Privacy / Copyright
FIRST GOV Contact: NASA Home Page Site Manager:
Webmaster:

CL 03-2650