Welcome to Golden Software Support

New to Golden Software? Our software gurus will help you make the most of your time in the trial.

Schedule a Demo Now >

Comments

4 comments

  • Felipe Camargo de Almeida
    Felipe Camargo de Almeida

    Where do I set the Z value which will blank the values above or below it? This algorithm seems like the normal blanking.

    0
  • Brittany Bodane
    Brittany Bodane

    Hi Felipe,

    Thank you for posting your question! It appears the wrong script was included this article, but the attachment was correct. My apologies for the confusion. I have updated the article so you can copy/paste the correct script should you prefer that to downloading it. 

    You will now see where to set the Z level on line 39. Please let me know if you have any other questions.

     

    Thank you,

    Brittany Bodane

    Technical Support

    0
  • Michael Huber
    Michael Huber

    I am trying to print Grid Statistics for Z, specifically the 99 percentile. Does anyone know how I can accomplish this?

    My code currently displays the zMin & zMax (snip from above) but when I use Debug.Print Grid.Statistics.Percentile99 it returns the 99Percentile of X and I'm not sure how to specify Z. 

    Alternatively, I would be okay with the entire grid statistics running / opening & saving. Then I could scroll for the specific stats I need and open the statistics document at a later date if required, but I cant seem to find out a code for this either.

    I am also confused as to why Debug.Print row; is used at the end, as I get hundreds of numbers printing due to this and it doesn't seem to stop..

    Any advice would be greatly appreciated! :)

    0
  • Brittany Bodane
    Brittany Bodane

    Hi Michael,

     

    Thank you for posting your question. Percentile99 pertains to the Z value by default, so you should be seeing this data for the Z value. You can verify this number by looking at the Grid Report for your grid. If you are still not seeing this in relation to your Z values, please email your script and a data file you are seeing this behavior with to support@goldensoftware.com

    If you would like to have the Grid Report open and save via automation, this can be done during the gridding process. We have a sample script for this you may be interested in: https://support.goldensoftware.com/hc/en-us/articles/227873488-How-can-I-save-a-grid-report-when-using-Surfer-Scripter-. 

    Regarding your last question about Debug.Print row being used at the end of the this sample script, I believe this is included so you can see the script is working, and which row it is on. However, it is not necessary for the function of the script and you can delete these lines if you choose. 

     

    Thanks,

    Brittany

    Technical Support

    Golden Software

    1

Please sign in to leave a comment.