Created
November 15, 2022 10:04
-
-
Save capan/ed5a6287a0bc5bb7f1aad12f01c45803 to your computer and use it in GitHub Desktop.
An IDL script for creating GIF file from envi files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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