CDAT / cdat

Community Data Analysis Tools
Other
174 stars 68 forks source link

How can dv3d.3d_vector display a full 3d vector plot? #2160

Open Rex-Diego opened 7 years ago

Rex-Diego commented 7 years ago

I want to have a plot like this one

3d vec in this site.

but following the tutorial , can only get plane 3d. It's only a slider which display a plane 3d vectors.

And after google all around, I cannot find some tips for the real 3d vector plot, anyone can help me?

doutriaux1 commented 7 years ago

Hi Rex,

I’m 99% sure you can do this, I’m a bit busy preparing the release I’m CCing Tom Maxwell that wrote this bit. Hopefully he can get back to you faster than me.

C.

From: Rex Diego notifications@github.com Reply-To: UV-CDAT/uvcdat reply@reply.github.com Date: Sunday, March 19, 2017 at 4:53 PM To: UV-CDAT/uvcdat uvcdat@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [UV-CDAT/uvcdat] How can dv3d.3d_vector display a full 3d vector plot? (#2160)

I want to have a plot like this one

[d vec]https://camo.githubusercontent.com/f8c155e5c25f79e8d613bf80f5cae9f6a44843f6/68747470733a2f2f6364732e6e6363732e6e6173612e676f762f77702d636f6e74656e742f75706c6f6164732f323031332f31312f476c797068566f6c756d652d312e6a706567in thishttps://cds.nccs.nasa.gov/tools-services/3d-model-analysis/ site.

but following the tutorial , can only get [lane 3d] https://camo.githubusercontent.com/323fe2aa9ddf518d1ae55c39d92265b1d582e292/68747470733a2f2f7576636461742e6c6c6e6c2e676f762f696d616765732f76637333642d322e706e67 . It's only a slider which display a plane 3d vectors.

And after google all around, I cannot find a tips for the real 3d vector plot, anyone can help me?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/UV-CDAT/uvcdat/issues/2160, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ACpw8bllLDsFvgtZDEKIbhXlxpnbjZXxks5rnb_ngaJpZM4Mh7aU.

ThomasMaxwell commented 7 years ago

There is a vector volume plotter in dv3d but it does not seem to be exposed currently in the UVCDAT GUI. You should be able to generate these plots using the vcs3D python API.

-- Tom

From: Charles Doutriaux notifications@github.com Reply-To: UV-CDAT/uvcdat reply@reply.github.com Date: Monday, March 20, 2017 at 10:03 AM To: UV-CDAT/uvcdat uvcdat@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: Re: [UV-CDAT/uvcdat] How can dv3d.3d_vector display a full 3d vector plot? (#2160)

Hi Rex,

I’m 99% sure you can do this, I’m a bit busy preparing the release I’m CCing Tom Maxwell that wrote this bit. Hopefully he can get back to you faster than me.

C.

From: Rex Diego notifications@github.com Reply-To: UV-CDAT/uvcdat reply@reply.github.com Date: Sunday, March 19, 2017 at 4:53 PM To: UV-CDAT/uvcdat uvcdat@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [UV-CDAT/uvcdat] How can dv3d.3d_vector display a full 3d vector plot? (#2160)

I want to have a plot like this one

[d vec]https://camo.githubusercontent.com/f8c155e5c25f79e8d613bf80f5cae9f6a44843f6/68747470733a2f2f6364732e6e6363732e6e6173612e676f762f77702d636f6e74656e742f75706c6f6164732f323031332f31312f476c797068566f6c756d652d312e6a706567in thishttps://cds.nccs.nasa.gov/tools-services/3d-model-analysis/ site.

but following the tutorial , can only get [lane 3d] https://camo.githubusercontent.com/323fe2aa9ddf518d1ae55c39d92265b1d582e292/68747470733a2f2f7576636461742e6c6c6e6c2e676f762f696d616765732f76637333642d322e706e67 . It's only a slider which display a plane 3d vectors.

And after google all around, I cannot find a tips for the real 3d vector plot, anyone can help me?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/UV-CDAT/uvcdat/issues/2160, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ACpw8bllLDsFvgtZDEKIbhXlxpnbjZXxks5rnb_ngaJpZM4Mh7aU.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/UV-CDAT/uvcdat/issues/2160#issuecomment-287768027, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABPJkSRePopkcsb_T6HG5nVa_2ASnR0bks5rnocigaJpZM4Mh7aU.

Rex-Diego commented 7 years ago

@ThomasMaxwell That seems so hard to me, I have no idea what vcs works and where I can get the document about its API. Maybe I will try this in the future after having more knowledge about UVCDAT.

Rex-Diego commented 7 years ago

@doutriaux1 Thanks very much for your reply. But I'm sorry I'm new to UVCDAT, and is not that familiar with it. Mayby later I will try what Tom said.

Thanks again!

doutriaux1 commented 7 years ago

Rex,

I will try to send you a short python script that does this shortly, but it might be a couple of weeks ☹

If anybody on this list (Tom?) could beat me to this that would be wonderful!

C.

From: Rex Diego notifications@github.com Reply-To: UV-CDAT/uvcdat reply@reply.github.com Date: Tuesday, March 21, 2017 at 10:46 PM To: UV-CDAT/uvcdat uvcdat@noreply.github.com Cc: "Doutriaux, Charles" doutriaux1@llnl.gov, Mention mention@noreply.github.com Subject: Re: [UV-CDAT/uvcdat] How can dv3d.3d_vector display a full 3d vector plot? (#2160)

@doutriaux1https://github.com/doutriaux1 Thanks very much for your reply. But I'm sorry I'm new to UVCDAT, and is not that familiar with it. Mayby later I will try what Tom said.

Thanks again!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/UV-CDAT/uvcdat/issues/2160#issuecomment-288304576, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ACpw8bm-88GBODCf9F9PqvJOHH-rgz8Vks5roLWogaJpZM4Mh7aU.

Rex-Diego commented 7 years ago

@doutriaux1 You are so nice,bro!

ThomasMaxwell commented 7 years ago

Rex, Here is a simple example script from the vcs documentation on the UVCDAT web site: https://uvcdat.llnl.gov/documentation/vcs/vcs-8.html#vcs3D_animation

def simplevector(): import vcs, cdms2, sys x = vcs.init() f = cdms2.open(sys.prefix+"/sample_data/clt.nc") v = f["v"] u = f["u"] dv3d = vcs.get3d_vector() dv3d.BasemapOpacity = 0.15 x.plot( u, v, dv3d ) x.interact()

if name == "main": simplevector()

From: Charles Doutriaux notifications@github.com Reply-To: UV-CDAT/uvcdat reply@reply.github.com Date: Wednesday, March 22, 2017 at 12:03 PM To: UV-CDAT/uvcdat uvcdat@noreply.github.com Cc: Thomas Maxwell thomas.maxwell@nasa.gov, Mention mention@noreply.github.com Subject: Re: [UV-CDAT/uvcdat] How can dv3d.3d_vector display a full 3d vector plot? (#2160)

Rex,

I will try to send you a short python script that does this shortly, but it might be a couple of weeks ☹

If anybody on this list (Tom?) could beat me to this that would be wonderful!

C.

From: Rex Diego notifications@github.com Reply-To: UV-CDAT/uvcdat reply@reply.github.com Date: Tuesday, March 21, 2017 at 10:46 PM To: UV-CDAT/uvcdat uvcdat@noreply.github.com Cc: "Doutriaux, Charles" doutriaux1@llnl.gov, Mention mention@noreply.github.com Subject: Re: [UV-CDAT/uvcdat] How can dv3d.3d_vector display a full 3d vector plot? (#2160)

@doutriaux1https://github.com/doutriaux1 Thanks very much for your reply. But I'm sorry I'm new to UVCDAT, and is not that familiar with it. Mayby later I will try what Tom said.

Thanks again!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/UV-CDAT/uvcdat/issues/2160#issuecomment-288304576, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ACpw8bm-88GBODCf9F9PqvJOHH-rgz8Vks5roLWogaJpZM4Mh7aU.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/UV-CDAT/uvcdat/issues/2160#issuecomment-288448419, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABPJkUqW3klikMUigSmHEjgk34ifCxScks5roUZDgaJpZM4Mh7aU.