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

grdpaste.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
  1. .. index:: ! grdpaste
  2. .. include:: module_core_purpose.rst_
  3. ********
  4. grdpaste
  5. ********
  6. |grdpaste_purpose|
  7. Synopsis
  8. --------
  9. .. include:: common_SYN_OPTs.rst_
  10. **gmt grdpaste** *file_a.nc file_b.nc* |-G|\ *outfile.nc*
  11. [ |SYN_OPT-V| ]
  12. [ |SYN_OPT-f| ]
  13. [ |SYN_OPT--| ]
  14. |No-spaces|
  15. Description
  16. -----------
  17. **grdpaste** will combine *file_a.nc* and *file_b.nc* into
  18. *outfile.nc* by pasting them together along their common edge. Files
  19. *file_a.nc* and *file_b.nc* must have the same dx, dy and have one
  20. edge in common. If in doubt, check with :doc:`grdinfo` and use :doc:`grdcut`
  21. and/or :doc:`grdsample` if necessary to prepare the edge joint. **Note**: For
  22. geographical grids, you may have to use **-f** to handle periodic longitudes
  23. unless the input grids are properly recognized as such via their meta-data.
  24. Required Arguments
  25. ------------------
  26. *file_a.nc*
  27. One of two files to be pasted together.
  28. *file_b.nc*
  29. The other of two files to be pasted together.
  30. .. _-G:
  31. **-G**\ *outfile.nc*
  32. The name for the combined output.
  33. Optional Arguments
  34. ------------------
  35. .. _-V:
  36. .. |Add_-V| unicode:: 0x20 .. just an invisible code
  37. .. include:: explain_-V.rst_
  38. .. |Add_-f| unicode:: 0x20 .. just an invisible code
  39. .. include:: explain_-f.rst_
  40. .. include:: explain_help.rst_
  41. .. include:: explain_grd_inout_short.rst_
  42. Examples
  43. --------
  44. .. include:: explain_example.rst_
  45. Suppose file_a.nc is 150E - 180E and 0 - 30N, and file_b.nc is 150E -
  46. 180E, -30S - 0, then you can make outfile.nc which will be 150 - 180 and
  47. -30S - 30N by:
  48. ::
  49. gmt grdpaste file_a.nc file_b.nc -Goutfile.nc -V -fg
  50. See Also
  51. --------
  52. :doc:`gmt`, :doc:`grdblend`,
  53. :doc:`grdclip`,
  54. :doc:`grdcut`,
  55. :doc:`grdinfo`,
  56. :doc:`grdsample`
Tip!

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

Comments

Loading...