GenericMappingTools / gmt

The Generic Mapping Tools
https://www.generic-mapping-tools.org
Other
850 stars 356 forks source link

psvelo can't get error ellipse #992

Closed Soengmou closed 5 years ago

Soengmou commented 5 years ago

I just install the GMT in the Ubuntu 18 online to plot a GPS rate field with the command below I used in under the CentOS. But don't get the error ellipse. ”echo 80 30 10 0 2 2 0 10mm/a| gmt psvelo -h0 -R -W0.8,black -Gblack -J -L -Se0.04c/5/10 -A0.19c+p0.7p+e -O -K -V >>$psn”

welcome[bot] commented 5 years ago

👋 Thanks for opening your first issue here! Please make sure you filled out the template with as much detail as possible. We appreciate that you took the time to contribute!

Please make sure you read our Contributing Guide and abide by our Code of Conduct.

Soengmou commented 5 years ago

I just copy one line of my script.

seisman commented 5 years ago

I don't know the exact meanings of the arguments, but it seems the second argument of -Se is confidence, which should be in the range of 0-1. Please see the psvelo manual for detailed description.

Changing -Se0.04c/5/10 to -Se0.04c/0.5/10, and you'll see an ellipse. Maybe that's what you want.

Soengmou commented 5 years ago

Sorry for the argument. But you got my meaning. I changed the confidence to 0.5. It doesn't work. My GMT version is 5.4.3.

seisman commented 5 years ago

I tried the following command with GMT 5.4.5:

echo 80 30 10 0 2 2 0 10mm/a| gmt psvelo -h0 -Rg -W0.8,black -Gblack -JH10c -L -Se0.04c/0.8/10 -A0.19c+p0.7p+e -N -V -Baf > map2.ps

This is what I got: image

Soengmou commented 5 years ago

Thank you. The error ellipse was displayed when I added the -B .

seisman commented 5 years ago

That's weird. -B isn't required here. This is what I got without -B. image

PaulWessel commented 5 years ago

Does your script properly end the postscript or is there a final -K hanging?

On June 20, 2019 at 7:45:37 PM, Dongdong Tian (notifications@github.com) wrote:

That's weird. -B isn't required here. This is what I got without -B. [image: image] https://user-images.githubusercontent.com/3974108/59894030-1c9a2480-93ad-11e9-8248-c5583bb539e3.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/GenericMappingTools/gmt/issues/992?email_source=notifications&email_token=AGJ7IX2VQP55YDZBIDXQKNTP3Q6FDA5CNFSM4H2FMUE2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYHIL5A#issuecomment-504268276, or mute the thread https://github.com/notifications/unsubscribe-auth/AGJ7IX4EJJRKEYL7QHKCESLP3Q6FDANCNFSM4H2FMUEQ .

Soengmou commented 5 years ago

There's no -K hanging in the last line.

Soengmou commented 5 years ago

That's weird. -B isn't required here. This is what I got without -B. image

Yeah, very wired.

PaulWessel commented 5 years ago

Since it seems to work fine in 5.4.5 there isn’t anything we can do as long as Ubuntu is so far behind on releases. You would need to build from source.

Paul Wessel, Professor and Chair Dept. of Earth Sciences (formerly Geology & Geophysics) SOEST, U of Hawaii at Manoa

On June 20, 2019 at 11:04:02 PM, Soengmou (notifications@github.com) wrote:

That's weird. -B isn't required here. This is what I got without -B. [image: image] https://user-images.githubusercontent.com/3974108/59894030-1c9a2480-93ad-11e9-8248-c5583bb539e3.png

Yeah, very wired.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/GenericMappingTools/gmt/issues/992?email_source=notifications&email_token=AGJ7IXZEJVU32H3GXZ6NX5DP3RVNFA5CNFSM4H2FMUE2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYHQTEY#issuecomment-504301971, or mute the thread https://github.com/notifications/unsubscribe-auth/AGJ7IXZYEGSVDTVN5OR3WV3P3RVNFANCNFSM4H2FMUEQ .