The information on this page corresponds to
Version 1.0
If you are using another version of Terra Antiqua, select it below.
Remove Artefacts
Artefacts can be inherited from the input data sources or introduced to the map during the raster processing within the framework of Terra Antiqua. For example, filling gaps by interpolation can cause some abnormally high or low values that need to be removed.
Remove Artefacts is designed to remove the artefacts present in the data or introduced during different processing steps from the DEM raster. A big advantage of this tool is that polygons are drawn by the user to specify the area where artefacts will be removed. If needed, more polygons can be drawn.
This function is very similar to the tool Fill gaps. Like the primary tools, the drawn polygon is rasterized, and the raster mask is used to filter out the pixels containing artefacts. The difference is that Remove Artefacts does not need a shapefile with previously drawn polygons. Here the user is prompted to draw them on the spot, making the process faster but harder to replicate.
The user then defines in the dialog interface what is to be considered an artefact within those polygons (step 3). If the user writes "NoData"(case insensitive), the algorithm will not erase any value and only work on the empty pixels. A mathematical expression can also be entered to remove more specific values (for example H>2500 removes all points above 2500 m elevation).
After the artefacts are removed, the pixels may be kept empty or interpolated immediately (to be chosen by the user in the parameters window) if the user chooses to do so (step 4).
Step by step
-
Click on the icon
Read the instructions, click OK and draw the first polygon. Right-click when you are done.
If you want to draw more than one polygon at a time, you will have the option in step 5. Keep in mind that all polygons will be treated equally, which means that the same formula will be used in all of them to find the artefacts to be removed.
In the parameters window you can enter the formula that will define which values are to be considered as artefacts. Follow the instruction from the text on the right of the window to enter the formula.
You have two options in this tool. Either you remove the artefacts and leave a blank space for each removed pixel, or you can interpolate from adjacent values to fill those gaps. For the first option, skip step 4.
Check the box to Interpolate values for removed cells to replace the artefacts with interpolated values.
If you want to add more polygons, click Add more polygons. If not, skip this step.
-
Choose the Output file path, and click Run.
The polygons you draw here are temporary and will be erased once the processing is done.
When you are drawing the polygon(s), to deactivate the tool, click again on the icon
The formula must have a specific format. Make sure you follow the instructions from the text on the right part of the window. The algorithm recognizes all mathematical operators. For the full list see numpy website.