ReadImageInfo

Get information about the image

Description

Display information about the input image like: image size, origin, spacing, metadata, projections…

This application has several output images and supports “multi-writing”. Instead of computing and writing each image independently, the streamed image blocks are written in a synchronous way for each output. The output images will be computed strip by strip, using the available RAM to compute the strip size, and a user defined streaming mode can be specified using the streaming extended filenames (type, mode and value). Note that multi-writing can be disabled using the multi-write extended filename option: &multiwrite=false, in this case the output images will be written one by one. Note that multi-writing is not supported for MPI writers.

Parameters

Input Image -in image Mandatory
Input image to analyse

Display the OSSIM keywordlist -keywordlist bool Default value: false
Output the OSSIM keyword list. It contains metadata information (sensor model, geometry ). Information is stored in keyword list (pairs of key/value)

Write the OSSIM keywordlist to a geom file -outkwl filename [dtype]
This option allows extracting the OSSIM keywordlist of the image into a geom file.

Start index X -indexx int Mandatory
X start index

Start index Y -indexy int Mandatory
Y start index

Size X -sizex int Mandatory
X size (in pixels)

Size Y -sizey int Mandatory
Y size (in pixels)

Pixel Size X -spacingx float Mandatory
Pixel size along X (in physical units)

Pixel Size Y -spacingy float Mandatory
Pixel size along Y (in physical units)

Image Origin X -originx float Mandatory
Origin along X

Image Origin Y -originy float Mandatory
Origin along Y

Estimated ground spacing X -estimatedgroundspacingx float Mandatory
Estimated ground spacing along X (in meters).

Estimated ground spacing Y -estimatedgroundspacingy float Mandatory
Estimated ground spacing along Y (in meters).

Number Of Bands -numberbands int Mandatory
Number of bands

Data type -datatype string Mandatory
Data type

Sensor id -sensor string Mandatory
Sensor identifier

Image id -id string Mandatory
Image identifier

Acquisition time -time string Mandatory
Acquisition time.

Upper left latitude -ullat float Default value: 0
Latitude of the upper left corner.

Upper left longitude -ullon float Default value: 0
Longitude of the upper left corner.

Upper right latitude -urlat float Default value: 0
Latitude of the upper right corner.

Upper right longitude -urlon float Default value: 0
Longitude of the upper right corner.

Lower right latitude -lrlat float Default value: 0
Latitude of the lower right corner.

Lower right longitude -lrlon float Default value: 0
Longitude of the lower right corner.

Lower left latitude -lllat float Default value: 0
Latitude of the lower left corner.

Lower left longitude -lllon float Default value: 0
Longitude of the lower left corner.

Nearest town -town string Mandatory
Main town near center of image

Country -country string Mandatory
Country of the image

Default RGB Display

This group of parameters provide information about the default rgb composition.

Red Band -rgb.r int Default value: 1
Red band Number

Green Band -rgb.g int Default value: 2
Green band Number

Blue Band -rgb.b int Default value: 3
Blue band Number


Projection -projectionref string Mandatory
Projection Coordinate System

Keywordlist -keyword string Mandatory
Image keyword list

Ground Control Points information

This group of parameters provide information about all GCPs.

GCPs Number -gcp.count int Default value: 0
Number of GCPs

GCP Projection -gcp.proj string Mandatory
Projection Coordinate System for GCPs

GCPs Id -gcp.ids string1 string2... Mandatory
GCPs identifier

GCPs Info -gcp.info string1 string2... Mandatory
GCPs Information

GCPs Image Coordinates -gcp.imcoord string1 string2... Mandatory
GCPs Image coordinates

GCPs Geographic Coordinates -gcp.geocoord string1 string2... Mandatory
GCPs Geographic Coordinates

Examples

From the command-line:

otbcli_ReadImageInfo -in QB_Toulouse_Ortho_XS.tif

From Python:

import otbApplication

app = otbApplication.Registry.CreateApplication("ReadImageInfo")

app.SetParameterString("in", "QB_Toulouse_Ortho_XS.tif")

app.ExecuteAndWriteOutput()