Welcome to Golden Software Support

find grid minimum value (z min value)

Comments

1 comment

  • Official comment
    Avatar
    Brittany Bodane

    Hi Avishai,

    Thank you for your post! You can find the min/max Z values and the associated XY coordinates for a grid by converting it to DAT, then sorting the worksheet by the Z column as descending. Or, you could use statistics to find this information. There are a couple sample scripts in the Samples folder (C:\Program Files\Golden Software\Surfer 16\Samples\Scripts by default) that will you can combine to create your script and I have listed them below:

    • GridConvert.bas
    • WksRange.bas - you can see an example of sorting specifically in line 92
    • WksStatistics.bas

    You may also be interested in the following pages in Surfer's Help: 

    If you have any questions as you are putting your script together, feel free to send them along with the script to surfersupport@goldensoftware.com. We'd be happy to point you in the right direction! 

    Thanks,

    Brittany

    Golden Software

    Comment actions Permalink

Please sign in to leave a comment.