Service#
- class ScanSat#
This service provides the scan data, scanners and maps of SCANsat.
Note
The readouts at a position return
nullwhere the scans they need have not covered it, as the maps of the mod show nothing there.- double Coverage (SpaceCenter.CelestialBody body, ScanType type)#
The fraction of a body covered by scan types, between 0 and 1. For a combination, the mean coverage of its scan types, so 1 only once every one of them is complete. SCANsat reports at most 0.999 until the coverage is complete. Throws an exception if no scan types are given.
- Parameters:
body – The body.
type – The scan types.
- Game Scenes:
Space Center, Flight, Tracking Station
- bool IsCovered (SpaceCenter.CelestialBody body, double latitude, double longitude, ScanType type)#
Whether at least one of the scan types covers a position on a body. For a combination, this is
truewhere any one of its scan types covers the position, and not only where all of them do. Throws an exception if no scan types are given.- Parameters:
body – The body.
latitude – The latitude, in degrees.
longitude – The longitude, in degrees.
type – The scan types.
- Game Scenes:
Space Center, Flight, Tracking Station
- double? Elevation (SpaceCenter.CelestialBody body, double latitude, double longitude)#
The height of the terrain relative to sea level at a position, in meters, or
nullif no altimetry scan covers it. It is negative over the sea floor. With low resolution altimetry only, the height is rounded toward zero to a multiple of 500 meters.- Parameters:
body – The body.
latitude – The latitude, in degrees.
longitude – The longitude, in degrees.
- Game Scenes:
Space Center, Flight, Tracking Station
- double? Slope (SpaceCenter.CelestialBody body, double latitude, double longitude)#
The terrain slope at a position, in degrees, or
nullif high resolution altimetry does not cover it. The slope is averaged over points 5 meters apart.- Parameters:
body – The body.
latitude – The latitude, in degrees.
longitude – The longitude, in degrees.
- Game Scenes:
Space Center, Flight, Tracking Station
- string Biome (SpaceCenter.CelestialBody body, double latitude, double longitude)#
The name of the biome at a position, or
nullif the biome scan does not cover it. Throws an exception if the body has no biomes.- Parameters:
body – The body.
latitude – The latitude, in degrees.
longitude – The longitude, in degrees.
- Game Scenes:
Space Center, Flight, Tracking Station
- double? ResourceAbundance (SpaceCenter.CelestialBody body, double latitude, double longitude, string resource)#
The abundance of a resource at a position, between 0 and 1, or
nullif no resource scan covers it. With the low resolution scan only, the abundance is rounded down to a multiple of 0.05. Throws an exception if SCANsat’s resource scanning is off, or SCANsat does not map the resource.- Parameters:
body – The body.
latitude – The latitude, in degrees.
longitude – The longitude, in degrees.
resource – The name of the resource. See
ScanSat.Resources.
- Game Scenes:
Space Center, Flight, Tracking Station
- IList<Anomaly> Anomalies (SpaceCenter.CelestialBody body)#
The anomalies on a body found by either anomaly scan.
- Parameters:
body – The body.
- Game Scenes:
Space Center, Flight, Tracking Station
- IList<string> Resources { get; }#
The names of the resources SCANsat maps. Empty if SCANsat’s resource scanning is off.
- Game Scenes:
All
- byte[] Map (SpaceCenter.CelestialBody body, MapType type, int width = 720, MapProjection projection = MapProjection.Rectangular, bool color = true, string resource = "", StdLib.ImageFormat format = StdLib.ImageFormat.PNG, int quality = 75)#
A map of a body from the scan data, as an image. The map is half as high as it is wide. Building it takes several game frames. Throws an exception if SCANsat cannot render the map, as when its visual maps are switched off.
- Parameters:
body – The body.
type – The type of map.
width – The width of the image in pixels, between 360 and 1440.
projection – The projection.
color – Whether the map is in color, or in grayscale.
resource – The name of a resource to overlay, or an empty string for none. See
ScanSat.Resources.format – The format of the image.
quality – The quality of a JPEG image, from 1 to 100.
- Game Scenes:
Space Center, Flight, Tracking Station
- Scanner Scanner (SpaceCenter.Part part)#
The scanner on a part. Throws an exception if the part has no SCANsat scanner.
- Parameters:
part – The part.
- Game Scenes:
Flight
- IList<Scanner> Scanners (SpaceCenter.Vessel vessel)#
The SCANsat scanners on a vessel.
- Parameters:
vessel – The vessel.
- Game Scenes:
Flight
- bool BackgroundScanning { get; }#
Whether scanners scan while their vessel is not the active vessel. A setting of SCANsat.
- Game Scenes:
All
- bool DaylightCheck { get; }#
Whether scanners that need light stop scanning in darkness. A setting of SCANsat.
- Game Scenes:
All
- bool InstantResourceScan { get; }#
Whether the stock orbital survey fills the high resolution resource scan of a body at once. A setting of SCANsat.
- Game Scenes:
All
- bool StockResourceScan { get; }#
Whether the stock resource scanners work. A setting of SCANsat.
- Game Scenes:
All
- enum ScanType#
A set of scan types. Each scan type has its own coverage of a body.
Note
The values may be combined. A flags enumeration. Flags Enumerations shows how to combine its values.
- None#
No scan types.
- AltimetryLoRes#
Low resolution altimetry, the terrain height in steps of 500 meters.
- AltimetryHiRes#
High resolution altimetry, the terrain height and slope.
- VisualLoRes#
Low resolution visual imaging.
- VisualHiRes#
High resolution visual imaging.
- Biome#
Biomes.
- Anomaly#
The positions of anomalies.
- AnomalyDetail#
The positions and names of anomalies, from close range.
- ResourceLoRes#
Low resolution resource abundance, in steps of 5%.
- ResourceHiRes#
High resolution resource abundance.
- Altimetry#
Both altimetry scans.
- Visual#
Both visual scans.
- Anomalies#
Both anomaly scans.
- Resources#
Both resource scans.
- All#
Every scan type.