-
SurfMM: Import-export files in Surfer format
This program permits the following transformations between Surfer formats
and the formats of MiraMon:
- Import grids: Given a Surfer grid file (GRD), we can generate the corresponding MiraMon raster file (IMG) with its document file (DOC), based on the information in the GRD header. The Surfer grid should be in ASCII format (care should be taken when exporting from Surfer) and the resulting IMG is always real format. Although the MiraMon raster format requires the same resolution in both dimensions and, therefore, a square pixel size, nevertheless the program allows import Surfer grids with non-square pixel sides. In this case a bilinear geometric correction is performed to resample the original data to a net of equally spaced square pixels with the side equal to the smaller of the two dimensions of the original.
- Export rasters: We can export any uncompressed MiraMon raster format to the Surfer grid format. When the input raster file is a compressed (RLE) file, it is necessary to use the program IMGIMG to decompress it. There is the option to apply a multiplication factor to the raster values when writting the corresponding 'z' coordinates to the GRD format file.
- Export point files:Unstructured point 2D or 3D vector files (VEC) can be exported to Surfer data (DAT) format. The attribute of the VEC file must be numerical. Files in the corresponding Surfer format (DAT) can be imported using the program BDPNT which will produce a structured point file (PNT).
Syntax:
- SurfMM Option InputFile OuputFile [/FACTOR_Z]
Options:
Indicates the type of format transformation: - 1. GRD->IMG
- 2. IMG->GRD
- 3. VEC->DAT
Parameters:
- InputFile
(Input File -
Input parameter): The file we wish to import/export.
- OuputFile
(Output File -
Output parameter): Is the resulting file containing the data from the original file in the desired format
Modifiers:
/FACTOR_Z=
(Factor Z)
The scaling factor that multiplies the values of the IMG raster to generate the 'Z' coordinate of the Surfer DAT file. This factor is optional, if not specified the default is 1. (Input parameter)
Surfer is a registered trademark of Golden Software, Inc.
MiraMon is a registered trademark of Xavier Pons.