AnsweredAssumed Answered

16bit dem image export?

Question asked by RyuMaster2 on Oct 29, 2016
Latest reply on Oct 29, 2016 by RyuMaster2

Hi! Is there any way (at least theoretically, using python) to export 16bit float image instead of typical 8bit png raster?

 

Right now I am using this to export:

 

mxd = arcpy.mapping.MapDocument("CURRENT")
df = arcpy.mapping.ListDataFrames(mxd)[0]
for pageNum in range(1, mxd.dataDrivenPages.pageCount + 1):
mxd.dataDrivenPages.currentPageID = pageNum
arcpy.mapping.ExportToPNG (mxd, r"D:\mosaicrasterdata\FinalExport" + str(mxd.dataDrivenPages.pageRow.Name) + ".png", df,10016,10016,1210, 100, True)
del mxd

 

but none of the exportToPNG or exportToTIFF has options to deal with 16bit or 32 bit files, selection is only limited to:

 

  • 24-BIT_TRUE_COLOR —24-bit true color
  • 8-BIT_PALETTE —8-bit palette
  • 8-BIT_GRAYSCALE —8-bit grayscale
  • 1-BIT_MONOCHROME_MASK —1-bit monochrome mask
  • 1-BIT_MONOCHROME_THRESHOLD —1-bit monochrome threshold

 

Maybe I can somehow obtain that layour image bit data manually and save it to file myself?

Outcomes