public class MFitsTools extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MFitsTools.Quadrants |
| Modifier and Type | Field and Description |
|---|---|
static List<String> |
DATEKEYS
A list of fits keys that might also indicate a date.
|
static DateFormat |
FITSDATE
The default formatter used for FITS-header dates.
|
static DateFormat |
FITSDATEMS |
static String |
FITSEXTENSION
The extension for fits files.
|
static String |
FITZEXTENSION
The extension for compressed fits files.
|
private static int |
INTERMITTENT |
private static long |
INTERMITTENTCOOL |
| Constructor and Description |
|---|
MFitsTools() |
| Modifier and Type | Method and Description |
|---|---|
static List<MImageHDU> |
equalSize(List<MImageHDU> all)
Takes a list of image hdu and returns only those that have data and match
the first HDU in size.
|
static List<MImageHDU> |
equalSize(List<MImageHDU> all,
ArrayLayout size)
Takes a list of image hdu and returns only those that have data of the
specified size.
|
static MFits |
getFromURL(URL durl)
Reads an mfits object from an URL.
|
static double[] |
getTrueFrame(MImageHDU hdu,
Rectangle act,
int thick,
boolean check) |
static Map<MFitsTools.Quadrants,double[]> |
getTrueQuadrantsFrame(MImageHDU hdu,
Rectangle active,
int thick)
Extracts a frame at the inside of the active window and splits it into
the four quadrant designations
MFitsTools.Quadrants. |
static Collection<MHeaderCard> |
mergeAll(MFits f) |
static MImageHDU |
skipToNoneEmptyImage(MFits fits,
int minskip)
Just to provide a method that will have identical signature to
getHDUofType
|
public static final String FITSEXTENSION
public static final String FITZEXTENSION
public static final DateFormat FITSDATE
public static final DateFormat FITSDATEMS
public static final List<String> DATEKEYS
private static final int INTERMITTENT
private static final long INTERMITTENTCOOL
public static MFits getFromURL(URL durl) throws IOException, HeaderParsingException, BasicFitsException
durl - IOExceptionHeaderParsingExceptionBasicFitsExceptionpublic static Collection<MHeaderCard> mergeAll(MFits f)
public static MImageHDU skipToNoneEmptyImage(MFits fits, int minskip)
fits - minskip - public static double[] getTrueFrame(MImageHDU hdu, Rectangle act, int thick, boolean check) throws BasicFitsException
BasicFitsExceptionpublic static Map<MFitsTools.Quadrants,double[]> getTrueQuadrantsFrame(MImageHDU hdu, Rectangle active, int thick) throws BasicFitsException
MFitsTools.Quadrants. All four list have the
same amount of data, regardless if even or odd width/height are used
(points may be contained in two quadrants, though).
The shape of each quadrant can be depicted as an 'balanced' L.BasicFitsExceptionpublic static List<MImageHDU> equalSize(List<MImageHDU> all)
all - size - If null, first image HDU is used for size.public static List<MImageHDU> equalSize(List<MImageHDU> all, ArrayLayout size)
all - size - May not be null