Follow

How do I create a BLN file in Surfer to display multiple polylines?

You may want to create a BLN file with multiple lines in it for use as a fault file, a breakline file, to slice a grid file, or to use as a base map file. To create a BLN file containing multiple polylines, there are a few options:

 

Method 1: Digitize from Surfer

It is easy to digitize line segments from an existing map in Surfer (contour, base, etc.).  When creating a blanking file in this manner, the header information is added to the file automatically. To create a blanking file with the Digitize command:

  1. Create a map in the plot window, and then select the map. This can be an overlay, although the overlay cannot contain a wireframe or surface, or be tilted at any angle other than 90 degrees.
  2. Click Map Tools | Layer Tools | Digitize and the pointer becomes a cross hair.
  3. Click the left mouse button in the plot window to write the current coordinates to the Digitized Coordinates editor window. Click on the location for all vertices in the first line.
  4. If you wish to create multiple polylines, click in the Digitized Coordinates window and manually insert a blank line. Then click in the plot window on the locations for all the vertices in the next line. 
  5. Repeat inserting a space and clicking for each polyline you digitize.
  6. When you are finished defining the polyline(s), click File | Save As in the Digitized Coordinates window, and save the file as a BLN file.
  7. Press ESC or choose any tool button to exit digitize mode.

 

Method 2: Draw it in the Plot Window

You can also draw the objects you want over your map and export them to a BLN file. To do this:

  1. Select your existing map and click Home | Add to Map | Layer | Empty Base. That will add an empty base map layer, called Base(vector), to your map. You can see this in the Contents window.
  2. Select the new empty Base(vector) map layer in the Contents window, and click Features | Group | Start Editing. You are now "inside" the base layer group.
  3. You may want to zoom in a few times so you can see the map clearly.
  4. Click Features | Insert | Polyline and draw the polyline over the map. You can use the scroll bars on the sides of the window when drawing the polyline.
  5. Double click when you are finished to end the polyline. Now the base map layer has one polyline object in it. Draw as many polylines as needed.
  6. Press the ESC key on the keyboard to exit draw mode.
  7. Click Features | Group | Stop Editing to exit the base layer group.
  8. Turn off the four axes in the Contents window (uncheck them) and any other map layers (ie. a Contours layer).
  9. Go to File | Export.
  10. In the Export dialog, choose a location to save the file, give the file a name, and choose to save it as BLN Golden Software Blanking (*.bln).
  11. Click Save.
  12. In the Export Options dialog, click OK, and the file is created.

 

Method 3: Create Manually in a Text Editor

You can also simply enter the vertex coordinates for the polylines in a text editor or the Surfer worksheet. This method is best if you have known X,Y values for your line segments. The BLN format is a one-line header followed by a list of XY coordinates for the object. The header is simply the number of data points in the object. Then save the file with a BLN extension.

 

Below is an example of the proper format for 4 seperate 2-point polylines.  The header consists of the number of points in the line.

 

2
-170.036813503, 41.2459673979
-157.773313416, 57.8892889456
2
-103.171471766, 40.3700031059
-81.5643300805, 51.7575389017
2
-106.091352739, 26.0625638538
-120.398791991, 44.1658483712
2
-119.230839602, 35.9901591629
-155.729396734, 19.9308138099

Note: You can view your BLN file in Surfer using the Home | New Map | Base command.

 

See also: How can I create a BLN file in Surfer?

 

Updated October 20, 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.