[Thread Prev][Thread Next][Index]

[las_users] Referencing LAS GUI Information



Hello All,

I'm trying to access the "Selected Depth" information that the user has selected in the LAS GUI. How can I reference this information? Is there a variable that contains the value of the user's input?
I want to be able to insert the "Selected Depth" value into the position currently occupied by "$2" in the script below.

Thanks for any suggestions you care to provide.

John

define region/default save

cancel var/all

use "/data/dgom/NOS_GOM_Model_C2Rmap.nc"

let out_var1 = curv_to_rect($1[d=1,L=1], map)
let out_mask = curv_to_rect(mask[d=1], map)
let out_depth = curv_to_rect(depth[d=1], map)
let out_zeta = curv_to_rect(zeta[d=1,L=1], map)

if `strcmp("($1)","temp") eq 0.0 or strcmp("($1)","salt") eq 0.0 or strcmp("($1)","u") eq 0.0 or strcmp("($1)","v") eq 0.0` then
let sig = z[gz=$1[d=1]]
let depthValues = sig * ( out_depth + out_zeta )
LET zmin = `depthValues[x=@min,y=@min,z=@min,t=@min]`
LET zmax = `depthValues[x=@max,y=@max,z=@max,t=@max]`
define axis/z=`zmin`:`zmax`:10/units=meters/depth zdepth
let valuesOnDepth = zaxreplace(out_var1,depthValues,z[gz=zdepth])
let valueAtDepth = valuesOnDepth[z=$2]
let masked_var1 = if ( out_mask eq 1 ) then valueAtDepth
else
let masked_var1 = if ( out_mask eq 1 ) then out_var1
endif

shade/title="Plot of $1" masked_var1

go land red

set region save
set mode/last verify


[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP
Contact Us | Privacy Policy | Disclaimer | Accessibility Statement