Hello,
I’m trying to follow the tutorial of the site (Plotting data points) but with my own data:“Massin_M4_clean”. I work on jupyter lab.
However at the first step, when you have to provide access to these datasets through the pygmt.datasets package. The following message is displayed:
import pygmt
data = pygmt.datasets.Massin_M4_clean()
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_1964/3180419661.py in <module>
21
22
---> 23 data = pygmt.datasets.Massin_M4_clean()
24
25
AttributeError: module 'pygmt.datasets' has no attribute 'Massin_M4_clean'
So I think it must be a path problem, pygmt can’t find the file “Massin_M4_clean”. I look for the pygmt command to add a path file and I find the pygmt.which module.
When I run this command :
pygmt.which(Massin_M4_clean.txt,Users/burlotr)
NameError Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_1964/1913713950.py in <module>
16
17
---> 18 pygmt.which(Massin_M4_clean.txt,Users/burlotr)
19 #pygmt.which(Massin_M4_clean)
20 #pygmt.which.Massin_M4_clean.dat
NameError: name 'Massin_M4_clean' is not defined
Does anyone know the solution?