18 May 2010 11:44 AM |
|
i have many map that i want to convert from gographic to utm , the number of map is so big it will take too time if i convert it map by map , i hope i can find a solution so i convert all map projection wich are in the same folder ..hope that this solution exist on envi !
|
|
|
|
Deleted User New Member
Posts:  
18 May 2010 12:36 PM |
|
Hi souhail2006,
What you are going to have to look at is something called ENVI batch programming. In essence you will have to write a program that will open an image file, locate the correct map information (perhaps in a text file) do the conversion save the file out and then do this again in what is called a loop. For the quantity of files you have and the fact that each file has potentially distinct coordinate information will make your task quite complex. Keep in mind that you need to build in error checking capabilites to make sure you don't create poor results or have images in the wrong location. If at this point you are still interested in the challenge you could start by looking in the ENVI Help for: ENVI_CONVERT_PROJECTION_COORDINATES
Although the associated example is quite simple it should give you an idea of the principles involved.
It sounds like you may be new to the programming environment. If that is the case I can offer some advice that may simplify your task:
1) Do each map one at a time using a program similar to the one in the Help or
2) you could try using the ENVI Queue Manager. To find out how to use that you should refer to the ENVI Help.
... I have run into a similar situation and it ended up taking more time learning all about the code, then writing it, then debugging instead of doing it manually. Good Luck!
Ciao
|
|
|
|
Deleted User New Member
Posts:  
19 May 2010 03:54 AM |
|
Thanks for reeply , i don't know how programming works in IDL can you help me with an example so i will know how to start..
|
|
|
|
Deleted User New Member
Posts:  
19 May 2010 08:13 AM |
|
Hi souhail2006,
If you look in your ENVI Help and click on the Contents tab and then type in: ENVI_CONVERT_PROJECTION_COORDINATES
...what do you find? You should find an explanation of what the above means as well as a complete program for you to start with.
I don't know what version of ENVI/IDL you have but in the ENVI 4.7 Help click on the Contents tab and look under: Working with ENVI> ENVI Programmers Guide ...for more information on programming in ENVI.
If you have experience programming in an another language (C++, Visual Basic) it will help you will understand the basic concepts of programming in ENVI. If you have never done any programming you may want to consider getting help from friends or colleagues. You may also consider using the internet to search for more information.
Ciao
|
|
|
|