Search the Knowledgebase |
Browse by Category |
|
|
|
View Questions by Category |
|
There are no sub categories
|
Surfer Scripter
|
|
Surfer Scripter questions
|
(Page 1 of 3)
«« |
Prev |
1 |
2 |
3 |
Next |
»»
|
There were 46 questions found in this category:
Where 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 ...
How 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 ...
Can 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 ...
How 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 ...
What'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 ...
Error 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 ...
How 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. ...
Enumeration 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 ...
Do 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 ...
How 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 ...
What 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 ...
Can 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 ...
My 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.
When 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 ...
Why 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.
How 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 ...
How 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 ...
How 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 ...
I have Surfer 8 and 9 installed. How do I know which version my script will use?
If you have more than one version of Surfer installed, the script will use whichever version of Surfer was last opened. So you can open Surfer 8, close it, run the script and it will run in Surfer 8. Then open Surfer 9, close it, run the script and it will run in Surfer 9. You can also use ...
How can I convert my cylindrical/spherical coordinates to XYZ so Surfer can read them?
See the attached the Surfer script crv2xyz9.bas for converting cylindrical (r, theta, z) and spherical (r, theta, phi) coordinates. Refer to the attached sphere.srf and cylinder.srf for coordinate definitions.
(Page 1 of 3)
«« |
Prev |
1 |
2 |
3 |
Next |
»»
|