ResInsight/OctavePlugin/OctaveScripts/LGRSOIL.m

14 lines
271 B
Mathematica
Raw Normal View History

2016-11-25 03:53:01 -06:00
# Keep the values in the first LGR only
2016-11-25 03:24:17 -06:00
CInfo = riGetActiveCellInfo();
SOIL = riGetActiveCellProperty("SOIL");
Mask = (CInfo(:,1) != 1);
LGRSOIL = SOIL;
i = 0;
for i = (1:columns(LGRSOIL))
LGRSOIL(Mask,i) = nan;
endfor
riSetActiveCellProperty(LGRSOIL, "LGRSOIL");