Select Git revision
-
Robert Butora authored
cutout: makes POS optional (volib updated 0.9.8: NONE enum removed instead parsers return null if not found in input)
Robert Butora authoredcutout: makes POS optional (volib updated 0.9.8: NONE enum removed instead parsers return null if not found in input)
Coord.java 1.01 KiB
import vo.parameter.*;
class Coord
{
String skySystem; // FIXME enum ICRS | GALACTIC
String shape = "CIRCLE"; // FIXME enum CIRCLE | RECT | POLYGON FIXME replace RECT -> RANGE
String specSystem; // FIXME enum VELO_LSRK | WAVE_Barycentric
Pos pos;
Band band;
Time time;
Pol pol;
String pixels;
Coord(String skySystem, Pos pos, String specSystem, Band band, Time time, Pol pol, String pixels)
{
this.pos = pos;
this.band = band;
this.time = time;
this.pol = pol;
this.pixels = pixels;
this.skySystem = skySystem;
this.specSystem = specSystem;
}
Coord(String skySystem, Pos pos, String specSystem, Band band, Time time, Pol pol)
{
this(skySystem, pos, specSystem, band, time, pol, null);
}
Coord(Pos pos, Band band, Time time, Pol pol, String pixels)
{
this( (pos ==null)? null : pos.system.toString(), pos,
(band==null)? null : band.system.toString(), band,
time, pol, pixels);
}
}