0% found this document useful (0 votes)
35 views4 pages

START creatSTR

The document provides instructions to: 1. Count the number of points in an input file and output them to a specified output file. 2. Loop through each unique color in the input file, extract those points, run a contouring algorithm, and append the results to the output file. 3. Continue looping until all colors are processed and written to the single output file.

Uploaded by

julius dwomoh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views4 pages

START creatSTR

The document provides instructions to: 1. Count the number of points in an input file and output them to a specified output file. 2. Loop through each unique color in the input file, extract those points, run a contouring algorithm, and append the results to the output file. 3. Continue looping until all colors are processed and written to the single output file.

Uploaded by

julius dwomoh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

!

START creatSTR

!prompt

0================================================================

1 Enter point file[_vb_scr_points]>'$infile#',A,16

1 Enter point OUTPUT file[apr_2023_14]>'$outfile#',A,16

!COUNT &IN($infile#),

&OUT(cnt),*KEY1(COLOUR),@KEYSORT=1.0,@KEYTOL=0.00001

!file $file#=cnt,$rows#=recs

!let $run#= 1

===================================================================

!LOOP:REM

===============================================================

!if $run#>$rows#, GOTO LOOPEND


!field $filex#=cnt,$pos#=$run#,$color#=COLOUR

!COPY &IN($infile#),

&OUT(point_$color#),COLOUR=$color#.0

!CONPOL &IN(point_$color#),

&PERIMOUT(temp),*X(XPT),*Y(YPT),@EXTDIS=0.0,@CHECKDUP=0.0

!EXTRA &IN(temp),

&OUT(con_str_$color#),@APPROX=0.0

PVALUE=$run#

COLOUR;N=$color#

GO

!if $run#=1,then

!DDCOPY &IN(con_str_$color#),

&OUT($outfile#)

!endif

!APPEND &IN1($outfile#),

&IN2(con_str_$color#),

&OUT(temp),@SEQUENCE=0.0,@PROTODD=0.0

!COPY &IN(temp),

&OUT($outfile#)
!let $run#={$run#+1}

!goto LOOP

==============================================

!LOOPEND:REM

================================================

!END

//!COPY &IN(_vb_scr_points),

// &OUT(cnt_color#),COLOUR=$color#.0

//!CONPOL &IN(cnt_color#),

// &PERIMOUT(temp),*X(XPT),*Y(YPT),@EXTDIS=0.0,@CHECKDUP=0.0

//!EXTRA &IN(temp),

// &OUT(cnt_str_color#),@APPROX=0.0

//PVALUE=$run#

//COLOUR=$color#

//GO

//!DDCOPY &IN(cnt_str_color#),

// &OUT(min_file_color#)

//!APPEND &IN1(min_file_color#),

// &IN2(cnt_color#),

// &OUT(temp),@SEQUENCE=0.0,@PROTODD=0.0

//!COPY &IN(temp),

// &OUT(min_file_str)

You might also like