@@ -30,20 +30,16 @@ Which GMT?
30
30
31
31
PyGMT requires Generic Mapping Tools (GMT) version 6 as a minimum, which is the latest
32
32
released version that can be found at
33
- `this website <https://www.generic-mapping-tools.org >`__.
34
-
33
+ the `GMT official site <https://www.generic-mapping-tools.org >`__.
35
34
We need the latest GMT (>=6.0.0) since there are many changes being made to GMT itself in
36
35
response to the development of PyGMT, mainly the new
37
36
`modern execution mode <https://docs.generic-mapping-tools.org/latest/cookbook/introduction.html#modern-and-classic-mode >`__.
38
37
39
- Compiled conda packages of GMT for Linux and Mac are provided through
38
+ Compiled conda packages of GMT for Linux, macOS and Windows are provided through
40
39
`conda-forge <https://anaconda.org/conda-forge/gmt >`__.
41
40
Advanced users can also
42
41
`build GMT from source <https://github.com/GenericMappingTools/gmt/blob/master/BUILDING.md >`__
43
42
instead, which is not so recommended but we would love to get feedback from anyone who tries.
44
- For Windows, conda GMT packages are available, but they do not currently work with PyGMT,
45
- so users will need to build from source or use the Windows Subsystem for Linux, see
46
- `here <https://github.com/GenericMappingTools/pygmt/pull/313 >`__ for more details.
47
43
48
44
We recommend following the instructions further on to install GMT 6.
49
45
@@ -55,6 +51,7 @@ PyGMT requires the following libraries:
55
51
* `numpy <http://www.numpy.org/ >`__
56
52
* `pandas <https://pandas.pydata.org/ >`__
57
53
* `xarray <http://xarray.pydata.org/ >`__
54
+ * `netCDF4 <https://github.com/Unidata/netcdf4-python >`__
58
55
* `packaging <https://pypi.org/project/packaging/ >`__
59
56
60
57
The following are optional (but recommended) dependencies:
@@ -79,7 +76,7 @@ First, we must configure conda to get packages from the
79
76
Now we can create a new conda environment with Python and all our dependencies installed
80
77
(we'll call it ``pygmt `` but you can change it to whatever you want)::
81
78
82
- conda create --name pygmt python=3.6 pip numpy pandas xarray packaging gmt=6.0.0
79
+ conda create --name pygmt python=3.8 pip numpy pandas xarray netcdf4 packaging gmt
83
80
84
81
Activate the environment by running::
85
82
@@ -88,17 +85,16 @@ Activate the environment by running::
88
85
From now on, all commands will take place inside the conda virtual environment and won't
89
86
affect your default installation.
90
87
91
- .. note ::
92
-
93
- **Currently, this has only been tested to work on Linux and macOS. **
94
- We don't have tests running on Windows yet, so things might be broken.
95
- Please report any errors by `creating an issue on Github <https://github.com/GenericMappingTools/pygmt/issues >`__.
96
88
97
89
Installing PyGMT
98
90
----------------
99
91
100
- Now that you have GMT installed and your conda environment activated,
101
- use ``pip `` to install the latest release of PyGMT from `PyPI <https://pypi.org/project/pygmt >`__::
92
+ Now that you have GMT installed and your conda environment activated, you can
93
+ use ``conda `` to install the latest release of PyGMT from `conda-forge <https://anaconda.org/conda-forge/pygmt >`__::
94
+
95
+ conda install pygmt
96
+
97
+ or use ``pip `` to install from `PyPI <https://pypi.org/project/pygmt >`__::
102
98
103
99
pip install pygmt
104
100
@@ -134,7 +130,11 @@ This can happen if you have multiple versions of GMT installed.
134
130
You can tell PyGMT exactly where to look for ``libgmt `` by setting the
135
131
``GMT_LIBRARY_PATH `` environment variable.
136
132
This should be set to the directory where ``libgmt.so ``, ``libgmt.dylib `` or ``gmt.dll ``
137
- can be found for Linux, MacOS and Windows respectively.
133
+ can be found for Linux, macOS and Windows respectively.
138
134
e.g. in a terminal run::
139
135
140
- export GMT_LIBRARY_PATH=$HOME/anaconda3/envs/pygmt/lib
136
+ # Linux/macOS
137
+ export GMT_LIBRARY_PATH=$HOME/anaconda3/envs/pygmt/lib
138
+ # Windows
139
+ set "GMT_LIBRARY_PATH=C:\Users\USERNAME\Anaconda3\envs\pygmt\Library\bin\"
140
+
0 commit comments