Thank you very much Perter Macros. Even though confusion you answered my question 80%.
I managed to look at the Mapproj.bat careful in the bin folder and it will work for me. I have developed a .NET service running on our server. It has a file watcher module to watch ENVISAT data as it comes in any time of the day. The moment an image comes in, it should executes Mapproj.bat to project the image and save it another directory as a projected image. Another *.bat tool then is to read the attributes(Name, Description, Type, Date of capture, Numbers of bands ect) of the projected image and generate metadata for the particular image as an xml file for later processing to be posted in the portal.
The arguments for Mapproj.bat to project the image are defined in 3 scenario XML files. The 3 scenario XML files are;
Case 1
1
2
3<?xml version="1.0" encoding="ISO-8859-1"?>
4<RequestList>
5 <Request type="MAP_PROJECTION">
6
7 <Parameter name="projection_name" value="Geographic Lat/Lon"/>
8 <Parameter name="projection_parameters" value=""/>
9
10 <!--
11 Resampling Method parameter:
12 Default value: NEAREST_NEIGHBOUR
13 Possible values: NEAREST_NEIGHBOUR, BILINEAR_INTERPOLATION, CUBIC_CONVOLUTION
14 -->
15 <Parameter name="resampling_method" value="NEAREST_NEIGHBOUR"/>
16
17 <!--
18 Orthorectification parameters:
19 The parameter "orthorectification" is optional. "false" is the default value.
20 The parameter "orthorectification_dem" is optional.
21 -->
22 <Parameter name="orthorectification" value="false"/>
23 <Parameter name="orthorectification_dem" value="GETASSE30"/>
24
25 <Parameter name="pixel_size_x" value="0.01"/>
26 <Parameter name="pixel_size_y" value="0.01"/>
27 <Parameter name="fit_output" value="true"/>
28
29 <Parameter name="log_to_output" value="false"/>
30 <Parameter name="log_prefix" value="mosaic"/>
31
32 <InputProduct file="D:\imageData\MER_RR__2PNPDK20090613_082458_000021622079_00465_38094_3763.N1"/>
33 <OutputProduct file="D:\imageData\projctdImg\test.dim" format="BEAM-DIMAP"/>
34 </Request>
35</RequestList>
Case2
1
2
3<?xml version="1.0" encoding="ISO-8859-1"?>
4<RequestList>
5 <Request type="MAP_PROJECTION">
6
7 <Parameter name="projection_name" value="Geographic Lat/Lon"/>
8 <Parameter name="projection_parameters" value=""/>
9
10 <Parameter name="pixel_size_x" value="0.013115006"/>
11 <Parameter name="pixel_size_y" value="0.013115006"/>
12 <Parameter name="northing" value="-42.464428"/>
13 <Parameter name="easting" value="31.9216"/>
14 <Parameter name="output_width" value="1296"/>
15 <Parameter name="output_height" value="897"/>
16
17 <InputProduct file="D:\imageData\MER_RR__2PNPDK20090613_071742_000001572079_00464_38093_3449.N1"/>
18 <OutputProduct file="D:\imageData\projctdImg\test.dim" format="BEAM-DIMAP"/>
19
20 <Parameter name="log_to_output" value="false"/>
21 <Parameter name="log_prefix" value="mosaic"/>
22 </Request>
23</RequestList>
Case 3
1
2
3
4<?xml version="1.0" encoding="ISO-8859-1"?>
5<RequestList>
6 <Request type="MAP_PROJECTION">
7
8 <Parameter name="projection_name" value="Geographic Lat/Lon"/>
9 <Parameter name="projection_parameters" value=""/>
10 <Parameter name="pixel_size_x" value="0.02"/>
11 <Parameter name="pixel_size_y" value="0.02"/>
12
13 <Parameter name="west_lon" value="-5.0"/>
14 <Parameter name="east_lon" value="6.0"/>
15 <Parameter name="north_lat" value="45.0"/>
16 <Parameter name="south_lat" value="33.0"/>
17
18 <Parameter name="log_to_output" value="false"/>
19 <Parameter name="log_prefix" value="mosaic"/>
20
21 <InputProduct file="D:\imageData\MER_RR__2PNPDK20090613_082458_000021622079_00465_38094_3763.N1"/>
22 <OutputProduct file="D:\imageData\projctdImg\test.dim" format="BEAM-DIMAP"/>
23
24 </Request>
25</RequestList>
My problem now is how do i get these parameters from a raw image;-
- projection_parameters
- pixel_size_x
- pixel_size_y
- west_lon
- east_lon
- north_lat
- south_lat
- center_northing
- center_easting
I can get the height and width of the raw image but i haven't known yet to read the above parameters from an image?
The products we receive do not cover one area, but different parts of African continent. These are level 2 MERIS, ASAR and AATSR data.