Download pdf - US Army: bathdtedtn01

Transcript
Page 1: US Army: bathdtedtn01

8/14/2019 US Army: bathdtedtn01

http://slidepdf.com/reader/full/us-army-bathdtedtn01 1/38

   T  o  p  o  g  r  a  p   h   i  c

   E  n  g   i  n  e  e  r   i  n  g   C  e  n   t  e  r

   E   R   D   C   /   T   E   C    T

   N  -   0   0  -   1

 

Generating a Coastal Boundary andMerging Bathymetry with DTED® Level 1

  Using ArcInfo: A Modeling and Simulation  Application June 200

  James J. Damron

Approved for public release; distribution is unlimited.

Page 2: US Army: bathdtedtn01

8/14/2019 US Army: bathdtedtn01

http://slidepdf.com/reader/full/us-army-bathdtedtn01 2/38

Page 3: US Army: bathdtedtn01

8/14/2019 US Army: bathdtedtn01

http://slidepdf.com/reader/full/us-army-bathdtedtn01 3/38

5 2 1 0 5 1 4 + 0 ) / 1 0 + 6 1 4 + 0 )  

# ) ' 0 % ; 4 ' 2 1 4 6 0 7 / $ ' 4  

2 ' 4 ( 1 4 / + 0 ) 1 4 ) # 0 + < # 6 + 1 0 0 # / ' 5 # 0 & # & & 4 ' 5 5 ' 5

7 5 # T O [ ' P I K P G G T 4 G U G C T E J C P F & G X G N Q R O G P V % G P V G T  

6 Q R Q I T C R J K E ' P I K P G G T K P I % G P V G T  

6 G N G I T C R J 4 Q C F  

# N G Z C P F T K C 8 #  

2 W D N K E T G R Q T V K P I D W T F G P H Q T V J K U E Q N N G E V K Q P Q H K P H Q T O C V K Q P K U G U V K O C V G F V Q C X G T C I G J Q W T R G T T G U R Q P U G K P E N W F K P I V J G V K O G H Q T T G X K G Y K P I K P U V T W E V K Q P U U G C T E J K P I G Z K U V K P I F C V C U Q W T E G U

