|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ndx.Ndxs
public class Ndxs
Utility methods for Ndx manipulation.
Method Summary | |
---|---|
static FrameSet |
getAst(Ndx ndx)
Unconditionally returns world coordinate system information for an NDX as a FrameSet . |
static FrameSet |
getDefaultAst(Ndx ndx)
Returns a default AST FrameSet for an Ndx. |
static NDArray |
getMaskedErrors(Ndx ndx)
Returns a view of the Errors of an Ndx with any masking implied by its Quality array taken care of. |
static NDArray |
getMaskedErrors(Ndx ndx,
Requirements req)
Returns a view of the Errors of an Ndx with any masking implied by its Quality array taken care of, and additional constraints supplied by a Requirements object. |
static NDArray |
getMaskedImage(Ndx ndx)
Returns a view of the Image array of an Ndx with any masking implied by its Quality array taken care of. |
static NDArray |
getMaskedImage(Ndx ndx,
Requirements req)
Returns a view of the Image array of an Ndx with any masking implied by its Quality array taken care of, and additional constraints supplied by a Requirements object. |
static NDArray |
getMaskedVariance(Ndx ndx)
Returns a view of the Variance array of an Ndx with any masking implied by its Quality array taken care of. |
static NDArray |
getMaskedVariance(Ndx ndx,
Requirements req)
Returns a view of the Variance array of an Ndx with any masking implied by its Quality array taken care of, and additional constraints supplied by an Requirements object. |
static NDArray |
maskArray(NDArray target,
NDArray quality,
int badbits,
Requirements req)
Applies quality masking to an NDArray based on another NDArray representing quality values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static NDArray getMaskedImage(Ndx ndx, Requirements req) throws IOException
ndx
- the NDX whose image is soughtreq
- additional requirements for the returned array.
May be null
IOException
- if an I/O error occursmaskArray(uk.ac.starlink.array.NDArray, uk.ac.starlink.array.NDArray, int, uk.ac.starlink.array.Requirements)
public static NDArray getMaskedImage(Ndx ndx) throws IOException
ndx
- the NDX whose image is sought
IOException
- if an I/O error occursmaskArray(uk.ac.starlink.array.NDArray, uk.ac.starlink.array.NDArray, int, uk.ac.starlink.array.Requirements)
public static NDArray getMaskedVariance(Ndx ndx, Requirements req) throws IOException
ndx
- the NDX whose variance is soughtreq
- additional requirements for the returned array.
May be null
IOException
- if an I/O error occursmaskArray(uk.ac.starlink.array.NDArray, uk.ac.starlink.array.NDArray, int, uk.ac.starlink.array.Requirements)
public static NDArray getMaskedVariance(Ndx ndx) throws IOException
ndx
- the NDX whose variance is sought
IOException
- if an I/O error occursmaskArray(uk.ac.starlink.array.NDArray, uk.ac.starlink.array.NDArray, int, uk.ac.starlink.array.Requirements)
public static NDArray getMaskedErrors(Ndx ndx, Requirements req) throws IOException
getMaskedVariance(Ndx,Requirements)
.
ndx
- the NDX whose errors are soughtreq
- additional requirements for the returned array.
May be null
IOException
- if an I/O error occursmaskArray(uk.ac.starlink.array.NDArray, uk.ac.starlink.array.NDArray, int, uk.ac.starlink.array.Requirements)
public static NDArray getMaskedErrors(Ndx ndx) throws IOException
getMaskedVariance(Ndx)
.
ndx
- the NDX whose errors are sought
IOException
- if an I/O error occursmaskArray(uk.ac.starlink.array.NDArray, uk.ac.starlink.array.NDArray, int, uk.ac.starlink.array.Requirements)
public static NDArray maskArray(NDArray target, NDArray quality, int badbits, Requirements req) throws IOException
This method does the work for the various Ndx array masking methods in this class.
target
- the target NDArray to be maskedquality
- an NDArray of an integer typebadbits
- the quality maskreq
- additional requirements on the returned object.
May be null
IOException
- if an I/O error occurspublic static FrameSet getAst(Ndx ndx)
FrameSet
.
If ndx has a WCS component it is generated from that,
otherwise a suitable default one is returned.
ndx
- the NDX for which WCS are requiredpublic static FrameSet getDefaultAst(Ndx ndx)
ndx
- the Ndx for which to find the default FrameSet
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |