Re: grdmath problems
Branden Christensen <[email protected]>
| Newsgroups | gmane.comp.gis.gmt.user |
|---|---|
| Message-ID | <CAK3C9dUdMJT2-xtOEm09wBA288F95g6RUBeHdJr8-OFycuYVxA@mail.gmail.com> |
Marcelo: ShakeMap executes a command similar to this when it runs: /usr/src/gmt-4.5.11/bin/grdmath /opt/shakemap2/bin/../data/9583161/richter/pgv_rock.grd DUP DUP 10 LE 0.65 MUL EXCH DUP DUP DUP 10 GT EXCH 20 LE MUL EXCH 10 SUB 10 DIV -0.05 MUL 0.65 ADD MUL EXCH DUP DUP DUP 20 GT EXCH 30 LE MUL EXCH 20 SUB 10 DIV -0.07 MUL 0.60 ADD MUL EXCH DUP DUP DUP 30 GT EXCH 40 LE MUL EXCH 30 SUB 10 DIV -0.08 MUL 0.53 ADD MUL EXCH 40 GT 0.45 MUL ADD ADD ADD ADD 686 /opt/shakemap2/bin/../data/9583161/output/UFVS74PC0J.grd DIV EXCH POW MUL = /opt/shakemap2/bin/../data/9583161/output/pgv.grd causing the buffer overflow message to appear. but in this case the complete path is given to the equivalent of "1.grd" in previous examples: /opt/shakemap2/bin/../data/9583161/richter/pgv_rock.grd This is analogous to giving the full path to 1.grd as /home/osop/1.grd. So what might be going on? pgv_rock.grd definitely exists at the time of execution. Otherwise you would get this error: grdmath: GMT SYNTAX ERROR: /opt/shakemap2/bin/../data/9583161/richter/pgv_rock.grd is not a number, operator or file name B To unsubscribe, send the message "signoff gmt-help" to [email protected]