usgs / swarm

a Java application designed to display and analyze seismic waveforms in real-time.
http://volcanoes.usgs.gov/software/swarm
Other
36 stars 15 forks source link

Add height/elevation info #222

Open dlnorgaard opened 6 years ago

dlnorgaard commented 6 years ago

When hovering over a station in the map, the lat/lon displays but not the height. Jeremy requested that the height info be added.

dlnorgaard commented 6 years ago

Height information for FDSN will now display. Data from seedlink does not seem to return location info (or maybe the client is not handling it since there are lots of channels). As for WWS, the height information is not returned in the metadata. This requires further investigation and potentially a change in Winston code.

dlnorgaard commented 5 years ago

Opened Winston issue https://github.com/usgs/winston/issues/71 for this.

dlnorgaard commented 5 years ago

On Winston issue:

On Tue, Apr 2, 2019 at 3:37 PM Tom Parker notifications@github.com wrote: I don't think there's a way to add height to the GETCHANNELS command without breaking existing clients. You spotted the problem, an exact match on argument count in Channel.parse(). That's no good.

However, instrument height is returned by the GETMETADATA command. I'm closing this for now. If GETMETADATA won't work for you or if you have an idea for accommodating height in GETCHANNELS, re-open the ticket.

java -jar target/wwsclient-1.3.6.jar --server pubavo1.wr.usgs.gov --command "GETMETADATA 1 INSTRUMENT" 2019-04-02 02:33:24 INFO - Received 1024 bytes. 1 432 name=ACH,description=,longitude=-155.3281,latitude=58.21,height=960.0,timezone=null, name=ADAG,description=,longitude=-176.6037,latitude=51.9791,height=286.0,timezone=null, name=AHB,description=,longitude=-165.8177,latitude=54.1144,height=447.0,timezone=null, name=AJAX,description=,longitude=-158.2238,latitude=56.8887,height=967.0,timezone=null, name=AK1,description=,longitude=-165.772,latitude=54.135,height=12.0,timezone=null, name=AK2,description=,longitude=-165.7803,latitude=54.1233,height=90.0,timezone=null, name=AK3,description=,longitude=-165.772,latitude=54.135,height=12.0,timezone=null, name=AK4,description=,longitude=-165.7337,latitude=54.1091,height=135.0,timezone=null, name=AK5,description=,longitude=-165.867,latitude=54.15434,height=225.0,timezone=null, name=AKBB,description=,longitude=-165.9338,latitude=54.0975,height=310.0,timezone=null, name=AKGG,description=,longitude=-165.9936,latitude=54.1979,height=326.0,timezone=null,

dlnorgaard commented 5 years ago

GETMETADATA INSTRUMENT may not work for some Winstons installed after following bug was introduced: https://github.com/usgs/winston/issues/78. Awaiting fix before proceeding.