Sie sind auf Seite 1von 6

Lucy and Simons ArcGIS notes

ArcGIS is composed of Arc Desktop and ArcWorkstation. Desktop is pretty and makes nice pictures, it includes ArcMap, ArcCatalogue, ArcToolbox and ArcScene. You will probably be using ArcMap most. Workstation includes ArcINFO and ArcGrid and is more powerful than Desktop but command line oriented so it takes a bit longer to get to grips with. Workstation will also create info and log files which are useful. Log files can be read in Notepad/ Wordpad and record everything you do in ArcINFO so a useful check on what you have already done. Never delete your info folder or your work may be ruined! There are lots of files and folders associated with Arc grids and shapefiles so try and be as neat and tidy as possible. Deleting, renaming and reorganising files should always be done through ArcINFO and ArcCatalogue or else things may start disappearing! We have included a collection of useful things to know below but the possibilities are endless and there is always more than one way to do anything. Complete Simons Arran practical to get to grips with the basics before you start here. 1. 2. 3. 4. 5. 6. Calculating hillshade, contours and slope Drainage networks Neighbourhood statistics Displaying XY data from Excel and creating shapefiles Georeferencing satellite images, air photos, and scanned maps Developing your own tools

1. Calculating hillshade, contours and slope This is most easily done in ArcMap using the extensions spatial analyst or 3d analyst. If these toolbars are not visible check the extension is turned on (Tools tick the boxes) and the appropriate toolbar is turned on (View Extensions Toolbars tick the boxes). So, 3d analyst/spatial analyst surface analysis slope/ hillshade/ contour etc. Different parameters for the hillshade will bring out different features in the DEM so create a few hillshades to compare. Also, contour interval etc. can be easily altered depending on what you are looking for. Hillshade is best displayed on top of the DEM so make sure it is above the DEM in the Layers list and make it partly transparent. Right click on the hillshade layer properties display transparency box. Usually 50% works quite well.

2. Drainage networks To create a synthetic drainage network we have listed the steps needed in ArcINFO. It is now possible to do this in ArcMap using ArcToolbox. Click on the red toolbox symbol in the main toolbar and you should get a docker with lots of red boxes. Navigate to Spatial Analyst Tools and there is a hydrology toolbox. The steps will be the same as outlined in ArcINFO below.
Arc: Arc: Arc: Arc: w c:\lucy\taiwan\ w c:\lucy\taiwan\topo cw drainage w drainage lists current workspace directs to my workspace creates workspace drainage directs to workspace drainage

launches the Grid environment Arc: grid c:\lucy\taiwan\topo\ Grid: fill c:\lucy\taiwan\topo\taiwan_dem taiwan_fill # # tw_flowdir removes sinks from the DEM Taiwan_fill and creates a flow direction grid tw_flowdir Grid: tw_flowacc = flowaccummulation (tw_flowdir) defines flow accumulation grid (the total number of pixels that flow into a gridpoint) Grid: streamnet = con (tw_flowacc > 400, 1) sets maximum catchment area, ie. If greater than 400 pixels flow into a cell make it a stream strahler) Grid: streamord = streamorder (streamnet, tw_flowdir, strahler) assigns strahler stream order Grid: streams = streamshape (streamord, tw_flowdir) produces feature theme of drainage network Grid: links = streamlink (streamnet, tw_flowdir) produces feature theme of drainage Grid: watersheds = watershed (tw_flowdir, links) divides and catchment areas Grid: wpolys = gridpoly (watersheds) produces feature theme of drainage Grid: basins = basin (tw_flowdir) basins Grid: bpolys = gridpoly (basins) Grid: quit Arc: quit

ArcToolbox Drainage basins and streams Hydrology tools in Spatial Analyst

These are the basic commands. Look up the ArcINFO and ArcCatalogue help (search for hydrology) to find out more. Make sure your catchment area is a sensible threshold for your DEM resolution- 1 km2 is a good starting point.

3. Neighbourhood statistics These are most useful for making swath profiles but can also be used to calculate parameters at a variety of length-scales. A statistic (max, range etc.) is calculated for each gridpoint of a DEM. There are two main steps involved o Creating the neighbourhood statistics map o Taking the profiles off the map In ArcMap click on Spatial Analyst Neighbourhood statistics and follow the instructions. For swath profiles you will probably want to calculate max, mean and min elevation. The neighbourhood will be a rectangle say 15 km wide (east-west) and 40 m (1 Taiwan grid cell) high (north-south). The appropriate profile would then be taken north-south. For an east-west profile you want the neighbourhood running northsouth. The size of the swath will depend on the length-scale you are looking at. Here, I have chosen the spacing of the basin as the appropriate length-scale in order to investigate the range of elevations for each basin. Once you produce the map the profile is drawn using the interpolate line tool and profile graph tool in the 3d Analyst toolbar. Any size or shape of neighbourhood can be created (rectangle, round, irregular) but the bigger the neighbourhood the longer it will take for ArcMap to do it. Neighbourhood statistics are referred to as focal max etc in ArcToolbox and ArcINFO. There are new block, point and line statistics available in these packages, We have not had a chance to use these yet but they may be useful to you.

3 Taitung Canyon

