Follow

My data is in curvilinear (cylindrical or spherical/polar) coordinates. How can I use Scripter to get it into a format that Surfer can use?

Use the crv2xyz9.bas script, zipped in crv2xyz10.zip, to convert from cylindrical (r, theta, z) or spherical/polar (r, theta, phi) coordinates into X, Y and Z data for use in Surfer. 

 

The script file (.BAS) is zipped together with Sphere.srf and CYLINDER.SRF for coordinate definitions, and the ZIP is available for download from the link above and also from this knowledge base article.

 

To use the script:

  1. Download and unzip the contents of the attached crv2xyz10.zip file.
  2. Open Scripter, which comes with Surfer. You can open Scripter by clicking the Windows Start button and clicking All Programs | Golden Software Surfer 14 | Scripter.
  3. Click File | Open and open crv2xyz9.bas.
  4. Click Script | Run.
  5. Select the data file with the cylindrical, polar, or spherical coordinates and click Open
  6. Enter a name for the new data file of XYZ coordinates to be created and click Save.
  7. Select whether the coordinates in the raw data are cylindrical or spherical (polar) and click OK.
  8. Select whether you would like to see a drawing of the coordinate system the script uses (it opens one of the included SRF files). Click Yes or No.  If you click Yes, you will need to specify the full file location of the SRF files (e.g. c:\temp\).
  9. Enter the column letters of the data and click OK (use the column letters, e.g. abc, not numbers).
  10. Select if the data is in radians or degrees and click OK. The file is converted and saved.

 

Once you have XYZ data, you can create a post map or grid it to make other map types.

 

Updated February 13, 2017

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.