0

I have been using gdal.Warp() in Python 3.6 for some time now and have just noticed the workingType option (see here for gdal.WarpOptions()). From its definition:

workingType --- working type (gdal.GDT_Byte, etc...)

I take this to be the data type that Python converts the underlying data to, in order to complete the transformation/reprojection/warp.

My question is: What is the default working type used if one is not specified in the gdal.WarpOptions()?

If my data is in float32, does gdal keep this as float 32, or convert to another data type by default? I'm warping some fairly large files and am cautious of using too much memory etc.

2
  • I know that gdalwarp executable keeps the original data type if nothing else is defined and gdal.Warp is basically same thing as library but I can't say where this behavior is specified.
    – user30184
    Commented Aug 24, 2018 at 15:17
  • That was my suspicion too. Thanks for confirming though!
    – tda
    Commented Aug 30, 2018 at 7:23

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.