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

explain_grd_output.rst_ 1.2 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
  1. Grid File Formats
  2. -----------------
  3. By default GMT writes out grid as single precision floats in a
  4. COARDS-complaint netCDF file format. However, GMT is able to produce
  5. grid files in many other commonly used grid file formats and also
  6. facilitates so called "packing" of grids, writing out floating point
  7. data as 1- or 2-byte integers. To specify the precision, scale and
  8. offset, the user should add the suffix
  9. =\ *ID*\ [**+s**\ *scale*][**+o**\ *offset*][**+n**\ *invalid*], where
  10. *ID* is a two-letter identifier of the grid type and precision, and
  11. *scale* and *offset* are optional scale factor and offset to be applied
  12. to all grid values, and *invalid* is the value used to indicate missing
  13. data. See :doc:`grdconvert` and Section
  14. :ref:`grid-file-format`
  15. of the GMT Technical Reference and Cookbook for more information.
  16. When writing a netCDF file, the grid is stored by default with the
  17. variable name "z". To specify another variable name *varname*, append
  18. **?**\ *varname* to the file name. Note that you may need to escape the
  19. special meaning of **?** in your shell program by putting a backslash in
  20. front of it, or by placing the filename and suffix between quotes or
  21. double quotes.
Tip!

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

Comments

Loading...