das-developers / das2java

The original das2 library. Provides interactive publication-ready 2-D plotting
https://das2.org
GNU Lesser General Public License v3.0
4 stars 0 forks source link

Use das2.org/browse to get parameters GUI spec #8

Open jbfaden opened 3 years ago

jbfaden commented 3 years ago

The Das2 Server has always had the problem that you could pass in a parameters string to a data source, but the client code would have to know how to interact with the source. Sometimes this string is simple, with "LFRL" meaning just send over the LFRL mode, and sometimes very complex like for the Cassini data readers. Chris has developed a specification for these reader params which should support all Das2 readers, and has a website that uses the specification to build HTML GUIs, https://das2.org/browse. This site, the federated data catalog, also addresses other issues like describing redundancy, but this ticket focuses on the problem of the reader parameters.

Autoplot provides a space to insert this parameter string, and Bill and the other scientists are able to manage with it, inserting the magic strings which they know will provide the data they need. The reader DSDF is visible to them as a pop-up, and the name/value pairs PARAM_00, PARAM_01, etc are used to convey what they should enter.

I'd like to create a GUI using the federated data catalog's specification and provide it as a means for creating the magic parameter string. I imagine the scientist would have two tabs in the parameters area, one as before to enter an arbitrary string and the other the GUI in a scroll pane. This would be done for Autoplot, but would be a Java code which is useful in custom Das2 applications as well.

Some references: https://das2.org/browse/uiowa/juno/wav/survey http://das2.org/catalog/das/site/uiowa/juno/wav/survey/das2.json https://das2.org/browse/uiowa/cassini/rpws/survey

jbfaden commented 3 years ago

Here is an image of Autoplot's Das2Server GUI. 20210519_130618

cpiker commented 3 years ago

So some work for this has already been started in Autoplot. There is an internal Java interface that represents catalog nodes independently of the particular JSON or XML schema at work. This isolates the rest of Autoplot from (necessary) schema upgrades in the catalog. It also encapsulates converting data source node IDs to concrete URLs, and handles walking the node tree with automatic fail over.

The node URLs are exposed to the rest of Autoplot only as an diagnostic string and shouldn't be used to form Autoplot URLs nor should they be saved in a *.vap else one of the main points of creating the catalog (server mobility) is lost.

cpiker commented 3 years ago

Could you change the title of the issue to "Using das.org/catalog to get parameters GUI spec"? The reason is that https://das2.org/browse is a client, not the server. Yea, it's confusing because they are both housed on the same physical server. The catalog server is a "no-server" server, i.e. a carefully crafted static file set that's updated on a schedule instead of being dynamically generated.

https://das2.org/browse/uiowa/juno/wav/survey This is a client URL

http://das2.org/catalog/das/site/uiowa/juno/wav/survey/das2.json This is a server node URL (but don't save node URLs in vaps, save IDs)

https://das2.org/browse/uiowa/cassini/rpws/survey This is a client URL

Currently the default redundant root node URLs are:

All ID resolution should start from one of those two URLs unless there is a user-defined detached tree.

VoyagerPWS commented 3 years ago

Just because I'm too lazy to look it up, can someone provide a link to the Autoplot code being modified?

cpiker commented 3 years ago

https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/FedCatDataSource/

This is one of those projects I should probably have put into the github repository.


From: Larry Granroth @.***> Sent: Wednesday, May 19, 2021 2:15 PM To: das-developers/das2java Cc: Piker, Chris W; Comment Subject: [External] Re: [das-developers/das2java] Use das2.org/browse to get parameters GUI spec (#8)

Just because I'm too lazy to look it up, can someone provide a link to the Autoplot code being modified?

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/das-developers/das2java/issues/8#issuecomment-844394443, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABZOSPVY7CBLZZFBMK4GVH3TOQE3NANCNFSM45EUHN3Q.