Skip to content
Snippets Groups Projects
Select Git revision
  • 84cf03b48002cc4d2c43f753456cd63bcec11c88
  • main default protected
  • 1.8.5
  • 1.8.4
  • 1.8.3
  • 1.8.2
  • 1.8.1
  • 1.8.0
  • 1.7.14
  • 1.7.13
  • 1.7.12
  • 1.7.11
  • 1.7.10
  • 1.7.9
  • 1.7.8
  • 1.7.7
  • 1.7.6
  • 1.7.5
  • 1.7.4
  • 1.7.3
  • 1.7.2
  • 1.7.1
22 results

Coord.java

Blame
  • 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);
       }
     
    }