Terrain node

hf_remap

Fit a layer from an input range to an output range through a ramp. Typical: normalise a noisy terrain to exactly 0..300 m, or reshape the height distribution (valley floors, plateaus), or remap a mask's contrast.

Inputs

Parameters 8

layerstring
Default height

Layer to remap.

auto_rangetoggle
Default on

Use the layer's current min..max as input range.

in_minfloat
Default 0

Input range minimum (when auto_range is off).

in_maxfloat
Default 1

Input range maximum (when auto_range is off).

out_minfloat
Default 0

Output value for the input minimum.

out_maxfloat
Default 300

Output value for the input maximum.

rampramp
Default [[0,0],[1,1]]

Shaping curve applied to the normalised 0..1 value before mapping to out_min..out_max. E.g. [[0,0],[0.4,0.1],[1,1]] flattens lowlands; [[0,0],[0.5,0.8],[1,1]] makes plateaus.

clamptoggle
Default on

Clamp values outside the input range.

Use it

Add it from the node menu (right-click empty graph space or Tab, then type hf_remap), ask the AI for it by name, or add it with a graph op from the API or MCP:

{"op":"add","type":"hf_remap","name":"my_hf_remap","params":{},"inputs":["src"]}

Any parameter can also be an expression such as "=sin(F*0.1)". See Parameters & expressions.