mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Initial commit of ResInsight version 0.4.8
This commit is contained in:
13
OctavePlugin/OctaveScripts/LGRSOIL.m
Normal file
13
OctavePlugin/OctaveScripts/LGRSOIL.m
Normal file
@@ -0,0 +1,13 @@
|
||||
addpath("/home/builder/Projects/ResInsightBuildDir/OctavePlugin");
|
||||
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");
|
||||
Reference in New Issue
Block a user