Read image information

Get information about the image

Detailed description

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

Parameters

This section describes in details the parameters available for this application. Table [1] presents a summary of these parameters and the parameters keys to be used in command-line and programming languages. Application key is ReadImageInfo .

[1]Table: Parameters table for Read image information.
Parameter Key Parameter Type Parameter Description
in Input image Input image
keywordlist Boolean Boolean
outkwl Output File name Output File name
indexx Int Int
indexy Int Int
sizex Int Int
sizey Int Int
spacingx Float Float
spacingy Float Float
originx Float Float
originy Float Float
estimatedgroundspacingx Float Float
estimatedgroundspacingy Float Float
numberbands Int Int
sensor String String
id String String
time String String
ullat Float Float
ullon Float Float
urlat Float Float
urlon Float Float
lrlat Float Float
lrlon Float Float
lllat Float Float
lllon Float Float
town String String
country String String
rgb Group Group
rgb.r Int Int
rgb.g Int Int
rgb.b Int Int
projectionref String String
keyword String String
gcp Group Group
gcp.count Int Int
gcp.proj String String
gcp.ids String list String list
gcp.info String list String list
gcp.imcoord String list String list
gcp.geocoord String list String list
inxml XML input parameters file XML input parameters file
outxml XML output parameters file XML output parameters file

Input Image: Input image to analyse.

Display the OSSIM keywordlist: 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: This option allows extracting the OSSIM keywordlist of the image into a geom file.

Start index X: X start index.

Start index Y: Y start index.

Size X: X size (in pixels).

Size Y: Y size (in pixels).

Pixel Size X: Pixel size along X (in physical units).

Pixel Size Y: Pixel size along Y (in physical units).

Image Origin X: Origin along X.

Image Origin Y: Origin along Y.

Estimated ground spacing X: Estimated ground spacing along X (in meters).

Estimated ground spacing Y: Estimated ground spacing along Y (in meters).

Number Of Bands: Number of bands.

Sensor id: Sensor identifier.

Image id: Image identifier.

Acquisition time: Acquisition time.

Upper left latitude: Latitude of the upper left corner.

Upper left longitude: Longitude of the upper left corner.

Upper right latitude: Latitude of the upper right corner.

Upper right longitude: Longitude of the upper right corner.

Lower right latitude: Latitude of the lower right corner.

Lower right longitude: Longitude of the lower right corner.

Lower left latitude: Latitude of the lower left corner.

Lower left longitude: Longitude of the lower left corner.

Nearest town: Main town near center of image.

Country: Country of the image.

[Default RGB Display]: This group of parameters provide information about the default rgb composition.

  • Red Band: Red band Number.
  • Green Band: Green band Number.
  • Blue Band: Blue band Number.

Projection: Projection Coordinate System.

Keywordlist: Image keyword list.

[Ground Control Points information]: This group of parameters provide information about all GCPs.

  • GCPs Number: Number of GCPs.
  • GCP Projection: Projection Coordinate System for GCPs.
  • GCPs Id: GCPs identifier.
  • GCPs Info: GCPs Information.
  • GCPs Image Coordinates: GCPs Image coordinates.
  • GCPs Geographic Coordinates: GCPs Geographic Coordinates.

Load otb application from xml file: Load otb application from xml file.

Save otb application to xml file: Save otb application to xml file.

Example

To run this example in command-line, use the following:

otbcli_ReadImageInfo -in QB_Toulouse_Ortho_XS.tif

To run this example from Python, use the following code snippet:

#!/usr/bin/python

# Import the otb applications package
import otbApplication

# The following line creates an instance of the ReadImageInfo application
ReadImageInfo = otbApplication.Registry.CreateApplication("ReadImageInfo")

# The following lines set all the application parameters:
ReadImageInfo.SetParameterString("in", "QB_Toulouse_Ortho_XS.tif")

# The following line execute the application
ReadImageInfo.ExecuteAndWriteOutput()

Limitations

None

Authors

This application has been written by OTB-Team.