Knowledgebase Home > Surfer Scripter | Contact Knowledgebase Home| Contact
Search the Knowledgebase Browse by Category
Surfer Scripter rss button
Surfer Scripter questions
(Page 1 of 3)     «« |  Prev | 1 | 2 | 3 | Next | »»
There were 48 questions found in this category:
  1. questionCan I make 3D surface maps transparent?
    The 3D surface maps do support inter-layer transparency, but not complete transparency. What this means is that if you overlay multiple surfaces, then the surfaces will be transparent relative to each other, but not to other objects behind the map: To to this, double click on one of ...

  2. questionHow can I set the grid spacing with the GridData function?
    The GridData method does not have parameters for setting grid spacing, but it does let you specify the number of grid lines. Calculate the number of grid lines for the desired grid spacing with the following equation: Number of grid lines = ( (max - min) / spacing ) To get the data min and max f ...

  3. questionWhere can I find script examples?
    There are many locations where script examples can be located. Download Scripts for Surfer, Grapher, and MapViewer from our website: Golden Software provides a number of useful sample scripts that product owners can download for free from our website. http://www.goldensoftware.com/scripts.s ...

  4. questionHow do I import and/or export a TIF with a TFW world file into Surfer?
    Surfer 9 You do not need to do anything special to import a georeferenced image file. Go to Map | New | Base Map, select the TIF file and click Open. If the image is georeferenced, it will import in the correct map coordinates. To export a TIF/TFW file from Surfer 9, you can simply: 1. Go to Fil ...

  5. questionCan I run a script from the command line?
    Yes, you can run a script via the command line with this syntax: "<Scripter path>" -x "filename.bas" The –x means execute, and quotes are necessary around the file path to the Scripter.exe file and the BAS file. For example: “c:\program files\golden software\surfer8\scripte ...

  6. questionHow can I change the blanked vales in my Surfer GRD to another value?
    You can convert the blanked grid nodes in a GRD file to any other value a couple different ways: 1. Use the Grid | Filter | Linear Convolution Filters | User Defined Filters | General User-defined (mxn) to fill a blanked area with a value. Set the Edge Effects | Blanked Nodes to Fill and the V ...

  7. questionWhat's the best way to learn Scripter?
    I found that the easiest way to learn how to write scripts is to know what you want to do in the program. Anything you can do in the program, you can do in a script, the sequence will be the same. Once you know the sequence of steps you want to perform, the next step is writing the script. For ...

  8. questionError when run script "ActiveX Automation: server cannot create object"
    There could be a few reasons why you are getting this error: 1. The error message "(10092) ActiveX Automation: server cannot create object" may indicate that Surfer has not been installed correctly. You can try uninstalling and reinstalling Surfer and attempt to run the script again. 2 ...

  9. questionHow can I calculate the volume or area between contours?
    You can calculate the volume or area between contours either manually or by using a script to automate the process. Manually Go to Grid | Volume, select your grid file and click Open. Use the GRD file as the Upper Surface and the Z level of the first contour as the constant Lower Surface. ...

  10. questionEnumeration constants (srfGridFmtXYZ) are not working, how can I reference the Surfer type library?
    When the enumeration constants are not working or causing errors, it is usually because the Surfer type library is not referenced. This reference is needed for a program to recognize the value of the enumeration constants (such as srfGridFmtXYZ) that Surfer uses to reference various settings. Y ...

  11. questionDo you have an example in Python?
    Surfer can be called from a Python script. Below are some examples. 1. Here is an example that shows how to start Surfer: import win32com.client def main(): app = win32com.client.Dispatch("Surfer.Application") plot = app.Documents.Add(1) app.Visible = True main() 2. H ...

  12. questionHow can I load Surfer in a script using a different SET file?
    Use the shell( ) command to specify the SET file on the command line, then use the GetObject( ) command to use the existing instance of Surfer. ExeFile = "c:\program files\golden software\surfer 9\" + "surfer.exe" SetFile = "c:\program files\golden software\surfer 9\" + "new.set" Shell(ExeFile ...

  13. questionWhat is a "map frame" or a "map layer"?
    A map in Surfer is composed of its map frame and map layers, which you can see in the Object Manager. The map frame consists of all the axes and all the map layers, and is called Map by default. The map layers are the individual map types that you use to display your data. A map in Surfer ...

  14. questionCan I load a CLR file or specify a preset for a contour map via automation?
    Surfer does not have the ability to load a CLR file or specify a preset colormap to a contour map in a script. To add your vote to this request on the suggestion file, please contact surfersupport@goldensoftware.com. Refer the contourfill.bas script on our web site for an example of how t ...

  15. questionMy data is in curvilinear (cylindrical or spherical) coordinates. How can I get it into a format that Surfer can use?
    We have written a GS Scripter program ( crv2xyz7.exe ) which can convert from cylindrical or spherical coordinates into X, Y and Z data. This program is available for download from our Scripts Library.

  16. questionWhen overlaying base maps in a script how do you assign a label to each map?
    There are two steps to naming your maps: 1. Name the "frame" or "container" that holds the map and axes 2. Name the "contents" or "overlays", i.e. the actual maps. When you click on a map interactively in Surfer, the status bar in the lower left corner of the window reports the map frame to th ...

  17. questionWhy do I get "ActiveX Automation: server could not be found" error when running a script?
    The most common cause of this error is failing to run Surfer interactively so it can register itself in the Windows registry. Please make sure Surfer is installed on the computer and that you have opened the application manually at least once before trying to run the script.

  18. questionHow can I set the opacity/transparency of an object in automation?
    Use the object.Opacity property of the object to specify the opacity (or transparency) of the object in automation. For more information, please see Help | Surfer Automation Help | List of Methods and Properties | Opacity Property. The example below creates a blanked image map and a filled cont ...

  19. questionHow can I specify a particular Excel worksheet to load in Scripter?
    To specify a particular worksheet in an Excel XLS or XLSX file, use the DataFileOptions parameter of the "2" method when loading the data file (ie. GridData2, CrossValidate2, AddPostMap2, AddClassedPostMap2, AddVariogram2, SetInputData2, GridResiduals2, Transform2). For example, to grid a sheet ...

  20. questionHow can I update my Surfer 6 scripts to work in the current version?
    The newer Surfer automation model, introduced in Surfer 7, is very different than Surfer 6. Your Surfer 6 scripts may require considerable revision to work with newer versions of Surfer. Unfortunately, there is not an automatic way to convert scripts from the Surfer 6 automation model. To h ...

(Page 1 of 3)     «« |  Prev | 1 | 2 | 3 | Next | »»
Powered by ActiveKB Knowledgebase Software

Home * Products * Gallery * Support * About Us * Register * Order * Demos