예제 #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);
        }
예제 #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);
        }
예제 #3
0
        internal double GetCoverage(string scantype, CelestialBody body)
        {
            double completed = 0d;

            if (scansatinstalled)
            {
                completed = SCANUtil.GetCoverage(SCANUtil.GetSCANtype(scantype), body);
            }
            return(completed);
        }
예제 #4
0
 internal int GetSCANtype(string s_type)
 {
     return(SCANUtil.GetSCANtype(s_type));
 }