|
Re: MOsaicking more than 2 images with cggeomosaic [message #91864 is a reply to message #91863] |
Sun, 06 September 2015 18:18   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Marta Yebra writes:
> I would like to mosic 18 scenes in tif (using only IDL). I wanted to used something like cggeomosaic but this routine seems to only work for two images?
There is nothing particularly magical about cgGeoMossaic. It is not a
very sophisticated program. I can think of about 10 better ways to write
it just off the top of my head. It's a memory hog, for sure. I wrote it
one afternoon to do a particular job for me and thought others might
find it useful.
In principle, you could write a loop through your files, mosaicking the
n-1 output with the nth image. I don't see any particular reason that
wouldn't work, and if this is a one-off, efficiency is probably
overrated. You could delete the intermediate files that would get
created in your loop, unless you wanted to examine them for some reason.
The loop might take 10 minutes to write. It's worth a try as a first
step. Unless, of course, this is not a one-off. Then you will probably
want to forge a different solution.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|
Re: MOsaicking more than 2 images with cggeomosaic [message #91902 is a reply to message #91864] |
Thu, 10 September 2015 22:11  |
Marta Yebra
Messages: 16 Registered: August 2012
|
Junior Member |
|
|
On Monday, 7 September 2015 11:18:54 UTC+10, David Fanning wrote:
> Marta Yebra writes:
>
>> I would like to mosic 18 scenes in tif (using only IDL). I wanted to used something like cggeomosaic but this routine seems to only work for two images?
>
> There is nothing particularly magical about cgGeoMossaic. It is not a
> very sophisticated program. I can think of about 10 better ways to write
> it just off the top of my head. It's a memory hog, for sure. I wrote it
> one afternoon to do a particular job for me and thought others might
> find it useful.
>
> In principle, you could write a loop through your files, mosaicking the
> n-1 output with the nth image. I don't see any particular reason that
> wouldn't work, and if this is a one-off, efficiency is probably
> overrated. You could delete the intermediate files that would get
> created in your loop, unless you wanted to examine them for some reason.
>
> The loop might take 10 minutes to write. It's worth a try as a first
> step. Unless, of course, this is not a one-off. Then you will probably
> want to forge a different solution.
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Thanks David!!! Yes it is a one-off process so that should work.
Have a nice weekend
Marta
|
|
|