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

ex01.rst 1.7 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
36
  1. .. _example_01:
  2. (1) Contour maps
  3. ----------------
  4. We want to create two contour maps of the low order geoid using the
  5. Hammer equal area projection. Our gridded data file is called ``osu91a1f_16.nc`` and
  6. contains a global 1 by 1 gridded geoid (we will see how to make gridded
  7. files later). We would like to show one map centered on Greenwich and
  8. one centered on the dateline. Positive contours should be drawn with a
  9. solid pen and negative contours with a dashed pen. Annotations should
  10. occur for every 50 m contour level, and both contour maps should show
  11. the continents in light brown in the background. This is how it is done:
  12. .. literalinclude:: /_verbatim/ex01.txt
  13. :language: bash
  14. The first command sets up a 2 by 1 :doc:`subplot </subplot>` layout. The subplot determines
  15. the size of what map can fit so we use ? when specifying map widths in the
  16. commands below. This initial setup is followed by
  17. two sequences of :doc:`coast </coast>`, :doc:`grdcontour </grdcontour>`,
  18. :doc:`grdcontour </grdcontour>`. They differ in that the
  19. first is centered on Greenwich; the second on the dateline. We use the
  20. limit option (**-L**) in :doc:`grdcontour </grdcontour>`
  21. to select negative contours only and plot those with a dashed pen, then
  22. positive contours only and draw with a solid pen [Default]. The **-T**
  23. option causes tick marks pointing in the downhill direction to be drawn
  24. on the innermost, closed contours. For the upper panel we also added -
  25. and + to the local lows and highs. The labeling of the two plots with a)
  26. and b) is automatically done by :doc:`subplot </subplot>`. You can find this illustration as
  27. .. figure:: /_images/ex01.*
  28. :width: 500 px
  29. :align: center
  30. Contour maps of gridded data.
Tip!

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

Comments

Loading...