UnitConversion

AllSource 1.3    |

Zusammenfassung

Converts pixels from one unit to another. It supports conversion of distance, speed, and temperature.

Diskussion

For more information about how this function works, see the Unit Conversion raster function.

The referenced raster dataset for the raster object is temporary. To make it permanent, you can call the raster object's save method.

Syntax

UnitConversion (raster, {from_unit}, {to_unit})
ParameterErläuterungDatentyp
raster

The input raster that will contain the converted units.

Raster
from_unit

The original unit type of the pixels.

  • MetersPerSecondMeters per second
  • KilometersPerHourKilometers per hour
  • KnotsKnots
  • FeetPerSecondFeet per second
  • MilesPerHourMiles per hour
  • CelsiusCelsius
  • FahrenheitFahrenheit
  • KelvinKelvin
  • inchesInches
  • FeetFeet
  • YardsYards
  • MilesMiles
  • NauticalMilesNautical miles
  • MillimetersMillimeters
  • CentimetersCentimeters
  • MetersMeters

(Der Standardwert ist None)

String
to_unit

The converted unit type of the pixels.

  • MetersPerSecondMeters per second
  • KilometersPerHourKilometers per hour
  • KnotsKnots
  • FeetPerSecondFeet per second
  • MilesPerHourMiles per hour
  • CelsiusCelsius
  • FahrenheitFahrenheit
  • KelvinKelvin
  • inchesInches
  • FeetFeet
  • YardsYards
  • MilesMiles
  • NauticalMilesNautical miles
  • MillimetersMillimeters
  • CentimetersCentimeters
  • MetersMeters

(Der Standardwert ist None)

String
Rückgabewert
DatentypErläuterung
Raster

The output raster.