fmeobjects.FMERasterTools.convertBandInterpretation
- FMERasterTools.convertBandInterpretation(interpretation, band, parms)
Converts data type of a band.
Note that this method is similar to
convertInterpretation
with a mode ofFME_REINTERPRET_MODE_BAND
, except that this operates directly on a single band, rather than on all the selected bands of a raster.- Parameters:
interpretation (int) –
Desired interpretation of the raster after processing. Choose one of:
FME_INTERPRETATION_NULL
FME_INTERPRETATION_REAL64
FME_INTERPRETATION_REAL32
FME_INTERPRETATION_UINT64
FME_INTERPRETATION_INT64
FME_INTERPRETATION_UINT32
FME_INTERPRETATION_INT32
FME_INTERPRETATION_UINT16
FME_INTERPRETATION_INT16
FME_INTERPRETATION_UINT8
FME_INTERPRETATION_INT8
FME_INTERPRETATION_GRAY8
FME_INTERPRETATION_GRAY16
FME_INTERPRETATION_RED8
FME_INTERPRETATION_RED16
FME_INTERPRETATION_GREEN8
FME_INTERPRETATION_GREEN16
FME_INTERPRETATION_BLUE8
FME_INTERPRETATION_BLUE16
FME_INTERPRETATION_ALPHA8
FME_INTERPRETATION_ALPHA16
band (FMEBand) – The band object to apply conversion to.
parms (dict[str, str]) – (Optional) The parms parameter contains the information on how to do specific conversions. Same parameters as in
convertInterpretation()
.
- Return type:
- Returns:
The band after converting band interpretation.
- Raises:
FMEException – An exception is raised if an error occurred.