Elevation (km)

2 0 -2 -4 -6 0 50 100 Distance (km) Western Foothills

Southern Longitudinal Trough 150 200

Max, mean and min profiles made in ArcMap and exported to Excel.

4. Displaying XY data from Excel and creating shapefiles Shapefiles are best created from .csv MSDos documents so save your Excel file in this format. It may come up with a message about not being able to save everything but dont worry about that. Add XY data, browse for the right folder and follow the In ArcMap click on Tools instructions. This does not create a shapefile but just displays the data, you will have to go through the same procedure with any map you open. OR In ArcCatalogue right-click on the appropriate .csv file and navigate to create Feature class From XY table. Follow the instructions there. This creates a new shapefile which can be added to any map. Once the data is displayed you can make symbol size proportional to values, change colour etc. You can also create an empty shapefile that you can edit yourself adding points, lines or polygons. In ArcCatalogue right click on the folder where it will be located and navigate to New Shapefile. Fill in the boxes making sure you make it a point, polyline or polygon as appropriate. Add the shapefile in ArcMap and start editing (Editor start editing). 5. Georeferencing satellite images, air photos, and scanned maps Satellite images, air photos, and any other images that you scan in (e.g., from geological maps) rarely contain accurate information about their absolute coordinates in space. You have to add this information yourself if you want to overlay these images with DEMs or base maps. This procedure is called georeferencing and involves matching points on the image with accurately-located points on an existing ArcMap layer (e.g., a base map or DEM). Georeferencing is very easy in ArcMap. You need: (i) your image, saved either as a BIL, TIFF, or JPEG, and its header file; (ii) an ArcMap layer (such as a DEM or a base map) of the same region, which already has spatial coordinate information. Proceed as follows: Add a layer that already has map coordinates (your target layer) and the raster image that you want to georeference to a new data frame in ArcMap. In the table of contents, right-click your target layer and click Zoom to Layer. From the Georeferencing toolbar, click the Layer dropdown arrow and click the raster layer you want to georeference. (Hint: if the Georeferencing toolbar isn't there, right-click the grey area at the top of the screen and click a tick next to Georeferencing). On the Georeferencing toolbar, click Georeferencing and click Fit to Display. This will display the raster in the same area as the target layer. You can also use the Shift and Rotate tools to move the raster if you want. It helps to make your layers partly transparent so that you can see them through each other. It also helps (in my opinion) to unclick the Auto Adjust option. This stops the software from warping the raster as you go, which is often annoying because it hides the layers underneath each other. Click the Control Points button to add control points. To add a link, click the mouse pointer over a known location on the raster, then over a known location on the target

data. Use a magnification window (Window > Magnifier) or zoom in and out. Add enough links for the transformation order (usually you will need a second order polynomial, so set this using the transformation option on the Georeferencing toolbar). You need a minimum of three links for a first-order transformation, six links for a second order, and 10 links for a third order. The more links the better (although things wont generally improve beyond 20-30 control points). It is absolutely essential that the control points are spread evenly across the scene. Good locations for control points are rivers, ridges, coastal features, etc. Click View Link Table to see how well you have done. You can check the residual error for each link and the total RMS error (you need to turn on auto-update for these values to be visible). You have done well if the total RMS error is less than the pixel size of the coarsest resolution image in your pair. If you're satisfied with the registration, you can stop entering links. You can delete unwanted links (or links that have high residuals) from the Link Table dialog box. You can also type exact (x, y) map coordinates if you know these for specific points (such as GPS ground control points etc.). Transform and save your raster after georeferencing by using the Rectify command. Click Georeferencing and click Rectify. This creates a new raster dataset in GRID (best), or TIFF (next best) format.

6. Developing your own tools There are all sorts of ways you can extend ArcGISs capabilities. The ESRI website (www.esri.com) support centre is an excellent source of knowledge there are downloadable tools and answers to other peoples problems than might be useful to you. Search here first if you are looking for something specific. Otherwise you can create your own tools/sequence of commands using Visual Basic/Python or the model maker in ArcMap and AMLs in ArcINFO. We dont have that much experience of these so might not be able to help much. Simon has created a tool for exporting profile data from the map into Excel. If you want to do this the tool can be found at http://www.esc.cam.ac.uk/~simon00/teaching

If it goes wrong important things to check before panicking! Projection of the DEM Typos Check to make sure you have typed the pathname correctly in ArcINFO, this sounds silly but can happen quite often. Especially check spaces, commas, brackets and underscores. Have you defined the coordinate system of each layer correctly? (ArcToolbox data management tools projections and transformations define projection). Have you transformed the layers to the same coordinate system? (This may help with layers lining up incorrectly). Make sure you know the difference between geographic and projected coordinate systems!

Useful ArcINFO commands Look these up in the ArcINFO help menu to see the syntax. w cw lw lg killall grid gridclip Will tell you the workspace you are in and changes workspace Creates a new workspace Lists workspaces Lists grids in the workspace Deletes a coverage or grid without leaving nasty files lurking on the hard drive Launches the grid environment where you can manipulate grids You can use this in INFO and GRID. You clip a grid to specified coordinates or coverage.

Das könnte Ihnen auch gefallen