CDSH

Reads an LGSOWG source header from CD


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

Back to top

Description


CDSH reads a LGSOWG source header from a CD and generates a report.
Back to top

Parameters


cdsh(volfile, imgfile, mtch)

Name Type Caption Length Value range
VOLFILE* str Input header file name 1 -    
IMGFILE* str Input imagery file name 1 -    
MTCH List[int] Mag tape characteristics 0 - 3  

* Required parameter
Back to top

Parameter descriptions

VOLFILE

Specifies the full path and file name of the input header (volume) file.

IMGFILE

Specifies the full path and file name of the file that contains the image data to be read.

MTCH

MTCH is an output parameter. Upon completion, CDSH writes the three values reported from the input image on the CD to this parameter.

These values are:

These values can be used by automated CD-reading procedures.

Back to top

Details

CDSH reads an LGSOWG source header from CD and prints out a report. Only the LGSOWG CD format is supported.

You must specify the full path and file names for the volume descriptor (header file) and the image data.

The MTCH output parameter contains the number of pixels, lines, and channels read from the CD.

Back to top

Example

Run CDSH to determine the information of an LGSOWG CD.

from pci.cdsh import *

volfile     =   r'/cdrom/scene1/vol.dat'
imgfile     =   r'/cdrom/scene1/img.dat'
mtch        =   []

cdsh( volfile, imgfile, mtch )

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