from tiff to img in modeller
By sheamet in ERDAS Software Forum
Hi,
I have a landsat image in tiff format and want to import all bands to the "img" format instead of one by one in modeller. Is it possible to do this and how can be a string written? thanks...Sheamet
----------------------------------
You were sent this email because you opted to receive email notifications when someone created a new thread, or replied to a topic within this forum, ERDAS Software Forum.
To unsubscribe:
Re: from tiff to img in modeller
By CaroTeM in ERDAS Software Forum
I'll try to help, as I understand, you want import all bands in tiff to img at same time without doing it one by one, then what you have to do is: when you are importing the images and the import tiff window is open chose the option "batch" , then chose "modify commands automatically" click next, theres a step in te process where you can chose the files you want to add , look for the icon "Selects files to add" there you can chose all the files you want to import, start the process and all the files gonna be imported to .img, it might take some time
----------------------------------
You were sent this email because you opted to receive email notifications when someone responded to this thread.
By Donn Rodekohr in ERDAS Software Forum
Sheamet,
TIFF images are read directly within all ERDAS programs, no import is necessary.
If your Landsat image was delivered as a multi-file TIFF, that is band 1 is in one file (B1.tif), band 2 in another (B2.tif), etc., then if you want access it single file you must first LAYERSTACK the file to create a multiband image. Each band would be an input file in the layerstack function and the output would be a multiband image (either .img or .tif, your choice).
Within the modeler you can also use the STACKLAYER function to do the same thing. You will have to select each tiff band as input, however.
By Rutger in ERDAS Software Forum
Or open the tiff files in the modeler as a Virtual Stack. The 'Open File' dialog allows you to select multiple files if you hold the ctrl key while selecting. First select band1, then 2 etc. If you then go to the 'multiple' tab, still in the 'open file' dialog, you will notice the option to create a virtual stack. Choose a location where the virtual stack should be saved, and then you're done. To be a bit more comfortable about this, you can open the .vsk file in a text editor (notepad) and explore the selected layers and there order, and you can also add or remove layers this way.