X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 10 Oct 2011 12:14 PM by  anon
Converting 8bit to 160bit using FIX
 0 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
10 Oct 2011 12:14 PM
    EDIT: Nevermind. As per usual when I finally resorted to asking a question, I had an idea and got this conversion to work quickly in R. This is likely a simple question, but I don't use IDL very often (at all, really). However, it seems best suited to this particular problem. I'd like to convert a bunch of 8bit flat headerless binary files (.dat) to 16bit, deleting the old 8bit files. I've figured out that the FIX command is best, however I'm having difficulty getting it to work on a folder full of files. I can get it to work on single objects, and I can do it one at a time in R, but there's over 250 images to run, so automation is better. I'd like to end up at something which takes a folder, reads each *.dat file in it, converts it to 16bit integer, and then resaves it with the same filename as the 8bit original. I hate to ask- I'm sure it's simple- but nobody I know here uses IDL and so getting started (with no background) is difficult. Background- these are the MODIS NDVI pixel reliability images, processed to 8bit flat binary. I need them to be 16bit so it'll work with some other things I'm doing.
    You are not authorized to post a reply.