Copy/Convert Grid(s)

Use the Grid and Image > Utilities > Copy/Convert Grid(s) menu option (geogxnet.dll(Geosoft.GX.GridUtils.CopyConvertMultiGrids;Run)*) to copy or convert grids and images between standard supported grid/image formats.

Copy/Convert Grid(s) dialog options

Input grid(s)

Select the input grid(s). By default, the input format is taken from General Settings. Use the browse button to choose a different grid or image format.

Fore details, see Application Notes.

Script Parameter: GRIDCOPY.IN

Output grid

Specify the output grid file name. When multiple input grids or images are selected, this field becomes inactive and the output files inherit the names of the input files.

The default output format is set in General Settings; however, you can select a different grid or image format using the browse dialog. You can use this option selectively, for instance, to convert band 2 of an ER Mapper grid into a Geosoft format grid.

Script Parameter: GRIDCOPY.OUT

Output format

The default output format is Geosoft (*.grd); however, you can select a different format from the drop-down list.

If only one input grid or image is selected, this field becomes inactive. To change the output format in that situation, use the browse button next to the Output grid field and select the desired file type.

Script Parameter: GRIDCOPY.OUT_FORMAT

Output file prefix

Enter a prefix to be added to output file names.

If left blank, output files inherit the names of the input files.

Script Parameter: GRIDCOPY.OUT_PREFIX

Output folder

Select the folder where the output files will be saved. The default is the project folder, but you may choose any location. If the folder does not exist, you will be prompted to confirm creation.

  • If this field is left blank, output grids always default to the project folder, even if the input grids are stored elsewhere.
  • Script Parameter: GRIDCOPY.OUT_FOLDER

    Display option

    Choose whether to automatically display the generated grids in the current project workspace.

    • Do not display (default) – Grids are added to the project and listed in Project Explorer, but not opened.

    • Display grid – Grids are opened individually in the workspace.

  • The default setting overrides the Advanced SettingsImage Settings > Display Created Grids attribute when that setting is set to True.
  • Script Parameter: GRIDCOPY.DISPLAY_OPTION ["Do not display" (default), "Display grid"]

    Overwrite existing files

    Enable this option to overwrite files that already exist in the output folder.

    If disabled, any existing files are skipped during copy/convert.

    Script Parameter: GRIDCOPY.OVERWRITE

    Application Notes

    For supported grid and image formats, see Supported Data Formats.

    Converting Grids to Image Files

    When converting a data grid (e.g., .grd, .ers) to a GeoTIFF COLOR (.tif) image, the grid's colour display (colour scheme and distribution) is preserved. The grid’s ITR is used for colour conversion, and the display information is stored in the output image’s GI (.gi) file.

    To convert a data grid to a Geosoft color (.grd) format while preserving its colour display, use Map > Export instead.

    Most standard image formats do not natively support non-EPSG datums. When converting from native Geosoft grids to standard image formats, only EPSG datums are translated correctly; custom or local projections are ignored.

    Converting an ER Mapper Grid with Separate Bands

    You can specify an ER Mapper file and its band using the following format:

    Gridname.ERS(ERM;band=1)        
  • Only one input file may be ER Mapper format. Direct conversion from one ER Mapper file to another is not supported.
  • Converting Image Files to Grids

    GeoTIFF raster files with 1-, 8-, and 16‑bit depth are supported and converted into Geosoft raster RGB format. See the table below for details.

    GOCAD Gsurf 32-bit Format Support

    The GOCAD Gsurf format supports multiple layers. However, the Copy/Convert option allows conversion of only one layer at a time to the Geosoft grid format.

    To specify which layer to import, append the qualifier PROP=layer_number to the input file name after selecting the GOCAD Gsurf 32‑bit (*.grs) format and before running the conversion. If no layer is specified, the first layer is used by default.

    • For example, to import the second layer of the file input.grs, use:

      input.grs(GRS;PROP=2)

    The GOCAD Gsurf 32-bit format supports both Point and Cell aligned registrations. When exporting, the GOCAD image is cell-centred by default. To force a point centred (0) or explicitly specify a cell-centred (1) registration, use the CELLS qualifier.

    • For example, to export a point‑aligned GOCAD Gsurf file named output, use:

      output.grs(GRS;CELLS=0)

    Imported data is automatically assigned a 3D orientation and will display with the correct orientation in a 3D view.

    Converting Between Floating Point GeoTIFFs* and Geosoft Grids

    Geolocated GeoTIFF Floating Point (.tif) files can be converted to any supported grid format.
    When converting from floating point GeoTIFF to Geosoft grid, floating point values are preserved. Once imported, you can control how the resulting Geosoft grid is rendered.

    Supported Geosoft grid formats can also be converted to both regular and cloud-optimized floating point GeoTIFFs by selecting the file type GeoTIFF Floating Point (*.tif) or COG GeoTIFF Floating Point (*.tif), respectively. When converting from a Geosoft grid to a GeoTIFF Floating Point, the Photometric tag is set to grey scale, but the underlying floating-point values remain unchanged. As a result, the image may be displayed in grey scale when viewed as a standard GeoTIFF.

    Location and orientation—including oriented plan and section grids—are preserved during conversion to floating point GeoTIFFs.

    *The floating point GeoTIFF format is widely adopted as a standard. For a brief overview of the two GeoTIFF format options, see:

    Raster and Floating Point GeoTIFFs: What is the difference? NASA Earth Observations (NEO).

    A Cloud Optimized GeoTIFF (COG) is a tiled floating point GeoTIFF designed to optimize the targeted data access. This new data delivery format improves processing time, reduces storage requirements, and supports modern cloud‑based processing workflows.

    Cloud-optimized GeoTIFFs are not yet supported on import.

    GeoTIFFs (raster and floating point) – supported formats:

    Byte size

    Bit size

    Type

    Description

    Notes

    xx 1 Image Black & white Converted to tiff RGB for display
    1 8 Image Gray scale image Converted to 8-bit tiff RGB for display
    1 8 Image Colour RGB/CMYK image CMYK converted to tiff RGB for display
    2 16 Image Colour image Converted (remapped) to 8-bit RGB for display
    4 32 Floating Point Magnitude Converted to/from grid
    4 32 Floating Point Export to COG data COG-supported conversion from grid (export)

    *GX.NET tools are embedded in the geogxnet.dll file located in the \Geosoft\Desktop Applications\bin folder. To run this GX interactively (outside the menu), navigate to the bin directory and specify the GX.NET tool in the required format. See the Run GX topic for more guidance.