I C V J G T K P I C P F O C K P V C K P K P I V J G F C V C P G G F G F C P F E Q O R N G V K P I C P F T G X K G Y K P I V J G E Q N N G E V K Q P Q H K P H Q T O C V K Q P 5 G P F E Q O O G P V U T G I C T F K P I V J K U D W T F G P G U V K O C V G Q T C P [ Q V J G T C U R G E V Q H V J K U  

E Q N N G E V K Q P Q H K P H Q T O C V K Q P K P E N W F K P I U W I I G U V K Q P U H Q T T G F W E K P I V J K U D W T F G P V Q 9 C U J K P I V Q P * G C F S W C T V G T U 5 G T X K E G U & K T G E V Q T C V G H Q T + P H Q T O C V K Q P 1 R G T C V K Q P U C P F 4 G R Q T V U , G H H G T U Q P  

& C X K U * K I J Y C [ 5 W K V G # T N K P I V Q P 8 # C P F V Q V J G 1 H H K E G Q H / C P C I G O G P V C P F $ W F I G V 2 C R G T Y Q T M 4 G F W E V K Q P 2 T Q L G E V 9 C U J K P I V Q P & %

2 ' 4 ( 1 4 / + 0 ) 1 4 ) # 0 + < # 6 + 1 0  

4 ' 2 1 4 6 0 7 / $ ' 4  

4 ' 2 1 4 6 & 1 % 7 / ' 0 6 # 6 + 1 0 2 # ) '  

( Q T O # R R T Q X G F  

1 / $ 0 Q  

5 ' % 7 4 + 6 ; % . # 5 5 + ( + % # 6 + 1 0  

1 ( 4 ' 2 1 4 6  

5 ' % 7 4 + 6 ; % . # 5 5 + ( + % # 6 + 1 0 1 ( 6 * + 5  

2 # ) '  

5 ' % 7 4 + 6 ; % . # 5 5 + ( + % # 6 + 1 0  

1 ( # $ 5 6 4 # % 6  

' 4 & % 6 ' % 6 0  

# ) ' 0 % ; 7 5 ' 1 0 . ;   . G C X G D N C P M  

6 + 6 . ' # 0 & 5 7 $ 6 + 6 . '  

) G P G T C V K P I C % Q C U V C N $ Q W P F C T [ C P F / G T I K P I $ C V J [ O G V T [ Y K V J & 6 ' & . G X G N  

7 U K P I # T E + P H Q # / Q F G N K P I C P F 5 K O W N C V K Q P # R R N K E C V K Q P  

# 7 6 * 1 4 5

, C O G U , & C O T Q P  

5 2 1 0 5 1 4 + 0 ) / 1 0 + 6 1 4 + 0 ) # ) ' 0 % ; 0 # / ' 5 # 0 & # & & 4 ' 5 5 ' 5

5 7 2 2 . ' / ' 0 6 # 4 ; 0 1 6 ' 5  

C & + 5 6 4 + $ 7 6 + 1 0 # 8 # + . # $ + . + 6 ; 5 6 # 6 ' / ' 0 6  

# R R T Q X G F H Q T R W D N K E T G N G C U G F K U V T K D W V K Q P K U W P N K O K P V G F  

5 7 $ , ' % 6 6 ' 4 / 5  

# T E + P H Q D C V J [ O G V T [ & 6 ' & & % 9 & / # 0 + / # ' 5 4 +  

# $ 5 6 4 # % 6   / C Z K O W O Y Q T F U  

' P X K T Q P O G P V C N 5 [ U V G O U 4 G U G C T E J + P U V K V W V G U ' 5 4 + & K I K V C N % J C T V Q H V J G 9 Q T N F & % 9 C T G X G E V Q T F C V C E T G C V G F H T Q O V J G  

0 C V K Q P C N + O C I G T [ C P F / C R R K P I # I G P E [ U 0 + / # 1 R G T C V K Q P C N 0 C X K I C V K Q P % J C T V 1 0 % C V U E C N G & K I K V C N  

6 G T T C K P ' N G X C V K Q P & C V C & 6 ' & . G X G N J C U C P C E E W T C E [ G S W K X C N G P V V Q C U E C N G O C R R T Q F W E V 9 J G P & 6 ' &  

. G X G N C P F & % 9 E Q C U V N K P G X G E V Q T U F Q P Q V E Q T T G N C V G C Y C [ K U P G G F G F V Q I G P G T C V G E Q C U V N K P G X G E V Q T U H Q T O & 6 ' & . G X G N  

) G P G T C V K P I C E Q C U V N K P G H T Q O & 6 ' % . G X G N C N N Q Y U H Q T C E Q T T G N C V G F Q E G C P N C P F K P V G T H C E G P Q V D G H Q T G R Q U U K D N G Q X G T N C T I G C T G C U  

K P V J G O Q F G N K P I C P F U K O W N C V K Q P E Q O O W P K V [ 7 U K P I V J G P G Y N [ I G P G T C V G F E Q C U V N K P G H T Q O & 6 ' & . G X G N D C V J [ O G V T K E E C P D G  

O G T I G F Y K V J & 6 ' & . G X G N H Q T E Q P U V T W E V K P I C L Q K P V N C P F U G C C P F C K T O Q F G N K P I C P F U K O W N C V K Q P X K T V W C N F C V C D C U G 6 J K U  

T G R Q T V C F F T G U U G U R T Q D N G O U V J G O Q F G N K P I C P F U K O W N C V K Q P E Q O O W P K V [ J C U D G G P D W T F G P G F Y K V J H Q T O C P [ [ G C T U 6 J G H K T U V  

O G V J Q F Y K N N R T Q X K F G U V G R U P G G F G F V Q I G P G T C V G C E Q C U V C N D Q W P F C T [ X G E V Q T H T Q O & 6 ' & . G X G N Y J G P Q V J G T X G E V Q T R T Q F W E V U C T G

C X C K N C D N G C P F F Q P Q V E Q T T G N C V G V Q & 6 ' & . G X G N 6 J G U G E Q P F O G V J Q F Y K N N W U G V J G P G Y E Q C U V N K P G C U C E Q O O Q P D Q W P F C T [ V Q  

O G T I G D C V J [ O G V T [ Y K V J & 6 ' & . G X G N 7 U K P I # T E + P H Q X G T U K Q P Y K V J V J G ) 4 + & G Z V G P U K Q P K V Y C U R Q U U K D N G V Q I G P G T C V G  

C E Q C U V N K P G H T Q O & 6 ' % . G X G N C P F W U G V J G E Q O O Q P D Q W P F C T [ V Q O G T I G D C V J [ O G V T [ C P F & 6 ' & . G X G N G N G X C V K Q P F C V C K P V Q  

C D C V J [ O G V T [ V G T T T C K P F C V C U G V H Q T O Q F G N K P I C P F U K O W N C V K Q P F C V C D C U G E Q P U V T W E V K Q P  

( 7 0 & + 0 ) 0 7 / $ ' 4 5  

. + / + 6 # 6 + 1 0 1 ( # $ 5 6 4 # % 6  

7 0 . + / + 6 ' &  

0 7 / $ ' 4 1 ( 2 # ) ' 5  

 

2 4 + % ' % 1 & '  

4 ' 2 1 4 6 & # 6 '  

, W P G  

4 ' 2 1 4 6 6 ; 2 ' # 0 & & # 6 ' 5 % 1 8 ' 4 ' &  

6 G E J P K E C N 0 Q V G ( G D T W C T [ # R T K N  

D & + 5 6 4 + $ 7 6 + 1 0 % 1 & '  

7 0 % . # 5 5 + ( + ' &  

7 0 % . # 5 5 + ( + ' &  

7 0 % . # 5 5 + ( + ' &  

0 5 0  

5 V C P F C T F ( Q T O 4 G X

2 T G U E T K D G F D [ # 0 5 + 5 V F <  

% # &

Page 4: US Army: bathdtedtn01

8/14/2019 US Army: bathdtedtn01

http://slidepdf.com/reader/full/us-army-bathdtedtn01 4/38

iii

TABLE OF CONTENTS

PAGE

LIST OF FIGURES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iii

PREFACE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iv

INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

COASTAL BOUNDARY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

MERGING BATHYMETRY WITH DTED LEVEL 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

CONCLUSIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26

APPENDIX - XYX2GRID.AML . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29

LIST OF FIGURES

FIGURE PAGE

  1 DTED Level 1 with DCW Coastal Lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3  2 Gridded Lines and Generalized Coastal Lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

  3 Generalized Coastline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5  4 Zoomed-in View of Figure 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6  5 Splined Coastal Lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

  6 Zoomed-in View of Figure 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8  7 Generalized versus Splined Comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

  8 DCW Coastal Lines and DTED Level 1 Generated Coastal Lines . . . . . . . . . . . 10  9 DCW Coastal Lines and DTED Level 1 Generated Coastal Lines . . . . . . . . . . . 11

10 DCW Coastal Lines and DTED Level 1 Generated Coastal Lines . . . . . . . . . . . 1211 DCW Coastal Lines and DTED Level 1 Generated Coastal Lines . . . . . . . . . . . 13

12 DCW Coastal Lines and DTED Level 1 Generated Coastal Lines . . . . . . . . . . . 1413 Flow Chart of the Coastal Generation Process . . . . . . . . . . . . . . . . . . . . . . . . . . 15

14 UTM.PRJ File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1615 DTED Level 1 Clipped to Coastal Lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

16 Bathymetry Clipped to Coastal Lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1917 Before the SELECTMASK Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

18 After the SELECTMASK Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21

19 After the GRIDINSERT Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2220 After the CON Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2321 After the CON and ISNULL Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24

22 Color-Shaded Relief of Bathymetry/Terrain Merge . . . . . . . . . . . . . . . . . . . . . . 2523 Flow Chart of the Merging Process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27

Page 5: US Army: bathdtedtn01

8/14/2019 US Army: bathdtedtn01

http://slidepdf.com/reader/full/us-army-bathdtedtn01 5/38

iv

PREFACE

This project was completed during the period February to April 2000. Mr. Thomas E.

Jorgensen was Chief, Terrain Data Representation Branch, and Mr. William Z. Clark was Acting

Director, Topographic Research Division during this period.

Colonel James A. Walter was the Director of the U.S. Army Engineer Research and

Development Center’s (ERDC) Topographic Engineering Center (TEC) at the time of publication

of this report.

ACKNOWLEDGMENTS

Appreciation is hereby giver to the following ERDC/TEC employees who assisted in the

review of the applied methodologies used within the report: Jamie Richardson, OperationsDivision, Products and Services Branch, and Doug Caldwell, Terrain Research Division, Terrain

Data Generation Branch.

Page 6: US Army: bathdtedtn01

8/14/2019 US Army: bathdtedtn01

http://slidepdf.com/reader/full/us-army-bathdtedtn01 6/38

1

GENERATING A COASTAL BOUNDARY AND

MERGING BATHYMETRY WITH DTED® LEVEL 1

USING ARCINFO: A MODELING AND SIMULATION APPLICATION

INTRODUCTION

The Environmental Systems Research Institute’s (ESRI) Digital Chart of the World (DCW) arevector data created from the National Imagery and Mapping Agency’s (NIMA) (formerly the

Defense Mapping Agency’s (DMA)) Operational Navigation Chart (ONC) at 1:1,000,000 scale.Use of DCW poses a potential problem when working with other digital data at higher 

resolutions. The PONET and POLINE vector layers in the DCW, which identify a coastal boundary, are not sufficient for modeling and simulation. The DCW coastal layers do not

register accurately with Digital Terrain Elevation Data (DTED®) Level 1. DTED Level 1 has anaccuracy equivalent to a 1:250,000-scale map product. DTED Level 1 is the main elevation

source used for modeling and simulation to create a terrain surface in a virtual world. The coastallayers in DCW are quite effective for most Geographic Information System (GIS) applications

 but, for modeling and simulation purposes, the vector layers for a coastal boundary do notcorrelate with DTED Level 1 (Figure 1).

This report addresses two problems the modeling and simulation community has enduredwhen creating virtual databases. The first procedure will detail how to generate a coastal boundary vector from DTED Level 1 when other vector products are not adequate. In the second procedure, the new coastline will be used as a common boundary to merge bathymetry withDTED Level 1. ArcInfo version 8.0.1 with the GRID extension was the GIS software packageused for this project.

COASTAL BOUNDARY

The coastal boundary of any area is mainly dependant on tidal variations. This may present

 problems when one decides to generate a coastal boundary from another source, such as DTEDLevel 1. The actual coastal boundary for mapping purposes is the average of the tidal variation

usually called mean sea level (MSL). There are no well-defined ocean-land boundary data inDTED Level 1, but generating a coastal boundary from these data will provide better correlation

 between the ocean-land boundary, since the elevation data is in ellipsoid heights. 

The coastal generation methodology will take several steps. This section will illustratehow to create a coastal boundary vectors that correlates with DTED Level 1. First, the SETNULL

function was used to eliminate the land terrain from the ocean surface at the GRID prompt. The

following string oceannull = setnull(mergeall > 0, mergeall) was used to set all data valuesabove 0 to NODATA. The ocean surface can be replaced by NODATA values in the sameSETNULL process, but either land or ocean are sufficient. Second, the GRIDPOLY command

was issued to generate a vector coverage with the command line gridpoly oceannull oceancov 1at the Arc prompt. Third, the GENERALIZE command was used to eliminate the boxy

appearance of the newly created oceancov vectors by using the string generalize oceancov

Page 7: US Army: bathdtedtn01

8/14/2019 US Army: bathdtedtn01

http://slidepdf.com/reader/full/us-army-bathdtedtn01 7/38

2

oceangen75 75 pointremove. In Figure 2, the vectors created in step 2 of the GRIDPOLY 

conversion are colored white and appear boxy. The effects of the GENERALIZE command in

step 3 are apparent in Figure 2 by the elimination of the boxy appearance of the lines coloredmagenta.

In ArcEdit, a basic cleanup of the vectors is needed to create a usable vector coverage.Removal of dangling short lines, snapping lines together, and other procedures are needed beforecontinuing on to the next step. In Figure 3, the ArcEdit cleanup is completed with newly

generated coastlines correlating better to DTED Level 1 at this stage. A closer view in Figure 4shows the better correlation of the generated coastlines to DTED Level 1.

Fourth, all the lines were selected using the SELECT command with the all option at theArcEdit prompt with the string select all . Fifth, the GRAIN command is issued with a distanceset at 75 m with the following string grain 75. Sixth and final step, the SPLINE command wasused to provide curvature to the vector coverage and is more representative of the coastline. Theeffect of the SPLINE command is shown in Figure 5 with the new coastal lines shown in green.

In Figure 6, a closer view of the same area shows the splined coastal lines correlating better withDTED Level 1. A comparison of the generalized vectors and splined vectors are shown inFigure 7. Two large lake boundaries also were generated in the coastline generation method byselecting elevations at 230 m and 134 m above sea level.

The improved correlation of the coastal boundary vectors within DTED Level 1 areapparent in several figures. The magenta-colored and green-colored lines represent the DTEDLevel 1-generated lines. The white-colored lines represent the DCW coastlines. The improvedcorrelation is apparent in Figure 8 with the generated vectors lining up with DTED Level 1. TheDCW coastal lines are offset by as much as 1,000 m, or more, in most cases, compared to theDTED Level 1-generated lines. Also, the DCW coastal lines are very coarse and generalized

compared to the DTED Level 1-generated lines. In Figures 9, 10, and 11, the coastal and island boundaries are correlating better to DTED Level 1 data than the DCW coastal lines. It isapparent that smaller coastal island boundaries are captured and better correlated to DTED Level1 with coastline generation methods than the DCW coastal lines shown in Figure 12. Thisimprovement will help provide better correlation between coastal features and elevation data not before possible in modeling and simulation from other sources of data. A flow diagram in Figure13 provides the steps involved with generating a coastal boundary from DTED Level 1.

Page 8: US Army: bathdtedtn01

8/14/2019 US Army: bathdtedtn01

http://slidepdf.com/reader/full/us-army-bathdtedtn01 8/38

 3  

Figure 1. DTED Level 1 with DCW Coastal Lines

Page 9: US Army: bathdtedtn01

8/14/2019 US Army: bathdtedtn01

http://slidepdf.com/reader/full/us-army-bathdtedtn01 9/38

4  

Figure 2. Gridded Lines and Generalized Coastal Lines

Page 10: US Army: bathdtedtn01

8/14/2019 US Army: bathdtedtn01

http://slidepdf.com/reader/full/us-army-bathdtedtn01 10/38

5

Figure 3. Generalized Coastline

Page 11: US Army: bathdtedtn01

8/14/2019 US Army: bathdtedtn01

http://slidepdf.com/reader/full/us-army-bathdtedtn01 11/38

6

Figure 4. Zoomed-in View of Figure 3

 

Page 12: US Army: bathdtedtn01

8/14/2019 US Army: bathdtedtn01

http://slidepdf.com/reader/full/us-army-bathdtedtn01 12/38

7

Figure 5. Splined Coastal Lines

Page 13: US Army: bathdtedtn01

8/14/2019 US Army: bathdtedtn01

http://slidepdf.com/reader/full/us-army-bathdtedtn01 13/38

8

Figure 6. Zoomed-in View of Figure 5

Page 14: US Army: bathdtedtn01

8/14/2019 US Army: bathdtedtn01

http://slidepdf.com/reader/full/us-army-bathdtedtn01 14/38

9

Figure 7. Generalized versus Splined Comparison

Page 15: US Army: bathdtedtn01

8/14/2019 US Army: bathdtedtn01

http://slidepdf.com/reader/full/us-army-bathdtedtn01 15/38

10

Figure 8. DCW Coastal Lines and DTED Level 1-Generated Coastal Lines

Page 16: US Army: bathdtedtn01

8/14/2019 US Army: bathdtedtn01

http://slidepdf.com/reader/full/us-army-bathdtedtn01 16/38

11

Figure 9. DCW Coastal Lines and DTED Level 1-Generated Coastal Lines

Page 17: US Army: bathdtedtn01

8/14/2019 US Army: bathdtedtn01

http://slidepdf.com/reader/full/us-army-bathdtedtn01 17/38

12

Figure 10. DCW Coastal Lines and DTED Level 1-Generated Coastal Lines

Page 18: US Army: bathdtedtn01

8/14/2019 US Army: bathdtedtn01

http://slidepdf.com/reader/full/us-army-bathdtedtn01 18/38

13

Figure 11. DCW Coastal Lines and DTED Level 1-Generated Coastal Lines

Page 19: US Army: bathdtedtn01

8/14/2019 US Army: bathdtedtn01

http://slidepdf.com/reader/full/us-army-bathdtedtn01 19/38

14

Figure 12. DCW Coastal Lines and DTED Level 1-Generated Coastal Lines

Page 20: US Army: bathdtedtn01

8/14/2019 US Army: bathdtedtn01

http://slidepdf.com/reader/full/us-army-bathdtedtn01 20/38

15

Figure 13. Flow Chart of the Coastal Generation Process

Page 21: US Army: bathdtedtn01

8/14/2019 US Army: bathdtedtn01

http://slidepdf.com/reader/full/us-army-bathdtedtn01 21/38

16

input projection geographicunits dddatum wgs84

 parametersoutput projection utmunits meterszone 47datum wgs84

 parametersend

Figure 14. UTM.PRJ File

MERGING BATHYMETRY WITH DTED LEVEL 1

The DTED Level 1-generated coastal boundary will provide a tool to clip bathymetry and DTEDLevel 1 to a common boundary for the merging process. The most common source of bathymetryis available on the U.S. Department of Commerce’s National Oceanic and Atmospheric

Administration’s (NOAA) National Data Center for Marine Geology and Geophysics at theTopography & Global Relief web site: www.ngdc.noaa.gov/mgg/bathymetry/relief.html. Click on the Global Relief & Elevation Models and click on the ETOPO5/TerrainBase to access the5-Minute Gridded Elevation Data Selection web site. This is the web site where the bathymetricand global 5-minute terrain data can be downloaded to the computer in different formats. Anyarea can be selected by using the following coordinates: Upper Left (UL) longitude, latitude, andLower Right (LR) longitude, latitude. The format chosen for this project was comma delimited,ASCII format, and Lon Lat Datavalue.

First, the downloaded data were converted from the ASCII format to a grid. This was

done by using the xyz2grid.aml file seen in the Appendix, which can be download from the

ESRI web site at www.esri.com under ArcInfo scripts. The AML was executed at the Arc prompt by typing the string &r xyz2grid indian.xyz oceandd . Second, the new grid had to be projected to a UTM projection, zone 47, and WGS 84 datum by using the PROJECTGRID

command at the Arc prompt. The following command line was issued projectgrid bathdd 

bathutm utm.prj with a utm.prj file shown in Figure 14.

Page 22: US Army: bathdtedtn01

8/14/2019 US Army: bathdtedtn01

http://slidepdf.com/reader/full/us-army-bathdtedtn01 22/38

17

Third, the grid bathutm needed to have the same cell size as the DTED Level 1 data. The RESAMPLE function was issued with the following string bathres90 = resample(bathutm, 90,

bilinear) at the GRID prompt. Fourth, the bathres90 was clipped to the same area as DTEDLevel 1 by using a generated bounding box of the area. This was accomplished by using the LATTICECLIP command at the Arc prompt with the following command line latticeclip

bathres90 areaclip bathresclip minimum. Fifth, the bathymetry was ready to be clipped by theDTED Level 1-generated coastal vectors. Two different coverages were created in ArcEdit to produce the desired effect. The first coverage used the coastline with island boundaries to clip

the DTED Level 1 terrain shown in Figure 15. The second coverage used the entire ocean area toclip the bathymetry shown in Figure 16. The command LATTICECLIP from step 4 was used toclip the DTED Level 1 and bathymetry using the two different coverages. Sixth, the INT functionwas issued at the GRID prompt to convert the clipped bathymetry data to DTED Level 1 integer values using the string oceanint = int(oceanresclp).

Seventh, NODATA values for the islands are created and provide data to complete themerging process correctly. This was done by selecting the ocean and island polygons from the

DTED Level 1-generated coastal vectors. The ocean and island polygons were dumped into anew coverage by using the PUT command. An elev attribute field was added to the newocean/island polygons. The ocean polygon was given a value of 0 and the island polygons weregiven a value of -9999, which is a NODATA value. Eighth, the ocean and island polygons wereconverted to a grid by using the POLYGRID command with the string polygrid islandcov

islandmask elev at the Arc prompt. Ninth, the SELECTMASK function was used to mask out theislands from the clipped bathymetry. The following string was used to execute the processoceanmask = selectmask (oceanclp, islandmask) at the GRID prompt. The result of the maskingis shown in Figure 18 with the before-masking result shown in Figure 17.

Tenth, the GRIDINSERT command was used to merge the clipped DTED Level 1 and

masked bathymetry with the update option using the command line gridinsert oceanmask thailandclp landocean update at the Arc prompt. The result of the GRIDINSERT command isshown in Figure 19 with black areas near the coastline indicating NODATA values. The bathymetry elevations in the first bathymetry/terrain merge were found to be higher in certaincoastal locations, shown in Figure 19, by the bathymetry appearing higher than the land. Alisting of the bathymetry was made using the LIST command at the GRID prompt by using list 

oceanmask.vat . The highest value found from the listing was 331 m. The CON function was used

to select values greater than -11 m to correct all the inlet waterways. The string oceancorr =

con(oceanmask > -11, -10, oceanmask) was used to perform this correction. The bathymetry and

terrain data sets were merged again using the GRIDINSERT command with the results shown inFigure 20. In the final step, the CON and ISNULL functions were issued at the GRID prompt to

eliminate the NODATA values on the coastline. The string landocnisnl = con(isnull(landocean),0, landocean) was used for the final process to make the NODATA values equal 0 with the

results seen in Figure 21. In Figure 22, the final delivered merged bathymetric/terrain data set isshown in a color-shaded relief.

Page 23: US Army: bathdtedtn01

8/14/2019 US Army: bathdtedtn01

http://slidepdf.com/reader/full/us-army-bathdtedtn01 23/38

18

Figure 15. DTED Level 1 Clipped to Coastal Lines

Page 24: US Army: bathdtedtn01

8/14/2019 US Army: bathdtedtn01

http://slidepdf.com/reader/full/us-army-bathdtedtn01 24/38

19

Figure 16. Bathymetry Clipped to the Coastal Lines

Page 25: US Army: bathdtedtn01

8/14/2019 US Army: bathdtedtn01

http://slidepdf.com/reader/full/us-army-bathdtedtn01 25/38

2   0  

Figure 17. Before the SELECTMASK Function

Page 26: US Army: bathdtedtn01

8/14/2019 US Army: bathdtedtn01

http://slidepdf.com/reader/full/us-army-bathdtedtn01 26/38

2  1  

Figure 18. After the SELECTMASK Function

Page 27: US Army: bathdtedtn01

8/14/2019 US Army: bathdtedtn01

http://slidepdf.com/reader/full/us-army-bathdtedtn01 27/38

22

Figure 19. After the GRIDINSERT Command

Page 28: US Army: bathdtedtn01

8/14/2019 US Army: bathdtedtn01

http://slidepdf.com/reader/full/us-army-bathdtedtn01 28/38

Figure 20. After the CON Function

2   3  

Page 29: US Army: bathdtedtn01

8/14/2019 US Army: bathdtedtn01

http://slidepdf.com/reader/full/us-army-bathdtedtn01 29/38

2  4  

Figure 21. After the CON and ISNULL Function

Page 30: US Army: bathdtedtn01

8/14/2019 US Army: bathdtedtn01

http://slidepdf.com/reader/full/us-army-bathdtedtn01 30/38

25

Figure 22. Color-Shaded Relief of Bathymetry/Terrain Merge

Page 31: US Army: bathdtedtn01

8/14/2019 US Army: bathdtedtn01

http://slidepdf.com/reader/full/us-army-bathdtedtn01 31/38

26

In the final step, it might not make sense to replace NODATA values with 0 values. Thisis just an approximation of the coastal boundary. The coastal boundary vectors in modeling and

simulation are used to help build a TIN and make the coastal ocean-land boundary equal to 0elevation. The elevation in the real world may be some other value. This approximation is

suitable for modeling and simulation because of the increase in correlation between the ocean-

land boundary not before possible in other construction efforts. The steps involved in themerging process are illustrated in Figure 23.

CONCLUSIONS

A coastal boundary line, which can be generated from DTED Level 1, will correlate better to theDTED Level 1 data than the DCW coastal boundary lines. The coastal boundary method allows

for the generation of vectors for a modeling and simulation database, which correlates well withDTED Level 1 data when no other sources are available. The generation of coastal vectors seems

to increase the number of features, such as islands. The coastal boundary vector also was used toclip DTED Level 1 and bathymetry to a common coastal boundary for the merging process.

The coastal boundary vectors and enhanced bathymetric/terrain data provide informationnot previously available to modeling and simulation for maneuvers by joint land, sea, and air operations using ArcInfo commands and functions. The coastal boundary method will guaranteea correlated result. The proposed methods can work with any elevation data set. Further investigation is needed to see if other data sets correlate better to DTED Level 1 and futureDTED products for modeling and simulation. Additional research is needed to study thecorrelation between higher resolution vector data sets and DTED products, as well as betweenhigher resolution elevation data sets.

Page 32: US Army: bathdtedtn01

8/14/2019 US Army: bathdtedtn01

http://slidepdf.com/reader/full/us-army-bathdtedtn01 32/38

27

Figure 23. Flow Chart of the Merging Process

Page 33: US Army: bathdtedtn01

8/14/2019 US Army: bathdtedtn01

http://slidepdf.com/reader/full/us-army-bathdtedtn01 33/38

Page 34: US Army: bathdtedtn01

8/14/2019 US Army: bathdtedtn01

http://slidepdf.com/reader/full/us-army-bathdtedtn01 34/38

29

APPENDIX - XYX2GRID.AML

/* xyx2grid.aml/*/* Creates a grid from a textfile containing X,Y,Z values.

/*/* History/* Stephen Lead, Original coding - 21 Jan, 2000/*/*&severity &error &routine bailout&args textfile grid

&call checkargs&call fileman

&call writefiles

&call generate&call finish

&return

/*&routine generate

/* Generate the point cover.

&s cover [scratchname -prefix xyz -directory]generate %cover%

input %tempfileXY%points

quitbuild %cover% points

/* Create an INFO file from the Z values.

&s zlist [scratchname -prefix xyz -info]tablesdefine %zlist%%cover%-id 4 5 belevation 10 10 n 4

~add from %tempfileZ%commitquit

/* Join the cover with the elevation values.

Page 35: US Army: bathdtedtn01

8/14/2019 US Army: bathdtedtn01

http://slidepdf.com/reader/full/us-army-bathdtedtn01 35/38

30

joinitem %cover%.pat %zlist% %cover%.pat %cover%-id %cover%-id

/* We get the cellsize by subtracting the distance between the first 2/*points in the textfile.

&s fileunit [open %textfile% openstat -read]&if %openstat% <> 0 &then

&do

&s str Error opening textfile %textfile%; &call bailout&end

&s X1 [extract 1 [read %fileunit% readstat]]&s X2 [extract 1 [read %fileunit% readstat]]&if %readstat% <> 0 &then

&do&s str Error reading textfile %textfile%; &call bailout&end

&s null [close %fileunit%]

&s gridsize [calc %x2% - %x1%]&if %gridsize% LE 0 &then

&do&s str Error setting output grid size; &call bailout&end

/* Finally, we do the point to grid conversion.pointgrid %cover% %grid% elevation%gridsize%

yesnodata

&return

/*&routine writefiles

/* Write the ID and XY to one file, the ID and Z to another. We need to

/* check that the values in the textfile are numeric.

&s ID = 0&s line [read %infileunit% readstat]

&do &while %readstat% = 0

&s ID = %ID% + 1&s x [extract 1 %line%]

Page 36: US Army: bathdtedtn01

8/14/2019 US Army: bathdtedtn01

http://slidepdf.com/reader/full/us-army-bathdtedtn01 36/38

31

&s y [extract 2 %line%]&s z [extract 3 %line%]

/* Check that values in the textfile are numeric.

&if [null %x%] | [null %y%] | [null %z%] | ~

[type %x%] > -1 | [type %y%] > -1 | [type %z%] > -1 &then&do&s str Bad value encountered in %textfile%: %line%

&call bailout&end

&s outlineXY [quote %ID% %x% %y%]&s outlineZ [quote %ID% %z%]&s writestatXY [write %XYfileunit% %outlineXY%]&s writestatZ [write %Zfileunit% %outlineZ%]&if %writestatXY% <> 0 | %writestatZ% <> 0 &then

&do&s str Error writing to temporary textfile;&call bailout&end

&s line [read %infileunit% readstat]&end

/* Append the word END to the XY file.&s writestatXY [write %XYfileunit% END]&if %writestatXY% <> 0 &then

&do&s str Error writing to temporary textfile;&call bailout

&end

&s null [close %XYfileunit%]&s null [close %ZFileunit%]

&return

/*&routine fileman

/* Open the textfile.

&s infileunit [open %textfile% openstat -read]&if %openstat% <> 0 &then

&do&s str Error opening textfile %textfile%; &call bailout

&end

Page 37: US Army: bathdtedtn01

8/14/2019 US Army: bathdtedtn01

http://slidepdf.com/reader/full/us-army-bathdtedtn01 37/38

32

/* Create a temporary textfile to hold the ID and X,Y values.&s tempfileXY [scratchname -prefix xyz -file]

&s XYfileunit [open %tempfileXY% openstat -write]&if %openstat% <> 0 &then

&do

&s str Error writing temporary textfile. Please check write permissions.&call bailout&end

 /* Create a temporary textfile to hold the ID and Y values.&s tempfileZ [scratchname -prefix xyz -file]&s Zfileunit [open %tempfileZ% openstat -write]&if %openstat% <> 0 &then

&do&s str Error writing temporary textfile. Please check write permissions.&call bailout

&end 

&return

/*&routine checkargs

&if [null %textfile%] | [quote %textfile%] = '#' &then &call usage&if [null %grid%] | [quote %grid%] = '#' &then &call usage&if [quote %textfile%] = 'usage' &then &call usage&if not [exist %textfile% -file] &then

&do&s str Can't find textfile %textfile%; &call bailout&end

&if [exist %grid% -grid] | [exist %grid% -cover] &then&do&s str Geodataset %grid% already exists; &call bailout&end

&return

/*

&routine finish

/* Delete the temporary files, covers, etc.&s null [delete %tempfileXY% -file]

&s null [delete %tempfileZ% -file]&s null [delete %zlist% -info]

Page 38: US Army: bathdtedtn01

8/14/2019 US Army: bathdtedtn01

http://slidepdf.com/reader/full/us-army-bathdtedtn01 38/38

kill %cover% all

&s str Grid %grid% with cellsize %gridsize% was generated from %textfile%...&call bailout

&return

/*

&routine usage

&s str Usage &r %aml$file% <xyz_textfile> <grid>&call bailout

/*&routine bailout

&severity &error &fail

/* Delete the temporary files and cover, if they've been created.&s null [close -all]&if [variable tempfileXY] &then &s null [delete %tempfileXY% -file]&if [variable tempfileZ] &then &s null [delete %tempfileZ% -file]&if [variable cover] &then

&if [exists %cover% -cover] &then kill %cover% all

&if not [variable str] &then &s str Bailing out of %aml$file%&return; &return &warning %str%

/*/* END OF FILE/*