readSurferData

The function was written to read surfer 6 binary GRD data file specifically suited for reading out models and doing calculations in matlab.

Vous suivez désormais cette soumission

% Function prototype
function [xRange,yRange,matData] = readSurferData(fName,varargin)
% this function was written to read surfer 6 binary GRD data file
% specifically suited for reading out models obtained from
% other softwares
% details of the surfer 6 binary GRD file can be found:
% https://grapherhelp.goldensoftware.com/subsys/surfer_6_grid_file_format.htm
%%
% S. Koley
% Gran Sasso Science Institute
% Dept. of Physics
% L'Aquila, Italy
% 2022
%%
% inputs
% first arg = filename
% second arg = 0, if not output plot, else set to 1, default = 0
% third arg: values in the data matrix to be set to NaN, this corresponds
% to blank values, default to 10^18
%%
% output format
% matData: is the matrix containing the grid values with the topmost
% row corresponding to the minimum y, and first column corresponding
% to the mimimum x
% xRange = vector x values (xLow->xHigh)
% yRange = vector of y values (yLow->yHigh)

Citation pour cette source

Soumen Koley (2026). readSurferData (https://fr.mathworks.com/matlabcentral/fileexchange/122177-readsurferdata), MATLAB Central File Exchange. Extrait(e) le .

Add the first tag.

Informations générales

Compatibilité avec les versions de MATLAB

  • Compatible avec toutes les versions

Plateformes compatibles

  • Windows
  • macOS
  • Linux
Version Publié le Notes de version Action
1.0.0