|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.splat.ast.ASTFITSChan
public class ASTFITSChan
Class to create and manipulate AST FITS channels. Uses of this are to read in a series of FITS headers and create an AST frameset that describes any coordinate systems and the reverse process of encoding a frameset as a series of FITS header cards.
ASTJ
Field Summary | |
---|---|
protected uk.ac.starlink.ast.FitsChan |
fitsChan
Reference to the AST FITS channel. |
Constructor Summary | |
---|---|
ASTFITSChan()
Default constructor. |
|
ASTFITSChan(String encoding)
Default constructor. |
Method Summary | |
---|---|
void |
add(String card)
Add a card to the channel. |
String |
findCard(String pattern)
Read a FITS card back from the channel. |
uk.ac.starlink.ast.FitsChan |
getFitsChan()
Return native AST reference to the channel. |
String |
nextCard()
Read the next FITS card back from the channel. |
uk.ac.starlink.ast.FrameSet |
read()
Read the channel, creating an AST frameset. |
void |
rewind()
Rewind the channel. |
boolean |
write(uk.ac.starlink.ast.FrameSet frameset)
Write a frameset into the channel. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected uk.ac.starlink.ast.FitsChan fitsChan
Constructor Detail |
---|
public ASTFITSChan()
public ASTFITSChan(String encoding)
encoding
- the AST FITS channel encoding.Method Detail |
---|
public void add(String card)
card
- the FITS card to add.public void rewind()
public uk.ac.starlink.ast.FrameSet read()
public boolean write(uk.ac.starlink.ast.FrameSet frameset)
frameset
- reference to an AST frameset.public String findCard(String pattern)
pattern
- keyword template used to match card.public String nextCard()
public uk.ac.starlink.ast.FitsChan getFitsChan()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |