Welcome to Golden Software Support

GridData z limits

Comments

3 comments

  • Avatar
    Drew Dudley

    Hello Georgios,


    Thanks for posting your question. As of now, we don't support that functionality with automation.  I have added a vote on your behalf to add that functionality to our suggestion file.  In the meantime, you can achieve the same results using GridMath at the end of your script, although I know you were specifically asking about how to define the zMin and zMax before gridding.

    Thanks!

    Drew Dudley

    0
    Comment actions Permalink
  • Avatar
    Georgios Tassis

    Hello Drew!

    Thanks for adding this vote on my behalf. I think I can use GridMath to get rid of the values lower than 1000 after I create the grid, but I can't seem to get the syntax correct. Can you see anything wrong in the command?

    The HTML Clipboard

    surf.GridMath(Function:=" max(A,100)", InGridA:=file_directory + grdc_file, OutGridC:=gridc_file)

    I get this error when I run the script

    (&H80020009) Left of '=' must be l-value (named variable)  max ? (A,100)

    Georgios

     

    0
    Comment actions Permalink
  • Avatar
    Drew Dudley

    Hi Georgios,

    Thanks for posting the follow-up question. I believe the syntax looks correct except you should use GridMath2. Please see this Surfer Help page for more detail. 

    Thanks!

    Drew

    0
    Comment actions Permalink

Please sign in to leave a comment.