ORBITWR

Write orbit segment to text file


EnvironmentsPYTHON :: EASI :: MODELER
Quick linksDescription :: Parameters :: Parameter descriptions :: Details :: Example :: Related

Back to top

Description


Writes information from a specified orbit segment to a text file.
Back to top

Parameters


orbitwr(file, orbit, tfile, rtyp)

Name Type Caption Length Value range
FILE * str Input file name 1 -    
ORBIT List[int] Input orbit segment 0 - 1 1 -
TFILE * str Output text file 1 -    
RTYP str Information report type 0 - 5 BRIEF | SHORT | FULL
Default: SHORT

* Required parameter
Back to top

Parameter descriptions

FILE

Specifies the name of the PCIDSK image file that contains the orbit segment to be written to a text file.

ORBIT

Specifies the input orbit segment to write to a text file. If this parameter is not specified, ORBITWR writes the first orbit segment to the text file. If specified, this value must be greater than zero.

TFILE

Specifies the name of the output text file that will contain the orbit segment information.

The text file must not exist before running ORBITWR. If the text file exists, ORBITWR exits without processing.

RTYP

Specifies the type of information that is written to the output text file.

Three forms may be specified:
Back to top

Details

ORBITWR writes orbit information from a specified orbit segment (ORBIT/InputOrbit) from a PCIDSK file (FILE) to a defined output orbit data text file (TFILE).

Back to top

Example

Write the full orbit information from the first segment in the file 'spotleft.pix' to a new file named 'spot.orb'.

from pci.orbitwr import orbitwr

file='spotleft.pix'
orbit=[]                  # defaults to 1st orbit segment
tfile='spot.orb'
rtyp='FULL'

orbitwr(file, orbit, tfile, rtyp)

The output text file 'spot.orb' contains the following information:

SatelliteDesc       :                                 
SceneID             : S1H1890831185708                
SatelliteSensor     : PLA-1
SensorNumber        : 1 
DateImageTaken      : 31/08/1989            
SupSegExist         : TRUE
FieldOfView         : 1.20000000000000E-005
ViewAngle           : 3.32258329702161E-001

© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.