GMT from Matlab
|Target version:||Candidate for next minor release|
I am using Matlab 2013a. I have installed GMT 5.1.1 (bundle version) on my Mac (Yosemite version).
I have written a Matlab script where among other things I calculate the power spectrum from an specific geographical window which is changing on every run.
I know I can do it from Matlab but I would like to know if its possible to do it using the specific grdfft command.
#1 Updated by Paul almost 3 years ago
- Status changed from New to Feedback
- Assignee set to Paul
- Target version set to Candidate for next minor release
We are close to releasing a beta-version of gmt/mex which lets Matlab and Octave users call gmt modules directly, That means you could run
spec = gmt ('grdfft', '-Er -V -fg', Grid);
However, not released yet as problematic to build properly since MathWorks distribute their own version of some libraries (e.g., netcdf, hdf5) and not others (gdal), and no include files, so we are dealing with shared library conflicts (no problems with octave, for instance). It requires GMT 5.2 so you would have to do a bunch of install from subversion. If you are motivated to be a guinea pig for testing then I could post more instructions.