MicroDEM for ArtistsBy Bill Allen | ||||
|
Links
About MicroDEM About Page & What's New |
MicroDEM is a freeware mapping program written and published by Prof. Peter Guth, Professor of Oceanography at the U.S. Naval Academy. This page is an independent appreciation of that effort, aimed at helping non-GIS users, especially 3D graphics artists, to get up to speed faster. For more about the program and where to get it, see "What is MicroDEM?" For advanced MicroDEM how-to articles, read the DEM o'Graphics series in 3D Artist magazine.
|
Definitions
GIS: geographic information systems | ||
Grayscale MapsMicroDEM offers an easy way to turn DEMs into grayscale files that can be used as heightfield/displacement maps in many 3D applications that can't load some types of DEMs or any DEMs at all.
There can be a couple of problems here, the biggest of which you just discovered if you got an "Out of resources" error. See "Views, unable to get 100% view." The other possible problem is if your application requires 16-bit grayscale and you don't have a way to convert to that from the 24-bit RGB file MicroDEM saves (it's a color BMP, but all the colors are grays). Note: Ignore File/Grayscale map in the main menu for the purposes discussed here. Also, while, yes, they are all quite gray toned, this section is not referring to DEMs viewed with reflectance (right-click then Display/Parameter/Reflectance) or seen in MicroDEM's OpenGL viewer with Lighting checked. "Grayscale" here refers to a rather visually unattractive stair-stepping of grays according to elevation. | ||||
|
Page Top |
Merging 10 & 30m DEMsIf you are fortunate enough to have some 10m SDTS DEMs for your region of interest, you still may not have a complete set. So what do you do if you want to merge DEMs? You could just work with the lower-res and far more common 30m DEMs. However, once you've seen 10m data, you will want to relegate 30m files to LOD duty. The solution, originated by MicroDEM's author, Prof. Peter Guth, is to convert the 10m and 30m DEMs both to 9m DTED files and then merge them together. Note: 1:24000-scale, 7.5-min. DEMs using UTM coordinates cannot be merged across UTM zones. In 3D Artist issue #43, Thomsen-Norre details how to get around this restriction by using merging and DTED conversion methods much like shown here below for merging 10 and 30m DEMs. (3DA#43 also has an article about merging 10 and 30m DEMs, derived from this page.) The example we will use is in one of my own regions of interest, where I had set out to do a fly-around of Mount Ellsworth on the northwest side of Lake Powell, with its peak at almost the center of three 10m DEMs. How to incorporate the corresponding 30m DEM to fill that empty quad? You can follow the steps with your own set of DEMs, or use the same DEMs we did: From the DEMCon CD (look under 100+ Maps for CanyonLands) or from the following four USGS locations, grab all the available 30m Level 2 (30.2...) and 10m DEMs for...
This screen shot shows an example of a USGS location for 1:24000-scale 7.5-min. DEMs available online for free download, in this case for the Ant Knoll quad in southeastern Utah. The folder contains both the typical Level 1 and Level 2 (improved) 30-meter SDTS DEMs, as well as a 10-meter SDTS DEM, which is not common for most of the country. Note that the file names do not reveal what they contain. Although there are two better DEM choices here, it could be that the older, lower-quality 30m Level 1 DEM will merge better with adjacent quads that are available only as Level 1 DEMs. In MicroDEM, first make sure you have Options/Views/Missing values set to sea level unchecked. Select File/Data Manipulation to bring up the Data Manipulator with its Merge/DEMs command to merge the four 30m DEMs into a new DEM. Then repeat the steps to merge the three 10m DEMs into another new DEM. |
LOD: level of detail | ||
| ||||
|
The report from a completed merge of four 30m SDTS DEMs in their usual .tar.gz form, saved out in the MicroDEM native .dem format. In each merge, you will be prompted for file names until you cancel, then prompted for a name for the new DEM. Following that, there will be some screen activity and confirmations, but the merged image will appear only briefly. You can close the Data Manipulator to inspect a file in the main MicroDEM interface, or you can move right on to the next steps.
Now do one more merge, this time with the two DTEDs. By using a full-coverage 30m merge, you make sure to fill in most of any gaps that may exist between shared 30m and 10m DEM borders (gaps certainly exist for these particular DEMs). And, by putting the originally-30m DTED into the merge first, and putting the originally-10m last, you make sure that the 10m data will take precedence wherever there is an overlap. Let's say that again: Put the best data into the merge last. You will probably notice that this merge has been saved as a .dem file. This is MicroDEM's own unique native DEM file format, one that is supported so far only by Daylon Leveller and Marvin Landis's mdem2stm utility for use with his LightWave plug-in, DEMScape. Since Leveller also supports World Construction Set's .elev file format, going through Leveller is the current route to get a file like this into WCS, with reference to geographic and elevation extents information noted from MicroDEM. For other programs, such as Bryce, World Builder, and most 3D applications, going to grayscale may be the only route. Regardless of the path, Thomsen-Norre reports that the export will work best if you subset the merged DEM to exclude the areas along the edges without elevation data. Important! With saving to the MicroDEM .dem format, the datum used for the new file is what's set under Options/Maps/Primary Datum. See "Datum notes." How big an area can you assemble? There are limits as to how many rows and columns of data MicroDEM can handle, as noted under Help/Program limits. You can pack in more 30m DEMs than 9m or 10m, but you might consider a 15m compromise. Just substitute "5" for "3" in the instructions above when prompted for lat/long intervals. Experiment with different settings to see what works best for you.
The originally 30m and 10m SDTS DEMs viewed in MicroDEM's OpenGL viewer as one big 9m file (no vertical exaggeration). The camera is looking north-northeastward across the center of the merge. Two discontinuity ditches converge on the slopes of Mt. Ellsworth. These are on the border between originally 30m and 10m data. The originally-30m data appears in the lower right quadrant. The results are so good for this kind of viewing that one might be tempted to "puff up" 30m DEMs this way even if no 10m DEMs are available! | ||||
|
Page Top |
Pointers & Clarifications
Getting started: MicroDEM has no user manual, but click on the Help file's Contents tab and read down through the list to get a good introduction to the program and to computer mapping in general. The Help file is extensive and, if you look and think hard enough and work at something, you will probably find an answer to most questions. Try right-clicking anytime you think you should be able to do something but can't find the command. If something doesn't work right, you may be dealing with data that doesn't match the command or doesn't match other data in use. Look for clues with Analyze/Header and Analyze/File metadata. When using the latest "debug" version of MicroDEM, you may run into new or changed features. This offers the opportunity to discover great new capabilities, but you may not find them covered in the Help file, which is only as current as your last full install.
I have bumped my noggin many times in learning to use MicroDEM, and have had the benefit of very experienced advice in getting back on course. I would like to share that here with what follows, hitting some topics that may particularly puzzle new users.
General PointersTar what?: We're all used to grabbing archive files (.zip, .sit, .arj) and having to open them before we can use what's inside. Don't do that with USGS SDTS .tar.gz files! These file names can be difficult to manage, but wait until out pops more than a dozen .ddf files with obscure, non-unique naming. Fortunately for our sanity and drive space, MicroDEM works directly and transparently with .tar.gz files (and with USGS 1:250,000 90m .gz files). This is true whether the files retain their original names or were renamed by you, keeping the .tar.gz extension. For users of some programs (e.g., Bryce, Leveller, WCS) who really do need to open SDTS .tar.gz files, WinZip can do the job on Windows, as can a combination of Stuffit and Untar for Macintosh (40.3K file download), while Unix and Linux handle .tar.gz natively. Some browsers download .tar.gz files changed to _tar.gz, and you may need to change that back before you can access the files. PKzip, Stuffit Expander, and the WinMe compressed folder feature all can work with most or all zip-like files (.zip, .gzip, .gz, .z), but don't know what to do with .tar files. See the faqs.org Compression FAQ for more about gzip and TAR files and utilities.
CAUTIONS: Get organized: In the 3D Artist issue #39 installment of his "DEM o'Graphics" series, Thomsen-Norre explains an approach to organizing GIS files that involves immediately renaming files upon download with logical, readable names. My own approach uses a logical, readable folder structure where I can keep files with their original names. (That saves the renaming step, lets me keep all original files for a given quad together, and makes it easy to check whether a file I'm looking at online is one I already have.) Either way, what matters is starting and keeping to a discipline of file management. Otherwise, your hard drive can quickly become a shambles of large files that you can't use because you can't easily determine what data they contain. DEM holes: MicroDEM has three DEM "hole filling" functions. One works on filling missing data as a DEM is being imported, controlled by Options/Import-Export/Auto fill holes on DEM merge. In the main menu, the Edit/Fill DEM Holes function is intended for filling holes in (only) the current view of a DEM. The primary repair tool is accessed by going to File/Data Manipulation/Edit/Fill DEM holes. Subsetting: MicroDEM has two subsetting (cropping) functions. The subsetting in MicroDEM's main interface is for temporary views, which is not only very handy for looking around but vital for determining what the coordinates will be for permanently subsetting a DEM and for matching that with subsets of DRGs and DOQs. To subset permanently to a new file, use File/Data Manipulation/Subset, then exit the Data Manipulator to load the new cropped file into MicroDEM. Note 1: In his "DEM o'Graphics" series in 3D Artist magazine, Thomsen-Norre repeatedly emphasizes the use of subsetting as a tool to prepare DEMs for more useful and easier-to-use exports to landscape programs and 3D applications. Note 2: Your newly subset DEM will be saved with the Primary Datum, not necessarily the original DEM's datum. See the next section, "Datum notes." Datum notes:
Views open too big: Do DEMs keep opening too big? Just go into the main menu's Options dialog and change Maps/Default Size to something manageable like 480x640. (Options is where you take care of many other tasks, too, like changing initial grid display settings.)
Rebooting:
MicroDEM is constantly evolving and, as such, it is beta software. Having to sometimes close and reboot the program is normal. This is true for something as benign as being unable to bring up the Data Manipulator, as well as for getting the program back to its normal state after receiving a system error message, or for recovering from trying to stop a process. In my experience, MicroDEM crashes gracefully. It almost never causes chaos to the main system that adversely affects other open programs or their data, or that requires or would recommend rebooting Windows itself. (One wishes all non-beta programs were so well behaved.)
Merge vs. DrapeMicroDEM has two kinds of "merges": One kind merges like DEMs or like images (DRG, DOQ, satellite), and the other kind of merge superimposes an image on a DEM. The latter function is called "draping" when used with MicroDEM's OpenGL, Oblique, Perspective, and Flying views. This page uses "draping" when talking about superimposing images on DEMs in any fashion, and "merging" only for combining like images or like DEMs into one new file. Draping images onto DEMs: MicroDEM's special viewing functions such as OpenGL are straightforward in prompting you for the option of draping an associated image onto a DEM view. But how to superimpose in MicroDEM's main interface? First open a DEM with File/Open DEM. Then open the corresponding image, such as a DOQ with File/Open Image or a DRG with File/Open Scanned map. Right-click on the image (not the DEM), click on Display parameter, then on DEM elev merge. The associated DEM will now appear under the image. To adjust the appearance, right-click and select Merge colors. Tip: In addition to draping in MicroDEM, try exporting a reflectance view to Photoshop and combining it there with a topo map or other corresponding image. This technique is explained at length in Thomsen-Norre's "Quick 3D Terrains for Illustrators" in 3D Artist issue #39. Merging images or DEMs: Use File/Data Manipulation (or the In<->Out icon) to bring up the Data Manipulator (if this option has become unavailable, reboot MicroDEM). There, use Merge/DEMs or Merge/Imagery. You will be prompted for the successive files and, at the prompt for one file past the number you want, cancel, and answer the prompt for a file name for the new file. If you are merging DTEDs, consistently answer "Full DEM" to the thinning/subsetting prompt if one appears. You will see some screen action and confirmations, and then you will find yourself back in the Data Manipulator without any image or DEM. Close the Data Manipulator and use the File menu's Open DEM, Open Image, or Open Scanned map to load your newly-merged creation into MicroDEM.
Also see: Views, unable to get 100% viewFirst, how to get specific zoomed views: When looking at UTM files, such as 1:24000 DRGs and 10m or 30m DEMs, you can go immediately to 100% view with Modify/Map area/1:1 view. If you don't see this main menu command, either you aren't in a UTM file, or your version of MicroDEM needs updating. The other way to set an exact view is to use Modify/Map area/Custom image size and type in the width and height. Press the info icon on the active map window (or Alt-i) and note from the Information popup the "<width> by <height>" from the "DEM points" or "Image points on map" line. Then manually enter the numbers into Custom image size (Alt-m-m-c).
Of course, you also can zoom in on a view using the spyglass zoom-plus icon, or use Modify/Map area/Zoom In or the keyboard shortcut (Alt-m-m-i). Now the problem, part 1: If you are using Windows 95/98/Me, you may find that you cannot go to a 1:1, 100% view of a DEM or DRG without getting an "Out of system resources" error, no matter how much RAM and VRAM you have. This is a problem basic to old DOS-based Windows, something that appears to have been remedied somewhat but not completely in WinMe. It is reportedly not a problem under WinNT4/2000, however that may not be the case, as some WinNT users have experienced it. The problem, part 2, is that MicroDEM saves an image at that image's currently displayed resolution. If you can't get an image to a 100% view, then you simply cannot output it to a raster image file at full resolution. What's the solution? There isn't a sure one, but you can experiment with your video settings. Changing 32-bit to 24- or 16-bit display appears to help, then experiment with Custom image size or zoom to discover what the largest view is that you can reach before crashing MicroDEM, and then live within that constraint. Also, remember that you can subset the view or file, which may be all you need to get the results you want. A WorkaroundThere is another approach you might want to experiment with to obtain 1:1 resolution from MicroDEM. Rather than being operating-system limited, the limits of this approach are related to your system's resources. For best use, no other programs should be open, and you should reboot just before using it to obtain all possible memory resources. Try this: In MicroDEM's Options/Imagery, uncheck Display in Map Window. With File/Open Image, load your merged or subset IDX file. Using the Scale menu in the upper left corner of the window, select 100%. Save the file BMP with File/Save Image. You lose the ability to save a georeferenced file, but, with the other approaches, my system (384Mb RAM with Win98SE managing about 3Gb of free space) errors-out if the reported RAM requirement exceeds 31Mb. With this new approach I've been able to obtain 1:1 resolution for a four quad plus-a-bit 7.5-minute DRG merge with a 448Mb RAM requirement. A six quad 509Mb requirement errors-out. | |||
|
Page Top |
Glossary
| |||
|
Page Top |
What is MicroDEM?MicroDEM is created and published by Dr. Peter Guth, Professor of Oceanography at the U.S. Naval Academy. It is a scientific, military, and educational program for MS-Windows that deals with computer mapping using a variety of digital elevation data and image types. If you want to move realworld geographical data into your 3D graphics work, whether for map illustration or scene creation, MicroDEM is often your first step, and may even be the only avenue for getting that data into the form needed by whatever landscape program or general 3D application you are using. MicroDEM is only available for Windows 95/98/Me/NT4/2000. The install includes two optional sub-versions, MGT (Marine Geophysics Trainer), and PAPA, a pipeline planning program in early development. Also included now is a library of TrueType military map symbols that wargamers and news map illustrators may find useful. TerraBase II is the full military version of MicroDEM supported by the U.S. Army Engineer School at Fort Leonard Wood. Underwriting for MicroDEM/TerraBase II has come from many government and military agencies, as you will see in the Help file's "Credits" section. MicroDEM is available to the public for free download without warranty or active support--what you see is what you get, including an extensive Help file but no documentation that holds your hand like comes with commercial software. MicroDEM also can be received on a $20 CD-ROM with the professor's DEMCon DEM conversion utility and a very large variety of DEMs.
| |||
|
Page Top |
About This PageThanks to MicroDEM's author, Prof. Peter Guth, for MicroDEM itself, for providing guidance on some of the points explored on this page, and especially for the DEM-to-DTED technique he originated for merging 10m and 30m DEMs. And many thanks to the pseudonymous Thomsen-Norre for so much help with understanding MicroDEM. I urge you to read and re-read his series in 3D Artist. I'm still learning from them. All the credit for any mistakes or problems on this page goes to this author. Being very busy people, please don't ask for personal support on using MicroDEM, working with DEMs, or other GIS/landscape topics. However, if you find a mistake on this page, please do let me know. Questions will be read, but may not be answered immediately if at all. Any answer most likely will appear for general consumption on this page or the DEM o'Graphics pages.
Page history: Version: Some aspects of MicroDEM discussed on this page apply only to the latest versions of the program. This page was prepared with the full MicroDEM setup version 12.35.30.4 of 30 Oct. 2000, and is correct for debug versions no older than 12.43.7.2 of 7 Dec. 2000. (Thomsen-Norre's article about merging DEMs across UTM zones article in 3DA#43 requires version 12.45.25.1 or later, which also should work slightly better for merging 10 and 30m DEMs.) More recent setup and debug versions are available at www.usna.edu/Users/oceano/pguth/microdem/win32/. | |||