Hi, I’m new in pyGMT and I have a problem I want to use project, but I got an error.
Here is my command:
p = pygmt.project(data="tempo.xyz", convention="pqz", center=[51.125, -19.475], azimuth=108.0, lenght=[-1600, 1600], width=[-1600, 1600], unit=True)
with tempo.xyz
an ASCII file generated by pygmt.grd2xyz
, head of the file:
43.1 -11.4 0.0516389273107
43.2 -11.4 0.0452326759696
43.3 -11.4 0.0210139229894
43.4 -11.4 0.0514826774597
43.5 -11.4 0.0758576765656
And I got this error:
project [ERROR]: Unrecognized option -l
project [ERROR]: Unrecognized option -l
Traceback (most recent call last):
File "/Users/brandon/tracker_minpmer/bin/minpmer.py", line 594, in <module>
rayWinds(windData, track, 4)
File "/Users/brandon/tracker_minpmer/bin/minpmer.py", line 490, in rayWinds
datap = pygmt.project(data="tempo.xyz", convention="pqz", center=[centre.lon, centre.lat], azimuth=angle, lenght=[-exten_max, exten_max], width=[-exten_max, exten_max], unit=True)
File "/opt/homebrew/anaconda3/envs/pygmtcfgrib/lib/python3.8/site-packages/pygmt/helpers/decorators.py", line 586, in new_module
return module_func(*args, **kwargs)
File "/opt/homebrew/anaconda3/envs/pygmtcfgrib/lib/python3.8/site-packages/pygmt/helpers/decorators.py", line 726, in new_module
return module_func(*args, **kwargs)
File "/opt/homebrew/anaconda3/envs/pygmtcfgrib/lib/python3.8/site-packages/pygmt/src/project.py", line 239, in project
lib.call_module(module="project", args=arg_str)
File "/opt/homebrew/anaconda3/envs/pygmtcfgrib/lib/python3.8/site-packages/pygmt/clib/session.py", line 500, in call_module
raise GMTCLibError(
pygmt.exceptions.GMTCLibError: Module 'project' failed with status code 72:
project [ERROR]: Unrecognized option -l
project [ERROR]: Unrecognized option -l