M3Works / metloom

Location Oriented Observed Meteorology
Other
15 stars 4 forks source link

USGS - Snotel coordinate system #113

Closed jomey closed 2 months ago

jomey commented 2 months ago

Question on where the NAD-83 EPSG code information came: https://github.com/M3Works/metloom/blob/43d578d79a84ed5ec300c83bc66d59067c292d96/metloom/pointdata/usgs.py#L79

I needed a refresher myself today and came across this in the FAQ:

SNOTEL site coordinates in the WGS84 coordinate system (Latitude/Longitude) are available on our website

Comparing the values for 637:ID:SNTL, it looks like that this is also returned in the SOAP API metadata.

So is this conversion necessary?

micah-prime commented 2 months ago

Hey Joe!

I'll need to double check on the USGS source CRS, but that shouldn't effect any of the SNOTEL info. We don't do that conversion for SNOTEL sites https://github.com/M3Works/metloom/blob/main/metloom/pointdata/snotel.py

micah-prime commented 2 months ago

It looks like USGS returns NAD83 values from the metadata endpoint. Here is an example of a metadata response from the API https://github.com/M3Works/metloom/blob/43d578d79a84ed5ec300c83bc66d59067c292d96/tests/data/usgs_mocks/platoro_meta.txt

jomey commented 2 months ago

Ah .. got it. Seems I got twisted around navigating the source code. Thanks for checking!