Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grid2GMT #35

Open
nomin423 opened this issue Aug 17, 2023 · 1 comment
Open

Grid2GMT #35

nomin423 opened this issue Aug 17, 2023 · 1 comment

Comments

@nomin423
Copy link

Hi,

Thank you for this wonderful program.
I had a problem with Grid2GMT. It says command not found. I'm just starting and following examples. My machine had already GMT that I have used to my work.

Is there anything that I need to additionally put in path or something to get Grid2GMT work?

Thank you follow is my terminal

Grid2GMT Arguments: <run/nlloc_sample.in> <model/layer.P.mod> <1> <0> <1> <301>
args:
Grid2GMT (NonLinLoc v7.00.16 17Apr2023)

Processing files model/layer.P.mod.*
Output files gmt/layer.P.mod.VG.*
DEBUG: Grid3dFile: model/layer.P.mod, type:SLOW_LEN
INFO: cannot open hypocenter file: model/layer.P.mod.hyp
Generating Y section view...
44 rows and 301 columns written
Longitude Section: 7.512704
Grid value min = 1.250000e-01, value max = 2.500000e-01
INFO: cannot open station list file: model/layer.P.mod.stations
RVAL: RECT/X: 0.000000/300.000000 RECTY:-3.000000/40.000000
GetContourInterval htick_int R: GetContourInterval: vmin 0.00e+00 vmax 3.00e+02 contour_int 1.00e+02 nstep 4
GetContourInterval vtick_int R: GetContourInterval: vmin -3.00e+00 vmax 4.00e+01 contour_int 1.00e+01 nstep 5
GetContourInterval contour_int iFirstPlot: GetContourInterval: vmin 1.25e-01 vmax 2.50e-01 contour_int 1.00e-02 nstep 13
INFO: makecpt -Z -Cseis -T0.12/0.25/0.01 > gmt/layer.P.mod.VG.cpt
Signature: Grid2GMT:v7.00.16 17Aug2023 14h00m01

Running GMT script gmt/layer.P.mod.VG.gmt ...

  • gmtset PAGE_ORIENTATION portrait X_ORIGIN 0.5 Y_ORIGIN 0.5
    gmt/layer.P.mod.VG.gmt: line 9: gmtset: command not found
@alomax
Copy link
Collaborator

alomax commented Aug 17, 2023

Hi @nomin423

It looks like the command Grid2GMT is running fine. But the GMT command gmtset is not found. You have to install the GMT package separately from NLL and make sure the GMT programs are on your path. See https://www.generic-mapping-tools.org/
You can use GMT4 or GMT6 (maybe GMT5), see NLL src/CMakeLists.txt for details.

I hope this helps!
Best regards,
Anthony

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants