ARRWRIT

Write Array Data to Text File


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

Back to top

Description


ARRWRIT writes data from an array segment to a text file.
Back to top

Parameters


Name Type Caption Length Value range
FILE * String File name 1 - 192  
ARRSEG * Integer Array segment 1 - 1  
FORMAT String Data format 0 - 64  
TFILE * String Text file name 1 - 192  

* Required parameter
Back to top

Parameter descriptions

FILE

Specifies the name of the PCIDSK image file that contains the array segment.

ARRSEG

Specifies the input array segment that will be written to the text file.

FORMAT

Optionally specifies the data format that will be used to write the array segment to the text file. For example:

 "k * Fw.d ?"

Where:

TFILE

Specifies the name of the text file to which the array segment data is written.

You must run ARRWRIT before creating the text file. If a text file exists before ARRWRIT is run, it will be overwritten.

Back to top

Details

ARRWRIT writes an array segment of data in a PCIDSK file to a text file. The format to use in writing the data can be specified with the FORMAT (Data Format) parameter.

Back to top

Example

Write out the contents of the array segment created in the 'Example' section of the ARRREAD documentation.

EASI>FILE   = "TEST.PIX"
EASI>ARRSEG = 2
EASI>FORMAT =               ! by default, one decimal number per line
EASI>TFILE  = "TEST_OUT.txt"
EASI>RUN ARRWRIT

The output file TEST_OUT.txt has the following data values:

 1.000000 
 2.000000 
 3.000000

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