此为 Mathematica 8 文档,内容基于更早版本的 Wolfram 语言
查看最新文档(版本11.1)

SurferGrid (.grd)

Golden Software Surfer geospatial file format.
Terrain data format used by Golden Software products.
Used for archiving and exchanging terrain data.
Binary or ASCII format.
Contains digital elevation models (DEM).
Digital elevation models are stored as a raster of elevation values.
  • Import and Export are fully compatible with Versions 6 and 7 of the Surfer grid format.
  • Import["file.grd"] imports a Surfer grid file and returns a rendering of the contained data.
  • Export exports an array representing elevation data to the Surfer grid format.
  • Import imports the specified element from a Surfer grid file.
  • Import imports multiple elements.
  • Export creates a Surfer grid file by treating expr as specifying element elem.
  • Export treats each as specifying the corresponding .
  • Export exports expr with the specified option elements taken to have the specified values.
  • Export uses rules to specify the elements to be exported.
  • See the reference pages for full general information on Import and Export.
"Elements"list of elements and options available in this file
"Rules"full list of rules for each element and option
"Options"list of rules for options, properties and settings
  • Data representation elements:
"Data"array of terrain elevation values
"Graphics"DEM file rendered as ReliefPlot
"Image"raw DEM data as an image object
"ReliefImage"DEM file rendered as ReliefImage
  • Import by default uses the element for the Surfer grid format.
  • Metadata elements:
"ElevationRange"range of elevation values in meters
"RasterSize"size of the terrain grid
"SpatialRange"range of geographic coordinates, given in coordinate system units
"SpatialResolution"grid spacing in coordinate system units
  • Importgives the range of elevation values in units of meters.
  • Import gives the bounding coordinates of the geographic region covered by the file as an expression of the form .
  • General rendering options:
BackgroundNonebackground color
DataRangeAutomaticthe range of latitude and longitude values to assume for the data
ImageSizeAutomaticoverall size of the image
  • DEM rendering options:
ColorFunction"Topographic"how to determine the color of surfaces
DataReversedFalsewhether to reverse the order of rows
LightingAngleAutomaticthe effective angle from which simulated illumination is taken to come
"DefaultElevation"Automaticelevation setting for areas not covered by the file
"DownsamplingFactor"1integer factor by which the amount of DEM data in each horizontal dimension is reduced on import
"BinaryFormat"Truewhether the file is in ASCII or binary format
"DefaultElevation"Automaticelevation setting for areas not covered by the file
"LegacyFormat"Falsewhether to export Surfer 6 compatible files
Import a Surfer grid digital elevation model:
Get the names of the Import elements available in this file:
Get the coordinate range of the data:
Import the data and display as a 3D model:
Import a Surfer grid digital elevation model:
In[1]:=
Click for copyable input
Out[1]=
 
Get the names of the Import elements available in this file:
In[1]:=
Click for copyable input
Out[1]=
 
Get the coordinate range of the data:
In[1]:=
Click for copyable input
Out[1]=
 
Import the data and display as a 3D model:
In[1]:=
Click for copyable input
Out[1]=
 
In[1]:=
Click for copyable input
Out[1]=