Professional Documents
Culture Documents
ISAT - Appendix A - ASCII Data File Formats
ISAT - Appendix A - ASCII Data File Formats
File Conventions
The following comments apply to project ASCII data files. Any keyword fields that are italicized are valid but obsolete
fields.
# ~ comment lines
#
# Conventions:
# STRING is used to specify an ascii string with no white space
# C is used to specify a printable character (non-white space)
# 1 is used to denote an integer number
# 9.9 is used to denote a decimal number
# [] is used to specify optional fields
# {} is used to denote that contents may appear any number of times
# (including 0 times)
# "" is used to specify exactly what is inside the quotes
#
# ( | ) is used to denote that exactly 1 of these is required (more than
# 2 choices may exist)
#
# . Any number of the above line may be present. This will usually
# . be followed by a copy of the original line.
#
#
Project File
The Project file contains setup information for the orientation process.
# **************************************************************************
# PROJECT FILE
# **************************************************************************
#
# Notes:
# This file follows a general block format, roughly described by the
# following rules:
# (1) All data appears in "blocks," which consist of a
# "begin blockname" line, an "end blockname" line, and
# intervening lines possibly containing data.
# (2) Comment lines (those beginning with a #) and blank lines may
# appear anywhere and are ignored.
# (3) Within a line any sequence of spaces and tabs is a separator
# equivalent to a single space.
# (4) Case is ignored throughout; in particular, keyword matching
# is case-insensitive.
#
file:///C:/Users/User/AppData/Local/Temp/~hh51EB.htm 15-03-2023
Appendix A: ASCII Data File Formats Page 2 of 13
file:///C:/Users/User/AppData/Local/Temp/~hh51EB.htm 15-03-2023
Appendix A: ASCII Data File Formats Page 3 of 13
file:///C:/Users/User/AppData/Local/Temp/~hh51EB.htm 15-03-2023
Appendix A: ASCII Data File Formats Page 4 of 13
user_point_pad1: C
# any number of user points are allowed
# if x,y values exceed absolute value of 1.0 for any value then it is assumed
# that the values are in mm. If the values are between 0 and 1.0, inclusive,
# then they are assumed to be percentages of the film format (or image format,
# as appropriate).
user_point: STRING 9.9 9.9
.
.
user_point: STRING 9.9 9.9
end project_parameters
Camera File
The Camera file contains camera information for the orientation processes.
# **************************************************************************
# CAMERA FILE
# **************************************************************************
#
# Notes:
# This file follows a general block format, roughly described by the
# following rules:
# (1) All data appears in "blocks," which consist of a
# (4) Case is ignored throughout; in particular, keyword matching
# is case-insensitive.
#
# One type of block may appear in this file; the blockname is
# "camera_parameters". There can be any number of blocks of
# camera_parameters (one for each camera).
# for processing any photo information.
# *************************************************************************
begin camera_parameters STRING
#Note: If camera id is not specified, a numeric id will be assigned by default.
# the version that wrote this file
version: STRING
# focal_length: (> 0) in mm
focal_length: 9.9
# principle point of auto-collimation: (x y) in mm. default is 0 0
ppac: 9.9 9.9
# principle point of best-symmetry: (x y) in mm. default is 0 0
ppbs: 9.9 9.9
# film_format: (x y; > 0) in mm. default is 230 230
film_format: 9.9 9.9
# film_format_scale: (>0) default is 1
film_format_scale: 9.9
# fiducial: (id x y in mm); list until done
fiducial: STRING 9.9 9.9
file:///C:/Users/User/AppData/Local/Temp/~hh51EB.htm 15-03-2023
Appendix A: ASCII Data File Formats Page 5 of 13
.
.
fiducial: STRING 9.9 9.9
# reseau: (id x y in mm); list until done
reseau: STRING 9.9 9.9
.
.
reseau: STRING 9.9 9.9
# lens_distortion_flag: default is off
lens_distortion_flag: ("off" | "on")
# Note: Lens distortion is computed as defined in the Manual of Photogrammetry.
# input_mode: (default is linear)
input_mode: ("linear" | "angular")
# distortion_spacing: (> 0) in mm or degrees (spacing for distortion table)
# single value for even increment or list for each increment
#Note:an illegal distortion_spacing will result with the lens_distortion_flag
# being turned off automatically with no warning.
distortion_spacing: 9.9 {9.9}
#Note: Concerning the below values/keywords. The precedence used here is:
# distortions, quad1-4, coeffs, and finally coeffs_quad1-4
# distortions: (list of distortions at distortion_spacing) in microns
# list can be continued to several lines
distortions: 9.9 {9.9}
.
.
distortions: 9.9 {9.9}
# quad1-4 are same as distortions but allows quadrant-wise distortion
# corrections.
quad1: 9.9 {9.9}
.
.
quad1: 9.9 {9.9}
quad2: 9.9 {9.9}
.
.
quad2: 9.9 {9.9}
quad3: 9.9 {9.9}
.
.
quad3: 9.9 {9.9}
quad4: 9.9 {9.9}
.
.
quad4: 9.9 {9.9}
# coeffs: k1 k2 k3 (real values) for sym. lens distortion
coeffs: 9.9 9.9 9.9
file:///C:/Users/User/AppData/Local/Temp/~hh51EB.htm 15-03-2023
Appendix A: ASCII Data File Formats Page 6 of 13
Photo File
The Photo file contains the results of photo-specific processing, such as point measurements and photo parameters.
# **************************************************************************
# PHOTO FILE
# **************************************************************************
# Description: This file follows the same general block format rules
# as the PROJECT file. In this case there are two
# block types as indicated below, each of which may
# be repeated any number of times in any order.
#
# A new block type, coincidentally named "block", has been
# added to the end of the PHOTO file to define which photos
# are contained within which block. A block can contain
# 0 photos; blocks can also contain photos which are
# also contained within other blocks.
begin photo_measurements STRING [stripid STRING] [version STRING]
# where the first string is the photo id and the second is the strip id.
# Note: photoid & stripid may not contain the tilde character (~).
# id x-raw-coords y-raw-coords [x-refined-coords y-refined-coords status]
# point status: 1=measured, 2 = withheld
STRING 9.9 9.9 [9.9 9.9 1]
.
.
STRING 9.9 9.9 [9.9 9.9 1]
# Note: If version is 2.0 or greater, then the format is as follows:
# id x-raw-coords y-raw-coords [x-refined-coords y-refined-coords status tag]
# point status: 1=measured, 2 = withheld
# tag: any integer.
STRING 9.9 9.9 [9.9 9.9 1 234]
file:///C:/Users/User/AppData/Local/Temp/~hh51EB.htm 15-03-2023
Appendix A: ASCII Data File Formats Page 7 of 13
end photo_measurements
begin photo_parameters STRING [stripid STRING]
# where the first string is the photo id and the second is the strip id.
# Note: photoid & stripid may not contain the tilde character (~).
# the version that wrote this file
version: STRING
# the camera_name must be in the project list of cameras. If not supplied,
# the most recently used camera is used as default. If the camera_name
# is not in the project list of cameras, this photo is not loaded.
camera_name: STRING
# camera_orientation has a default of 0, or the most recently assigned
# value. It can be entered by quadrant or degrees.
camera_orientation: ( ("1"|"0") | ("2"|"90") | ("3"|"180") | ("4"| "270") )
# The raster image file name and directory as d:\images\image.tif
# If a single file use image_id only, otherwise use the others as well.
image_id: STRING
green_id: STRING
blue_id: STRING
# The viewing geometry of this photo as oblique or nadir.
view_geometry: STRING ("oblique" | "nadir")
# io_to_full_image is a list of affine IO parameters for ??????????
io_to_full_image: 9.9 9.9 9.9 9.9 9.9 9.9
# io_to_full_image: a0 b0 a1 a2 b1 b2
# |col| |a1 a2| |x| |a0|
# | | = | | * | | + | |
# |row| |b1 b2| |y| |b0|
# or col = a1 * x + a2 * y + a0
# row = b1 * x + b2 * y + b0
# The default standard deviation of measurement for this photo. Optional.
std_dev: 9.9 (>0)
# type_of_IO is an ascii definition of the type of IO used.
type_of_IO: ("RIGID_BODY" | "CONFORMAL" | "AFFINE" | "PROJECTIVE")
# IO_parameters is a list of IO parameters dependent upon the type_of_IO.
# 6 parameters for CONFORMAL, AFFINE, RIGID_BODY
# 8 parameters for PROJECTIVE
IO_parameters: 9.9 9.9 9.9 9.9 9.9 9.9 [9.9 9.9]
# If not PROJECTIVE
# IO_parameters: a0 b0 a1 a2 b1 b2
# |col| |a1 a2| |x| |a0|
# | | = | | * | | + | |
# |row| |b1 b2| |y| |b0|
# or col = a1 * x + a2 * y + a0
# row = b1 * x + b2 * y + b0
# If PROJECTIVE
# IO_parameters: a0 a1 a2 b0 b1 b2 c0 c1
# den = 1.0 + c0 * x + c1 * y
file:///C:/Users/User/AppData/Local/Temp/~hh51EB.htm 15-03-2023
Appendix A: ASCII Data File Formats Page 8 of 13
file:///C:/Users/User/AppData/Local/Temp/~hh51EB.htm 15-03-2023
Appendix A: ASCII Data File Formats Page 9 of 13
DRIVE_TYPE: ("COLLINEARITY"|"2D"|"RATIONAL_FUNCTION")
# DRIVE_PARAMETERS: (up to 90 doubles on multiple lines)
# if DRIVE_TYPE is COLLINEARITY
# the parameter order is the same as for GIVEN_PARAMETERS.
# if DRIVE_TYPE is RATIONAL_FUNCTION
# [0..19] = coefficients for the x-numerator
# [20..39] = coefficients for the x-denominator
# [40..41] = coefficients (scale and offset) for x
# [42..61] = coefficients for the y-numerator
# [62..81] = coefficients for the y-denominator
# [82..83] = coefficients (scale and offset) for y
# [84..89] = coefficients for X,Y,Z ground scales and offsets
DRIVE_PARAMETERS: 9.9 {9.9}<=MAX_89
# The computed EO standard deviations from a bundle adjustment.
# These are not to be confused with the GIVEN_STD_DEVS.
COMPUTED_std_devs:
# The location of the raw image-object grid file.
raw_grid: STRING
# The location of the rational function parameter file.
rf_bitmap: STRING
# The shift, in pixels, in the image-object grid file from 0,0 pixel center.
shift_in_grid: 9.9
# The image size (columns, rows)
image_size: 1 1
# The design file location
dgn_file: STRING
# A description of the photo
description: STRING
end photo_parameters
begin block STRING
# where the STRING is the block id.
STRING [strip_id STRING]
# where the first string is the photo id and the second string is the strip id.
end block
Model File
The Model file contains the results of model-specific processing. It follows the same general block format rules as the
Project file.
begin model STRING
# The version that wrote this file
version: STRING
# The left and right photo making this model.
# The format is as stripId~photoId.
left_photo: STRING
right_photo: STRING
# This approach can be used instead of the one above.
file:///C:/Users/User/AppData/Local/Temp/~hh51EB.htm 15-03-2023
Appendix A: ASCII Data File Formats Page 10 of 13
left_strip: : STRING
left_photo: : STRING
right_strip: : STRING
right_photo: : STRING
# These are locations of the epipolar resampled images. Optional
left_image: STRING
left_green_image: STRING
left_blue_image: STRING
right_image: STRING
right_green_image: STRING
right_blue_image: STRING
# the EO to use for stereo
eo_to_use: ("RO" | "AO" | "GIVEN")
# flags
atmospheric_flag: ("on"|"off")
earth_curve_flag: ("on"|"off")
left_lens_flag: ("on"|"off")
right_lens_flag: ("on"|"off")
# area of interest data
# These are the coordinates of the aoi on each image.
# left_aoi: x1 y1 x2 y2.
# The coordinates are in microns in the raw image space.
left_aoi: 1 1 1 1
right_aoi: 1 1 1 1
# For the definition of the EO parameters, see the PHOTO file specification.
# RO data
RO_parametersL: 9.9 9.9 9.9 9.9 9.9 9.9
RO_parametersR: 9.9 9.9 9.9 9.9 9.9 9.9
RO_num_iters: 1
RO_num_DOF: 1
RO_sum_red: 9.9
RO_apost_std_dev: 9.9
# RO_obs: id status mode VxyL VxyR SVxyL SVxyR py r
# point status: 1 = measured, 2 = withheld
# Where VxyL, VxyR, SVxyL, SVxyR, are all pairs of coordinates.
RO_obs: STRING 1 1 9.9 9.9 9.9 9.9 9.9 9.9 9.9 9.9 9.9 9.9
.
.
RO_obs: STRING 1 1 9.9 9.9 9.9 9.9 9.9 9.9 9.9 9.9 9.9 9.9
# AO data (scale, X,Y,Z, omega, phi, kappa)
AO_parameters: 9.9 9.9 9.9 9.9 9.9 9.9 9.9
AO_parametersL: 9.9 9.9 9.9 9.9 9.9 9.9
AO_parametersR: 9.9 9.9 9.9 9.9 9.9 9.9
AO_num_iters: 1
AO_num_DOF: 1
AO_sum_red: 9.9
file:///C:/Users/User/AppData/Local/Temp/~hh51EB.htm 15-03-2023
Appendix A: ASCII Data File Formats Page 11 of 13
AO_apost_std_dev: 9.9
# AO_rms: control X,Y,Z,XY; check X,Y,Z,XY
AO_rms: 9.9 9.9 9.9 9.9 9.9 9.9 9.9 9.9
# AO_obs: id status mode class type xyz rXYZ VXYZ SVXYZ AXYZ
# point status: 1 = measured, 2 = withheld
# Where xyz, rXYZ, VXYZ, SVXYZ, AXYZ, are all triplets of coordinates.
AO_obs: STRING 1 1 1 1 9.9 9.9 9.9 9.9 9.9 9.9 9.9 9.9 9.9 9.9 9.9 9.9 9.9 9.9 9.9
.
.
AO_obs: STRING 1 1 1 1 9.9 9.9 9.9 9.9 9.9 9.9 9.9 9.9 9.9 9.9 9.9 9.9 9.9 9.9 9.9
# GIVEN data
GIVEN_parametersL: 9.9 9.9 9.9 9.9 9.9 9.9
GIVEN_parametersR: 9.9 9.9 9.9 9.9 9.9 9.9
# Real-time math model data
RTMM_io_parametersl: 9.9 9.9 9.9 9.9 9.9 9.9
RTMM_io_parametersr: 9.9 9.9 9.9 9.9 9.9 9.9
RTMM_type: ("COLLINEARITY"|"3RD_ORDER_RF")
# RTMM_eo_parametersl: (up to 90 doubles on multiple lines)
RTMM_eo_parametersl: 9.9 {9.9}<-MAX_89
# RTMM_eo_parametersr: (up to 90 doubles on multiple lines)
RTMM_eo_parametersr: 9.9 {9.9}<-MAX_89
RTMM_hhc_type: ("MATRIX")
# RTMM_hhc_parameters: (9 doubles)
RTMM_hhc_parameters: 9.9 {9.9}<-MAX_9
# stereo_point: x,y,z
stereo_point: 9.9[,] 9.9[,] 9.9
# The left and right image-object grid file location if using rational functions.
left_grid: STRING
right_grid: STRING
# The left and right rational function bitmap file locations.
left_rf_bitmap: STRING
right_rf_bitmap: STRING
# The pixel size in ground units for the stereo model, if using rational
# functions.
pixel_scale: 9.9
# The primary and secondary projection definitions as defined in the
# design files specified here.
primary_projection: STRING
secondary_projection: STRING
end model
Control File
The Control file contains setup information for the orientation processes.
# Notes:
# This file follows a general block format, roughly described by the
# following rules:
file:///C:/Users/User/AppData/Local/Temp/~hh51EB.htm 15-03-2023
Appendix A: ASCII Data File Formats Page 12 of 13
Triang File
The Triang file contains the result of triangulation and will not exist after densification.
# point
# point: id xyz covariance matrix
point: STRING 9.9 9.9 9.9 9.9 9.9 9.9 9.9 9.9 9.9 9.9 9.9
.
file:///C:/Users/User/AppData/Local/Temp/~hh51EB.htm 15-03-2023
Appendix A: ASCII Data File Formats Page 13 of 13
.
point: STRING 9.9 9.9 9.9 9.9 9.9 9.9 9.9 9.9 9.9 9.9 9.9
file:///C:/Users/User/AppData/Local/Temp/~hh51EB.htm 15-03-2023