script help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • script help

    Greetings!

    I have an array of hits from a surface and have assigned V2 to be the MAX of the array and V3 to be the MIN of the array. I would like to have a script determine if the values of V2 and V3 are positive or negative, and then determine the range of values--if they are both positive, both negative, or a combination thereof.

    I appreciate the help!

    Blessings!

    Tim
    Thanks a million!

    Tim

  • #2
    What's you ultimate goal? to evaluate the profile variation of the entire surface?
    Your assign for RANGE can be something like this (presuming you want it to always output as a positive value)
    Code:
    assign/range=if(v2>0, if((v2-v3)<0,ABS(v2-v3),v2-v3), if(v3>0,abs(v2-v3),abs(v2+v3)) )

    Comment


    • louisd
      louisd commented
      Editing a comment
      note I didn't prove this out in pcdmis, just jotted each of the 4 possibilities out on paper and worked through each one. I would definitely test all of the possible situations out before setting it in stone.

Related Topics

Collapse

Working...
X