I assume your RPC model is stored in a .geom file, looking like this :

   adjustment_0.adj_param_0.center:  0
   [...]
   adjustment_0.number_of_params:  5
   bias_error:  0
   ce90_absolute:  0
   ce90_relative:  0
   current_adjustment:  0
   height_off:  111
   height_scale:  161
   image_id:
   lat_off:  49.8424
   lat_scale:  0.0854
   line_den_coeff_00:  1
   line_den_coeff_01:  0.00119979625869347
   [...]
   line_num_coeff_19:  -5.54223300554498e-09
   line_off:  9280
   line_scale:  9280
   ll_lat:  49.7573813204289
   ll_lon:  0.672582228609574
   long_off:  0.7711
   long_scale:  0.1058
   lr_lat:  49.761288146501
   lr_lon:  0.876104881184937
   meters_per_pixel_x:  1.00026254864655
   meters_per_pixel_y:  1.00007741321884
   number_lines:  18560
   number_of_adjustments:  1
   number_samples:  14668
   polynomial_format:  B
   rand_error:  0
   rect:  0 0 14667 18559
   ref_point_hgt:  111
   ref_point_lat:  49.8424
   ref_point_line:  9280
   ref_point_lon:  0.7711
   ref_point_samp:  7334
   samp_den_coeff_00:  1
   samp_den_coeff_01:  0.00119979625869347
   [...]
   samp_num_coeff_19:  7.77990296126541e-10
   samp_off:  7334
   samp_scale:  7334

You have to rename the geom file with the same name as your sensor image and place the file in the same folder. The OTB will automatically read informations in this file.
You can check what is read by using "otbcli_ReadImageInfo -keywordlist 1"

Guillaume

On 03/23/2015 10:37 AM, Jordi Inglada wrote:
Guillaume Pasero <[email protected]> wrote:
The format for tie points file is a 'csv type' ASCII file.
The fields order is : "col row lon lat" (by the way, documentation has
a wrong order)
Separator is a tabulation.
Lines starting with '#' are ignored.

Thank you for the details. The following question is: once I have the RPC 
model, how do I tell the ortho-rectification application to use it?

Jordi

Regards,
Guillaume

On 03/16/2015 04:23 PM, Jordi Inglada wrote:

     Guillaume Pasero <[email protected]> wrote:

Hi Jordi,

gdal is saying that :
- your image has no coordinate system, which is okay for an image in
sensor geomtry


I understand.

         - the GCPs in your image are defined in the EPSG:4326
         coordinate
system, which means that the ground coordinated of your GCPs are
expressed in plain lon/lat .


OK.

         OTB needs a sensor model to reproject your image. Check with
"otbcli_ReadImageInfo -keywordlist 1" if there is a RPC model
detected.


I dont't think there is an RPC model:

-----------
Image OSSIM keywordlist (optional):
            Ossim Keyword list:

Output parameters value:
indexx: 0
indexy: 0
sizex: 25397
sizey: 20713
spacingx: 1
spacingy: 1
originx: 0.5
originy: 0.5
estimatedgroundspacingx: 900.0325928
estimatedgroundspacingy: 328.9576721
numberbands: 1
sensor:
id:
time:
ullat: 0
ullon: 0
urlat: 0
urlon: 0
lrlat: 0
lrlon: 0
lllat: 0
lllon: 0
town:
country:
rgb.r: 0
rgb.g: 1
rgb.b: 2
projectionref:
keyword:    Ossim Keyword list:
--------------

         Otherwise, you could try to estimate an RPC model from the
         GCPs
(application GenerateRPCSensorModel).


I have >250 GCPs in the image, so that should do it.
What is the format of the tie points file for this application?

Thank you.

Jordi

         Regards,
Guillaume

On 03/13/2015 03:06 PM, Jordi Inglada wrote:

     Hi all,

I have been trying to reproject Sentinel-1 imagery with OTB and I am having 
difficulties.

I am using IW-GRD (non-complex) images which are in geotiff format and contain 
GCPs. It's been a long time since I worked with image projections, so I may be 
misunderstanding things.

First of all, OTB tells me that:
Estimated ground spacing (in meters): [900.033,328.958]

which is definitely wrong. Having a look at the meta-data (with both 
ReadImageInfo and gdalinfo) I get coherent results in terms of GCPs, 
projections and sizes, but there are things which seem suspicious like the fact 
that there is no coordinate system defined and that there are 2 EPSG codes 
(gdalinfo):

----------------
Size is 25397, 20713
Coordinate System is `'
GCP Projection =
GEOGCS["WGS 84",
     DATUM["WGS_1984",
         SPHEROID["unnamed",6378137,298.257223560493,
             AUTHORITY["EPSG","4326"]],
         AUTHORITY["EPSG","6326"]],
     PRIMEM["Greenwich",0],
     UNIT["degree",0.0174532925199433],
     AUTHORITY["EPSG","4326"]]
GCP[  0]: Id=1, Info=
           (0,0) -> (3.35838036356165,44.0387571612464,573.503620014526)

etc.
-----------------



and ReadImageInformation says the same but gives me funny origin and spacing:

-----------------
         Origin :  [0.5,0.5]
         Spacing :  [1,1]
         Estimated ground spacing (in meters): [900.033,328.958]
-----------------

For geometry and EPSG-codes experts, do you think that there are problems with 
the meta-data?

I could maybe fix the problem with gdal_edit?

Has anyone already worked with Sentinel-1 geometry corrections using 
gdal/ossim/OTB?

Thank you.

Jordi

--

  *   Guillaume PASERO
    Ingénieur d'études et développement
    Business Unit E-SPACE & Geo Information - Département
    APPLICATIONS
CS Systèmes d'Information
    Parc de la Grande Plaine - 5, Rue Brindejonc des Moulinais -
    BP 15872
    31506 Toulouse Cedex 05 - FRANCE
    +33 561 17 64 21 - [email protected]
*

--


--

  *   Guillaume PASERO
    Ingénieur d'études et développement
    Business Unit E-SPACE & Geo Information - Département
    APPLICATIONS
CS Systèmes d'Information
    Parc de la Grande Plaine - 5, Rue Brindejonc des Moulinais -
    BP 15872
    31506 Toulouse Cedex 05 - FRANCE
    +33 561 17 64 21 - [email protected]
*

--

--
<www.c-s.fr>      *Guillaume PASERO*
Ingénieur d'études et développement
*Business Unit E-SPACE & Geo Information* <https://thor.si.c-s.fr/blogs/cs-blogs-business/>*- Département APPLICATIONS*

*CS Systèmes d'Information*
Parc de la Grande Plaine - 5, Rue Brindejonc des Moulinais - BP 15872
31506 Toulouse Cedex 05 - FRANCE
+33 561 17 64 21 - [email protected]

--
--
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html

You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
--- You received this message because you are subscribed to the Google Groups "otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to