I have ENVI files one ASCII file .hdr and a flat_binary raster file which is a file without an extension I'd like to convert them to TIFF files These are the steps I followed:
- Rename flat_binary raster file by adding “.dat”
- Keep the pair of files in the same directory
- Then, I wrote this code
import arcpy
ndvi_file="G:\\data\\test\\MYD13A2_A2006201_MED_1km.dat"
ndvi_tiff_file="G:\\data\\test\\data_tiff"
arcpy.RasterToOtherFormat_conversion(ndvi_file, ndvi_tiff_file, "TIFF")
But I didn't get the converted File I'm getting this error
Failed to convert: <built-in function input>. ERROR 999999: Error executing function.
Failed to execute (CopyRaster)
Is there anything missing?
ndvi_tiff_file
a workspace path or file path? It should be a workspace path.