Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
laziness, impatience, and hubris
 
PerlMonks  

Willard B. Trophy's scratchpad

by Willard B. Trophy (Hermit)
on Jun 01, 2004 at 21:06 UTC ( #358606=scratchpad: print w/ replies, xml ) Need Help??

Data files referenced in Map grid to boundary conversion algorithm. Graphical representations of these are in my blog.

test10x10.grd

File format:
line 1: DSAA
line 2: x_grid_points y_grid_points
line 3: x_min x_max
line 4: y_min y_max
line 5: z_min z_max
following lines: rows of z values, reading from x_min to x_max along the row, and y_min to y_max down the columns. Blank lines delimit end of rows.

DSAA 10 10 370 640 640 910 0.03 1.0 0.5 0.03 0.03 1.0 1.0 1.0 0.03 1.0 0.1 0.1 0.5 0.03 0.03 0.1 1.0 1.0 0.03 1.0 0.1 0.1 0.03 0.03 0.03 0.1 0.1 1.0 0.03 1.0 0.1 0.1 0.1 0.03 0.03 0.03 0.03 0.03 0.03 1.0 0.5 0.5 0.03 0.5 0.03 1.0 0.5 0.5 0.03 1.0 0.5 0.5 0.03 0.5 0.03 0.1 0.1 0.5 0.03 1.0 0.5 0.1 0.03 0.5 0.03 0.1 0.1 0.1 0.03 1.0 0.1 0.1 0.03 0.5 0.03 0.03 0.03 0.03 0.03 1.0 0.1 0.1 0.03 0.5 0.03 0.5 0.5 0.1 0.03 0.1 0.1 0.03 0.03 0.5 0.03 0.5 0.5 0.1 0.03 0.1 0.1 0.03

test10x10.map

File format:
first four lines: header
Next set of lines work in pairs:
line A: z_value_left z_value_right number_of_points
line B: x1 y1 x2 y2 ... xn yn
(line B can stretch to multiple lines if it's over 3 points)

+ Converted from: test10x10.grd + 0.0 0.0 0.0 0.0 1.0 1.0 1.0 1.0 1.0 0.0 0.0300 1.0000 2 475.0 655.0 475.0 685.0 0.0000 0.5000 2 385.0 655.0 385.0 715.0 0.5000 0.0300 2 415.0 655.0 415.0 715.0 0.1000 1.0000 2 505.0 685.0 505.0 715.0 0.0000 0.0300 2 385.0 715.0 385.0 745.0 0.0300 0.1000 2 475.0 685.0 475.0 745.0 0.1000 1.0000 2 535.0 715.0 535.0 745.0 1.0000 0.0300 2 565.0 655.0 565.0 745.0 1.0000 0.1000 2 625.0 655.0 625.0 745.0 0.1000 0.0000 2 685.0 655.0 685.0 745.0 0.0000 0.1000 2 385.0 745.0 385.0 775.0 0.1000 0.0300 2 415.0 745.0 415.0 775.0 0.0300 1.0000 2 475.0 775.0 475.0 805.0 1.0000 0.5000 2 505.0 775.0 505.0 805.0 0.5000 0.0000 2 685.0 745.0 685.0 805.0 0.1000 0.5000 2 535.0 805.0 535.0 835.0 0.5000 0.0300 2 565.0 775.0 565.0 835.0 1.0000 0.5000 2 625.0 745.0 625.0 835.0 0.5000 0.1000 2 655.0 805.0 655.0 835.0 0.0300 0.1000 2 475.0 805.0 475.0 865.0 0.1000 0.0300 2 565.0 835.0 565.0 865.0 0.0300 1.0000 2 595.0 655.0 595.0 895.0 1.0000 0.1000 2 625.0 835.0 625.0 895.0 0.1000 0.0000 2 685.0 805.0 685.0 895.0 0.0000 0.0300 2 385.0 775.0 385.0 955.0 0.0300 0.5000 2 415.0 775.0 415.0 955.0 0.5000 0.0300 2 445.0 775.0 445.0 955.0 0.0300 0.5000 2 475.0 895.0 475.0 955.0 0.5000 0.1000 2 535.0 895.0 535.0 955.0 0.1000 0.0300 2 565.0 895.0 565.0 955.0 0.0300 0.1000 2 595.0 895.0 595.0 955.0 0.1000 0.0300 2 655.0 895.0 655.0 955.0 0.0300 0.0000 2 685.0 895.0 685.0 955.0 0.5000 0.0000 2 385.0 655.0 415.0 655.0 0.0300 0.5000 2 385.0 715.0 415.0 715.0 0.1000 0.0300 2 385.0 745.0 415.0 745.0 0.0300 0.1000 2 385.0 775.0 415.0 775.0 0.0000 0.0300 2 385.0 955.0 415.0 955.0 0.5000 0.0300 2 415.0 775.0 445.0 775.0 0.0000 0.5000 2 415.0 955.0 445.0 955.0 0.0300 0.0000 2 415.0 655.0 475.0 655.0 0.0000 0.0300 2 445.0 955.0 475.0 955.0 0.1000 1.0000 2 475.0 685.0 505.0 685.0 1.0000 0.0300 2 475.0 775.0 505.0 775.0 0.1000 1.0000 2 475.0 805.0 505.0 805.0 0.1000 1.0000 2 505.0 715.0 535.0 715.0 0.0300 0.1000 2 475.0 745.0 535.0 745.0 0.1000 0.5000 2 505.0 805.0 535.0 805.0 0.5000 0.0300 2 475.0 895.0 535.0 895.0 0.0000 0.5000 2 475.0 955.0 535.0 955.0 1.0000 0.0000 2 475.0 655.0 565.0 655.0 0.0300 1.0000 2 535.0 745.0 565.0 745.0 0.5000 0.0300 2 505.0 775.0 565.0 775.0 0.1000 0.5000 2 535.0 835.0 565.0 835.0 0.0300 0.1000 2 475.0 865.0 565.0 865.0 0.1000 0.0300 2 535.0 895.0 565.0 895.0 0.0000 0.1000 2 535.0 955.0 565.0 955.0 0.0300 0.0000 2 565.0 655.0 595.0 655.0 0.0000 0.0300 2 565.0 955.0 595.0 955.0 1.0000 0.0000 2 595.0 655.0 625.0 655.0 0.1000 1.0000 2 595.0 895.0 625.0 895.0 0.1000 0.5000 2 625.0 835.0 655.0 835.0 0.0000 0.1000 2 595.0 955.0 655.0 955.0 0.1000 0.0000 2 625.0 655.0 685.0 655.0 0.5000 0.1000 2 625.0 745.0 685.0 745.0 0.1000 0.5000 2 655.0 805.0 685.0 805.0 0.0300 0.1000 2 655.0 895.0 685.0 895.0 0.0000 0.0300 2 655.0 955.0 685.0 955.0

test10x10_resaved.map

(as resaved by WAsP's map editor, with contiguous lines joined)

+ Converted from: test10x10.grd | + 0.0 0.0 0.0 0.0 1.0 0.0 1.0 0.0 1.0 0.0 0.0300 1.0000 2 475.0 655.0 475.0 685.0 0.5000 0.0000 3 385.0 715.0 385.0 655.0 415.0 655. +0 0.5000 0.0300 3 415.0 655.0 415.0 715.0 385.0 715. +0 0.0000 0.0300 2 385.0 715.0 385.0 745.0 1.0000 0.1000 5 535.0 745.0 535.0 715.0 505.0 715. +0 505.0 685.0 475.0 685.0 1.0000 0.0300 3 565.0 655.0 565.0 745.0 535.0 745. +0 1.0000 0.1000 2 625.0 655.0 625.0 745.0 0.0000 0.1000 3 685.0 745.0 685.0 655.0 625.0 655. +0 0.0000 0.1000 2 385.0 745.0 385.0 775.0 0.0300 0.1000 3 415.0 775.0 415.0 745.0 385.0 745. +0 1.0000 0.0300 3 475.0 805.0 475.0 775.0 505.0 775. +0 1.0000 0.5000 2 505.0 775.0 505.0 805.0 0.5000 0.0000 2 685.0 745.0 685.0 805.0 0.0300 0.5000 3 565.0 835.0 565.0 775.0 505.0 775. +0 1.0000 0.5000 2 625.0 745.0 625.0 835.0 0.5000 0.1000 4 685.0 805.0 655.0 805.0 655.0 835. +0 625.0 835.0 0.1000 0.0300 4 565.0 835.0 565.0 865.0 475.0 865. +0 475.0 805.0 0.0300 1.0000 2 595.0 655.0 595.0 895.0 1.0000 0.1000 3 625.0 835.0 625.0 895.0 595.0 895. +0 0.1000 0.0000 2 685.0 805.0 685.0 895.0 0.0300 0.5000 2 415.0 775.0 415.0 955.0 0.0300 0.5000 3 445.0 955.0 445.0 775.0 415.0 775. +0 0.5000 0.0300 3 475.0 955.0 475.0 895.0 535.0 895. +0 0.5000 0.1000 2 535.0 895.0 535.0 955.0 0.0300 0.1000 3 565.0 955.0 565.0 895.0 535.0 895. +0 0.0300 0.1000 2 595.0 895.0 595.0 955.0 0.0300 0.1000 3 655.0 955.0 655.0 895.0 685.0 895. +0 0.0300 0.0000 3 685.0 895.0 685.0 955.0 655.0 955. +0 0.0300 0.1000 2 385.0 775.0 415.0 775.0 0.0300 0.0000 3 415.0 955.0 385.0 955.0 385.0 775. +0 0.0000 0.5000 2 415.0 955.0 445.0 955.0 0.0300 0.0000 2 415.0 655.0 475.0 655.0 0.0000 0.0300 2 445.0 955.0 475.0 955.0 0.1000 1.0000 2 475.0 805.0 505.0 805.0 0.1000 0.0300 3 535.0 745.0 475.0 745.0 475.0 685. +0 0.0000 0.5000 2 475.0 955.0 535.0 955.0 1.0000 0.0000 2 475.0 655.0 565.0 655.0 0.5000 0.1000 4 565.0 835.0 535.0 835.0 535.0 805. +0 505.0 805.0 0.0000 0.1000 2 535.0 955.0 565.0 955.0 0.0300 0.0000 2 565.0 655.0 595.0 655.0 0.0000 0.0300 2 565.0 955.0 595.0 955.0 1.0000 0.0000 2 595.0 655.0 625.0 655.0 0.0000 0.1000 2 595.0 955.0 655.0 955.0 0.5000 0.1000 2 625.0 745.0 685.0 745.0
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2014-04-24 10:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (565 votes), past polls