DEM Crop Not Working

Put your support requests here
Post Reply
Message
Author
rjbradley
Posts: 4
Joined: 27 Mar 2016 17:29

DEM Crop Not Working

#1 Post by rjbradley »

I have tried to use the DEM Crop tool with both large and small DEM samples and nothing happens. When I save the DEM the file size is the same and the coverage area remains the same. I am using Version 2.6.0.1.
geophil
Posts: 1516
Joined: 05 Jan 2011 16:45
Contact:

Re: DEM Crop Not Working

#2 Post by geophil »

All DEM files cover a rectangular area. If you crop-off part of it, but the overall dimensions remain the same, the file size will also remain the same. (The MicroDEM .dem file format, which is used by TransDEM, does not compress.)
Pencil42
Posts: 4
Joined: 14 May 2014 01:51

Re: DEM Crop Not Working

#3 Post by Pencil42 »

I just came here to post the same thing. I'm also unable to crop a DEM. I load the DEM, select a rectangular area, hit the crop button, but nothing changes. I was expecting the area outside the selection to disappear, but it remains the same. If it helps, the DEM I'm using is posted at http://carsoncarshops.com/files/m_and_p.zip (630 MB).
I'm sure I'm just missing a step somewhere, but I just can't see it.
I'm running TranzDEM 2.5.1.0 x64 on Win 10 x64.

Any help you can provide would be great!

Thank you,
Curtis
geophil
Posts: 1516
Joined: 05 Jan 2011 16:45
Contact:

Re: DEM Crop Not Working

#4 Post by geophil »

Hello Curtis,

this is quite strange. Works fine here.

Image
Image
Pencil42
Posts: 4
Joined: 14 May 2014 01:51

Re: DEM Crop Not Working

#5 Post by Pencil42 »

Like I said, I'm sure I'm just clicking something wrong, or missing a step.

I first define a rectangular area using the mouse pointer:
Image

I then click on the 'crop' button (circled):
Image

The operation completes and the rectangular box is gone, but the DEM hasn't changed:
Image

Any ideas?
Curtis
geophil
Posts: 1516
Joined: 05 Jan 2011 16:45
Contact:

Re: DEM Crop Not Working

#6 Post by geophil »

I see.

The "Reduce Margins" command will do a crop indeed, but uses the DEM bounding box as its mask. The bounding box is an invisible rectangular mask which encompasses all non-void points of the DEM.

So, to crop a DEM, you first have to erase portions of the DEM, setting points to "void". For this you usually draw and drag the normal mask around the area you want to preserve and then apply the "Erase DEM points" command, the scissors icon. The cursor will change shape. Then you click outside your mask. A dialog box will pop-up which allows you to adjust the behavior of the function. Once applied, you will get the results shown in my screenshots.

After that, you can apply the "Reduce Margins" function and it will work as expected. Note that "Reduce Margins" will also be applied automatically if you save any DEM to file.
Pencil42
Posts: 4
Joined: 14 May 2014 01:51

Re: DEM Crop Not Working

#7 Post by Pencil42 »

That was it; thank you for the help!!

Curtis
Post Reply