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); }
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); }
internal double GetCoverage(string scantype, CelestialBody body) { double completed = 0d; if (scansatinstalled) { completed = SCANUtil.GetCoverage(SCANUtil.GetSCANtype(scantype), body); } return(completed); }
internal int GetSCANtype(string s_type) { return(SCANUtil.GetSCANtype(s_type)); }