Skip to content

Instantly share code, notes, and snippets.

@capan
Created November 15, 2022 10:04
Show Gist options
  • Save capan/ed5a6287a0bc5bb7f1aad12f01c45803 to your computer and use it in GitHub Desktop.
Save capan/ed5a6287a0bc5bb7f1aad12f01c45803 to your computer and use it in GitHub Desktop.
An IDL script for creating GIF file from envi files
pro envi2gif
e = ENVI()
File = FILEPATH('1990_urban.tif', Root_Dir='C:\Users\7tiffs')
image = READ_IMAGE (File)
image = REVERSE(image, 2)
filename = FILEPATH('1990_urban.gif', Root_Dir='C:\Users\30M')
WRITE_GIF, filename, bytscl(image)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment