Defining a Model Setup with Negative values for DEM

Hi Giuseppe,
I hope you’re doing well.

Is it possible to define a model setup using a DEM that includes a long flume (50 m) positioned between -20 m and 30 m? I tried using negative values for “west” and “east” in my DEM file, but it didn’t work.

I’d appreciate any guidance on this.

Best regards,
Alireza

Hello @AlirezaZarei,

the DEM file is always imported with the corner at (0, 0). You should then be able to use shift() to change its offset in world coordinates. Something like:

GeometryID dem = addDEM(....);
shift(dem, -20, 0, 0); // values are the offsets in X, Y and Z direction

Hi Giuseppe,

I just used shift() and it worked properly. Thanks!

Alireza