jaminzoda / terra-antiqua

Terra Antiqua is a QGIS plugin for paleogeographic reconstructions.
GNU General Public License v3.0
6 stars 0 forks source link

Interpolation instead of re-scaling in Paleoshorelines tool #72

Closed jaminzoda closed 4 years ago

jaminzoda commented 4 years ago

The paleoshorelines tool looks inside the shorelines mask and if the values are below sea level it brings them up above it, and if outside the shorelines mask values are above sea level, they are set below it. The values are set below and above sea level with a rescaling technique, which preservers the initial pattern of the relief, rescaling the elevation values between new minimum and maximum values. This approach has a con: when setting the values above zero we define new maximum (e.g 5 m); in some cases there might be a need to set it higher (e.g. 100 m); In this case we may end up with an artifact with high values close to the shoreline and low elevation behind it. To solve this issue, we can instead of rescaling set the values to NAN and then interpolate them.

Diego635 commented 4 years ago

When treating large areas, this isn't effective. By removing the values and interpolating afterwards from the surroundings, we have areas that are surrounded by 0 (shoreline) and where the closest negative/positive pixel is too far away to be taken into consideration by the interpolation algorithm. So that area gets the value 0. This creates large patches (artefacts) with altitude 0.

This is solved by taking the original topography at those areas, when available, and rescaling it between -5 and -0,1 / between 0,1 and 5. If we can't find original topography / bathymetry values for them, they should be NaN.

Diego635 commented 4 years ago

There is a bug: When using the new interpolation option in paleoshorelines, the resulting raster can't be used by the feature creator. It shows an error.

jaminzoda commented 4 years ago

The bug, which did not allow using the resulting raster from pshorelines tool in the fcreator was actually a bug of the latter, and it is fixed now.