Ejemplo n.º 1
0
        internal int GetSCANtype(string s_type)
        {
            if (Enum.TryParse(s_type, true, out SCANtype scanType))
            {
                return(SCANUtil.GetSCANtype(scanType.ToString()));
            }

            throw new KOSException("{0} is not a valid scan type.  Use GetScanNames for valid types.", s_type);
        }
Ejemplo n.º 2
0
        internal bool IsCovered(double lon, double lat, CelestialBody body, string scan_type)
        {
            bool iscovered = false;

            if (scansatinstalled)
            {
                iscovered = SCANUtil.isCovered(lon, lat, body, SCANUtil.GetSCANtype(scan_type));
            }
            return(iscovered);
        }
Ejemplo n.º 3
0
        internal double GetCoverage(string scantype, CelestialBody body)
        {
            double completed = 0d;

            if (scansatinstalled)
            {
                completed = SCANUtil.GetCoverage(SCANUtil.GetSCANtype(scantype), body);
            }
            return(completed);
        }
Ejemplo n.º 4
0
 internal int GetSCANtype(string s_type)
 {
     return(SCANUtil.GetSCANtype(s_type));
 }