Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

invalidate_modules.sh 1.8 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
  1. # $Id$
  2. #
  3. # Copyright (c) 1991-2016 by P. Wessel, W. H. F. Smith, R. Scharroo,
  4. # J. Luis, and F. Wobbe
  5. # See LICENSE.TXT file for copying and redistribution conditions.
  6. #
  7. # This script creates a function for each GMT module which invalidates
  8. # direct module call. This is used to make sure test scripts properly
  9. # prefix modules with "gmt", which is needed to make sure that the
  10. # shell does not execute modules from PATH but instead uses the gmt
  11. # executable from the build dir.
  12. #
  13. gmt_modules="backtracker blockmean blockmedian blockmode dimfilter filter1d \
  14. fitcircle gmt2kml gmtconvert gmtdefaults gmtflexure gmtget gmtgravmag3d gmtinfo gmtmath \
  15. gmtpmodeler gmtregress gmtselect gmtset gmtsimplify gmtspatial gmtstitch \
  16. gmtvector gmtwhich gpsgridder gravfft \
  17. grd2cpt grd2rgb grd2xyz grdblend grdclip grdcontour grdcut grdedit grdfft \
  18. grdflexure grdfilter grdgradient grdgravmag3d grdhisteq grdimage grdinfo grdlandmask \
  19. grdmask grdmath grdpaste grdpmodeler grdproject grdraster grdredpol grdconvert \
  20. grdrotater grdsample grdseamount grdspotter grdtrack grdtrend grdvector \
  21. grdview grdvolume greenspline gshhg hotspotter img2grd kml2gmt makecpt \
  22. mapproject mgd77convert mgd77info mgd77list mgd77magref mgd77manage mgd77path \
  23. mgd77sniffer mgd77track minmax nearneighbor originator project psconvert \
  24. psbasemap psclip pscoast pscontour pscoupe pshistogram psimage pslegend \
  25. psmask psmeca pspolar psrose psscale pssegy pssegyz pssolar pstext psvelo pswiggle \
  26. psxy psxyz rotconverter rotsmoother sample1d segy2grd spectrum1d sph2grd sphdistance \
  27. sphinterpolate sphtriangulate splitxyz surface trend1d trend2d triangulate \
  28. x2sys_binlist x2sys_cross x2sys_datalist x2sys_get x2sys_init x2sys_list \
  29. x2sys_merge x2sys_put x2sys_report x2sys_solve xyz2grd"
  30. for module in ${gmt_modules}; do
  31. eval "function ${module} () { false; }"
  32. eval "export -f ${module}"
  33. done
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...