TEXREP

Text segment report


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

Back to top

Description


Generates a report of text data stored in a PCIDSK text segment.
Back to top

Parameters


texrep(file, texseg)

Name Type Caption Length Value range
FILE * str Input file name 1 -    
TEXSEG * List[int] Input text segment 1 - 1  

* Required parameter
Back to top

Parameter descriptions

FILE

Specifies the name of the PCIDSK file that contains the text segment.

TEXSEG

Specifies the input text segment (type 140) from which to generate the report.

Back to top

Details

TEXREP prints text data stored in a specified text segment (TEXSEG) in a PCIDSK image file (FILE). Text segments contain free-form text, but are usually used to store attribute data.

The report is directed to the selected report device (REPORT).

Back to top

Example

Print a report of text segment 19 in the demo file, irvine.pix. This segment stores attribute data for the land use data stored on image channel 6.

from pci.texrep import texrep

file	=	'irvine.pix'	# input file
texseg	=	[19]	# text segment

texrep( file, texseg )

The output report produced by TEXREP is shown below:

 TEXREP  Text Segment Report      

 19:ATTRIB    Type:140 [Text       ]   
 Contents: USGS Land Use/Land Cover Attribute

  !
  ! Land Use / Land Cover Classification System
  ! from USGS 1:250000 Data
  !
  ! graylevel ; Level 1      Level 2
  !
          11 ; Urban        Residential
          12 ; Urban        Commercial
          13 ; Urban        Industrial
          14 ; Urban        Transportation
          15 ; Urban        Commercial/Industrial
          16 ; Urban        Mixed
          17 ; Urban        Other
          21 ; Agriculture  Crop/Pasture
          22 ; Agriculture  Orchards
          23 ; Agriculture  Feeding
          24 ; Agriculture  Other
          31 ; Rangeland    Herbaceous
          32 ; Rangeland    Shrub
          33 ; Rangeland    Mixed
          41 ; Forest       Deciduous
          42 ; Forest       Evergreen
          43 ; Forest       Mixed
          51 ; Water        Streams/Canals
          52 ; Water        Lakes
          53 ; Water        Reservoirs
          54 ; Water        Bays/Estuaries
          61 ; Wetland      Forested
          62 ; Wetland      Nonforested
          71 ; Barren       Dry_Salt_Flats
          72 ; Barren       Beaches
          73 ; Barren       Sandy_Areas
          74 ; Barren       Exposed_Rock
          75 ; Barren       Mines/Quarries/Pits
          76 ; Barren       Transitional_Area
          77 ; Barren       Mixed
          81 ; Tundra       Shrub/Brush
          82 ; Tundra       Herbaceous
          83 ; Tundra       Bare
          84 ; Tundra       Wet
          85 ; Tundra       Mixed
          91 ; Snow/Ice     Perennial_Snow
          92 ; Snow/Ice     Glaciers

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