Interface | Description |
---|---|
Grf |
Interface for specifying graphics implementations used by
Plot s. |
NeedsChannelizing |
Declares that an
AstObject requires object-specific
preparation before writing to and/or after reading from a
Channel . |
Ukern1Calculator |
Interface for user-provided 1-d kernel interpolation functions.
|
Class | Description |
---|---|
AstObject |
Java interface to the AST Object class
- base class for all AST Objects.
|
AstPackage |
Provides information about the status of the JNIAST package.
|
AstroCoords |
Represents an
AstroCoords element from the Space-Time
Coordinate (STC) metadata. |
Axis |
Java interface to the AST Axis
class.
|
Box |
Java interface to the AST Box class
- a box region with sides parallel to the axes of a Frame.
|
Channel |
Java interface to the AST Channel class
- basic (textual) I/O channel.
|
Circle |
Java interface to the AST Circle class
- a circular or spherical region within a Frame.
|
CmpFrame |
Java interface to the AST CmpFrame class
- compound Frame.
|
CmpMap |
Java interface to the AST CmpMap class
- compound Mapping.
|
CmpRegion |
Java interface to the AST CmpRegion class
- a combination of two regions within a single Frame.
|
DSBSpecFrame |
Java interface to the AST DSBSpecFrame class
- dual sideband spectral coordinate system description.
|
DssMap |
Java interface to the AST DssMap
class.
|
Ellipse |
Java interface to the AST Ellipse class
- an elliptical region within a 2-dimensional Frame.
|
FitsChan |
Java interface to the AST FitsChan class
- I/O Channel using FITS header cards to represent Objects.
|
FluxFrame |
Java interface to the AST FluxFrame class
- measured flux description.
|
Frame |
Java interface to the AST Frame class
- coordinate system description.
|
FrameSet |
Java interface to the AST FrameSet class
- set of inter-related coordinate systems.
|
GrismMap |
Java interface to the AST GrismMap class
- transform 1-dimensional coordinates using a grism dispersion equation.
|
Interval |
Java interface to the AST Interval class
- a region representing an interval on one or more axes of a Frame.
|
IntraMap |
Java interface to the AST IntraMap
class
- map points using a private transformation function.
|
KeyMap |
Java interface to the AST KeyMap class
- store a set of key/value pairs.
|
LutMap |
Java interface to the AST LutMap class
- transform 1-dimensional coordinates using a lookup table.
|
Mapping |
Java interface to the AST Mapping class
- inter-relate two coordinate systems.
|
Mapping.Interpolator |
Controls the interpolation scheme used by
Mapping 's
resampling methods. |
Mapping.Spreader |
Controls the spreading scheme used by
Mapping 's
rebinning methods. |
MathMap |
Java interface to the AST MathMap class
- transform coordinates using mathematical expressions.
|
MatrixMap |
Java interface to the AST MatrixMap class
- map coordinates by multiplying by a matrix.
|
NullRegion |
Java interface to the AST NullRegion class
- a boundless region within a Frame.
|
PcdMap |
Java interface to the AST PcdMap class
- apply 2-dimensional pincushion/barrel distortion.
|
PermMap |
Java interface to the AST PermMap class
- coordinate permutation Mapping.
|
Plot |
Java interface to the AST Plot class
- provide facilities for 2D graphical output.
|
PointList |
Java interface to the AST PointList class
- a collection of points in a Frame.
|
Polygon |
Java interface to the AST Polygon class
- a polygonal region within a 2-dimensional Frame.
|
PolyMap |
Java interface to the AST PolyMap class
- map coordinates using polynomial functions.
|
Prism |
Java interface to the AST Prism class
- an extrusion of a region into higher dimensions.
|
RateMap |
Java interface to the AST RateMap class
- mapping which represents differentiation.
|
Region |
Java interface to the AST Region class
- represents a region within a coordinate system.
|
ResampleFlags |
Aggregates flags which influence how Mapping.resample* methods operate.
|
SelectorMap |
Java interface to the AST SelectorMap class
- a Mapping that locates positions within one of a set of alternate
Regions.
|
ShiftMap |
Java interface to the AST ShiftMap class
- add a constant value to each coordinate.
|
SkyAxis |
Java interface to the AST SkyAxis
class.
|
SkyFrame |
Java interface to the AST SkyFrame class
- celestial coordinate system description.
|
SlaMap |
Java interface to the AST SlaMap class
- sequence of celestial coordinate conversions.
|
SpecFluxFrame |
Java interface to the AST SpecFluxFrame class
- compound spectrum/flux Frame.
|
SpecFrame |
Java interface to the AST SpecFrame class
- spectral coordinate system description.
|
SpecMap |
Java interface to the AST SpecMap class
- sequence of spectral coordinate conversions.
|
SphMap |
Java interface to the AST SphMap class
- map 3-d Cartesian to 2-d spherical coordinates.
|
Stc |
Java interface to the AST Stc class
- represents an instance of the IVOA STC class.
|
StcCatalogEntryLocation |
Java interface to the AST StcCatalogEntryLocation class
- correspond to the IVOA STCCatalogEntryLocation class.
|
StcObsDataLocation |
Java interface to the AST StcObsDataLocation class
- correspond to the IVOA ObsDataLocation class.
|
StcResourceProfile |
Java interface to the AST StcResourceProfile class
- correspond to the IVOA STCResourceProfile class.
|
StcSearchLocation |
Java interface to the AST StcSearchLocation class
- correspond to the IVOA SearchLocation class.
|
SwitchMap |
Java interface to the AST SwitchMap class
- a Mapping that encapsulates a set of alternate Mappings.
|
TimeFrame |
Java interface to the AST TimeFrame class
- time coordinate system description.
|
TimeMap |
Java interface to the AST TimeMap class
- sequence of time coordinate conversions.
|
TranMap |
Java interface to the AST TranMap class
- mapping with specified forward and inverse transformations.
|
Transformer |
Defines a custom general coordinate transformation function.
|
Transformer1 |
Defines a custom one-dimensional coordinate transformation function.
|
Transformer2 |
Defines a custom two-dimensional coordinate transformation function.
|
UinterpCalculator |
Abstract class for user-provided general interpolation functions.
|
UnitMap |
Java interface to the AST UnitMap class
- unit (null) Mapping.
|
WcsMap |
Java interface to the AST WcsMap class
- implement a FITS-WCS sky projection.
|
WinMap |
Java interface to the AST WinMap class
- map one window on to another by scaling and shifting each axis.
|
XmlChan |
Java interface to the AST XmlChan class
- I/O Channel using XML to represent Objects.
|
ZoomMap |
Java interface to the AST ZoomMap class
- zoom coordinates about the origin.
|
Exception | Description |
---|---|
AstException |
Thrown to indicate that there has been an AST error of some description.
|
AstObject
. The classes are named the same, but without the
'Ast' prefix, except for AstObject
, as a convenience to
prevent a clash with java.lang.Object
(should the same apply to Frame
to prevent a clash
with java.awt.Frame
?)
set
and set<type>
methods may be used to set attributes, but using the specific methods
provides better type safety.
boolean
, rather than int
type is
used for integer arguments/return values with boolean intent,
void astTran1( AstMapping *this, int npoint, const double xin[], int forward, double xout[] )becomes
public double[] tran1( int npoint, double[] xin, boolean forward )(
this
is implicit,
forward
is of type
boolean rather than int, and
xout
is the return value rather than a pre-allocated array
into which the result can be written),
and
int astGQch( float *chv, float *chh )becomes
public float[] qch() throws Exception(failure is indicated by throwing an Exception rather than by a zero return value, and the result is a returned array consisting of the two calculated values, rather than writing new values into locations pointed to by the arguments).
It is therefore recommended that programming is done with reference to the documentation of this package rather than of SUN/211. However, because of the strict type-checking of java compilers, it is unlikely that misconceptions about method signatures arising from familiarity with the C or Fortran versions of AST will result in compilable but incorrect code.
Where an array argument needs to be of a certain length the native code checks that it is at least of that length. If it is not, an exception is thrown to that effect. However, supplying an array which is longer than required in such cases is not regarded as an error.
AstObject
's
getAstConstant<type>
methods, though this is
intended mainly for use within this package, and somewhat deprecated
for user code. Thus the FrameSet
class contains the
declaration:
public static final int AST__CURRENT = getAstCurrentI( "AST__CURRENT" );
AstException
.
AstException provides a getStatus
method
(and defines the corresponding status values) so that the
exact nature of the error which caused the trouble can be
determined if desired. In a few cases, the java or native code
will throw an AstException not generated by the AST library too;
in this case the status will have the value AstException.SAI__ERROR.
AstException extends RuntimeException
,
so that declaring and catching
such throwables is not enforced by the compiler.
Efforts have been made to ensure that Exceptions will be thrown
in all cases rather than causing a JVM crash, but the JNI is
a bit tricky in some circumstances, and there may be cases
I haven't thought of. Please report JVM crashes (which will
almost certainly be a result of JNI code in this package rather
than an error in the JVM as they tend to report).
resample<type>
methods of Mapping
.
instanceof
instead - the class hierarchy in this
package is identical to that of AST (for the classes which appear in AST)setGrf
and getGrf
methods of
Plot
s provide this functionality.
To do this, code can use the
AstPackage.isAvailable()
method,
which indicates whether the requisite native code is available for use.
If it is, then AST processing can take place as usual, but if not
then as long as code avoids attempting to create or dereference
any instance of AstObject or its subclasses it should run
without errors (I think). Attempting to create or dereference
an AstObject when AstPackage.isAvailable returns
false will normally result in a LinkageError
of some sort.
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.