-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error pyoscar get_station_report_summary when retrieving 0-76-0-5208707000000007 #773
Comments
Reproduced locally via: pyoscar station "0-76-0-3170206000000036" -s -f XML Interestingly enough, |
WIS2box, via pyoscar, accesses the following link: https://oscar.wmo.int/oai/provider?verb=GetRecord&metadataPrefix=wmdr&identifier=0-76-0-3170206000000036 This works and returns the XML via the browser. |
the following command also works:
and returns the XML as expected. |
A bit more investigation: import json
from pyoscar import OSCARClient
client = OSCARClient(env='prod')
station = client.get_station_report("0-76-0-3170206000000036", format_='XML', summary=True)
print(json.dumps(station, indent = 4)) gives the following output: {
"station_name": "UBERLANDIA",
"wigos_station_identifier": "0-76-0-3170206000000036",
"facility_type": "landFixed",
"wmo_region": "southAmerica",
"territory_name": "BRA",
"latitude": -18.916944,
"longitude": -48.255556,
"elevation": 874.8,
"barometer_height": 870.5
} Using the WSI "0-76-0-5208707000000007" also works correctly. This is the line from the wis2box-api where we fetch from OSCAR: The error either occurs after here or there are network problems. |
José reported that the problem fixed itself after one day. This was the second day station where Brazil updated the primary wigos-id during the training, failed to import it into wis2box, then repeat the import one day later and it works. We suspect that there is something about the way that OSCAR/Surface works, whereby an update does not immediately translate into the station being available for import into the wis2box, but can be imported one day later ... |
From OSCAR/Surface, for reference:
|
Hi Tom,
When getting metadata station 0-76-0-5208707000000007 we encounter an error originating in pyoscar, could you have look?
wis2box metadata station get 0-76-0-5208707000000007
The text was updated successfully, but these errors were encountered: