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

openmp.sh 776 B

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
  1. #!/bin/sh
  2. # $Id$
  3. # Testing grdfilter if openmp is used.
  4. . ../functions.sh
  5. header "Test grdfilter for parallel operations (-fopenmp only)"
  6. grep '\-fopenmp' ../../src/config.mk > tmp
  7. if [ ! -s tmp ]; then
  8. echo "[N/A]"
  9. rm -f tmp
  10. exit
  11. fi
  12. FILT=g # Gaussian filter
  13. INC=1 # 1x1 degree output
  14. D=1000 # 1000 km filter width
  15. DATA=../genper/etopo10.nc # Test on ETOP10 data
  16. ps=openmp.ps
  17. # Run grdfilter as specified
  18. grdfilter -D4 -F${FILT}$D -I$INC $DATA -Gt.nc -fg -V
  19. makecpt -Cglobe -Z > t.cpt
  20. grdimage t.nc -JQ0/7i -Ba:."$D km Gaussian filter":WSne -Ct.cpt -P -K -Xc -Y1.5i > $ps
  21. psscale -Ct.cpt -D3.5i/-0.5i/6i/0.1ih -O -K -Ba/:m: >> $ps
  22. grdimage $DATA -JQ0/7i -Ba:."Original data":WSne -Ct.cpt -O -K -Y4.75i >> $ps
  23. psxy -Rt.nc -J -O -T >> $ps
  24. #rm -f t.nc t.cpt tmp
  25. pscmp
Tip!

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

Comments

Loading...