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.

  • 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 Aug 24 '18 at 15:17
  • That was my suspicion too. Thanks for confirming though! – tda Aug 30 '18 at 7:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.