astro.fits
Class FitsTools.XMoment
java.lang.Object
astro.fits.FitsTools.XMoment
- Enclosing class:
- FitsTools
public static final class FitsTools.XMoment
- extends Object
Take the moments of the given fits file and print its value per xtension
BasicHDU hdu = null;
int i1 = 0;
int found = 0;
while ((hdu = fits.getHDU(i1++)) != null) {
if (type.isInstance(hdu)) {
if (ignorenull && (hdu.getData() == null ||
hdu.getData().getData() == null))
continue;
else {
if (skip <= found)
return type.cast(hdu);
else
found ++;
}
}
}
return null;
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FitsTools.XMoment
public FitsTools.XMoment()
main
public static void main(String[] arg)
throws nom.tam.fits.FitsException,
IOException
- Throws:
nom.tam.fits.FitsException
IOException