Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

Add height/elevation info #222

Open
dlnorgaard opened this issue Jul 26, 2018 · 4 comments
Open

Add height/elevation info #222

dlnorgaard opened this issue Jul 26, 2018 · 4 comments
Assignees

Comments

@dlnorgaard
Copy link
Member

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 dlnorgaard self-assigned this Jul 27, 2018
dlnorgaard pushed a commit to dlnorgaard/swarm that referenced this issue Jul 27, 2018
dlnorgaard pushed a commit that referenced this issue Jul 31, 2018
@dlnorgaard
Copy link
Member Author

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
Copy link
Member Author

Opened Winston issue usgs/winston#71 for this.

@dlnorgaard
Copy link
Member Author

On Winston issue:

On Tue, Apr 2, 2019 at 3:37 PM Tom Parker [email protected] 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
Copy link
Member Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant