GXF (.gxf)
- Import fully supports the Grid eXchange File format.
Background & Context
-
- Raster format, also known as Grid eXchange File.
- Standard ASCII file format for exchanging gridded data among different software systems.
- Commonly used to represent gravity and geomagnetic data.
- Grid point locations are related to a Grid Coordinate System (GCS), which can be related to a geographic reference system.
- It saves raster data in the form of ASCII values.
- Developed by Geosoft.
Import
- Import["file.gxf"] imports a GXF file and returns it as an image.
- Import["file.gxf",elem] imports the specified element from a GXF file.
- Import["file.gxf",{{elem1,elem2,…}}] imports multiple elements.
- The import format can be specified with Import["file","GXF"] or Import["file",{"GXF",elem,…}].
- See the following reference pages for full general information:
-
Import import from a file CloudImport import from a cloud object ImportString import from a string ImportByteArray import from a byte array
Import Elements
- General Import elements:
-
"Elements" list of elements and options available in this file "Summary" summary of the file "Rules" list of rules for all available elements - Data representation elements for image formats:
-
"Data" array of color or elevation values "Graphics" image represented as a Graphics object "Image" image object "BitDepth" number of bits used to encode a color channel in the file "Channels" the number of color channels used in the file "Summary" summary of the file - Import by default uses the "Image" element for the GXF format.
- Metadata elements:
-
"ColorSpace" color encoding used in the file "DataFormat" type used to represent elevation or color values "ElevationRange" range of elevation data in meters "MetaInformation" combination of all formatted metadata present in the file "RasterSize" size of the terrain grid "SpatialRange" range of geographic coordinates, given in coordinate system units "SpatialAffineTransform" relation between pixel space and projected coordinates - Elements representing the geodetic datum and reference ellipsoid used in the file:
-
"CoordinateSystem" name of the coordinate system used in the file "Datum" geodetic datum "SemimajorAxis" semimajor axis of the reference ellipsoid "SemiminorAxis" semiminor axis of the reference ellipsoid "InverseFlattening" inverse flattening of the ellipsoid "LinearUnits" coordinate system units - Elements specifying the cartographic projection and its parameters:
-
"Projection" projection name and parameters "Centering" latitude and longitude defining the origin of the projection "StandardParallels" standard parallels "CentralScaleFactor" scale factor at the central meridian or center of projection "GridOrigin" grid coordinates {n,e} of the central parallel and meridian "ProjectionName" Wolfram Language standard name of the projection used "ReferenceModel" what reference sphere or ellipsoid to use - Accessing low-level metainformation from the file:
-
"CoordinateSystemInformation" raw parameters of the coordinate system as stored in the file - See the reference page for GeoProjectionData for full information on cartographic projections.