Skip to content
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

Additional Sounding/RAOB JSON endpoints #117

Open
2 of 7 tasks
akrherz opened this issue Jun 6, 2017 · 5 comments
Open
2 of 7 tasks

Additional Sounding/RAOB JSON endpoints #117

akrherz opened this issue Jun 6, 2017 · 5 comments
Assignees

Comments

@akrherz
Copy link
Owner

akrherz commented Jun 6, 2017

Currently, we have /json/raob.py?station=XXXX&ts=YYYYMMDDHH24MI JSON service that emits a profile for a given station and time (why didn't I do ISO timestamps, sigh). Lets implement some more.

  • if no station is specified, return all profiles for a given timestamp
  • allow ISO date format in the current service, but not break previous clients
    /json/raob.py?station=XXXX&ts=YYYY-MM-DDTHH24:MMZ
  • Lists available soundings for a given station and UTC date
    /json/raob.py?metadata&station=XXXX&date=YYYY-MM-DD
  • Lists available soundings (station, name, lat, lon) for a given UTC date
    /json/raob.py?metadata&date=YYYY-MM-DD
  • List available soundings for a single UTC timestamp
    /json.raob.py?metadata&ts=YYYY-MM-DDTHH24:MMZ
  • Lists available soundings for a given station and time range, start inclusive, end exclusive, perhaps limited to 365 days between start and end time
    /json/raob.py?metadata&station=XXXX&start=YYYY-MM-DDTHH24:MMZ&end=YYYY-MM-DDTHH24:MMZ
  • Support fetching based on the "threaded" stations nomenclature the IEM uses to merge nearby sites into a single ID, ie _OAX. These IDs would not be used in the metadata calls.

Currently, the service returns a JSON object like so:

{"profiles": [{"station": "", "valid": "", "profile": []}]
}

So lets extend the above and in the case of metadata requests, not include the profile:[]

{"profiles": [{"station": "", "valid": "", "name": "", 
                   "latitude": 99.99, "longitude": 99.99, "profile_href": "/uri-fordata"}]
}
@akrherz akrherz self-assigned this Jun 6, 2017
@akrherz akrherz changed the title Addition Sounding/RAOB JSON endpoints Additional Sounding/RAOB JSON endpoints Jul 17, 2017
@jthielen
Copy link

How difficult would it be to allow for multiple simultaneous station requests?

@akrherz
Copy link
Owner Author

akrherz commented Jun 26, 2018

Hi @jthielen it is probably more a matter of being practical than difficult. Are you hoping to get all stations for a given time or period of time?

@jthielen
Copy link

jthielen commented Jun 26, 2018

Indeed, what I've been looking to do is request all stations at a given time, in order to make an upper air chart example with siphon/metpy.

akrherz added a commit that referenced this issue Jun 26, 2018
 * more flexible `ts` timestamp provision
 * allow to limit profiles for a given pressure level
 * allow to return all profiles when no station is set
@akrherz
Copy link
Owner Author

akrherz commented Jun 26, 2018

@jthielen you can now make a request http://mesonet.agron.iastate.edu/json/raob.py?ts=2018-06-26T12:00:00Z&pressure=500 to get all my 500 hPa values for a given timestamp. Dropping the pressure parameter yields all profiles for all stations :)

@jthielen
Copy link

Very nice! Thank you for helping with this so quickly!

jthielen added a commit to jthielen/siphon that referenced this issue Jun 29, 2018
Based on akrherz/iem#117, this commit
implements the new all-station upper air request from Iowa State.
Modifications were made to the parsing backend to allow for the returned
JSON with multiple files.
jthielen added a commit to jthielen/siphon that referenced this issue Jun 29, 2018
Based on akrherz/iem#117, this commit
implements the new all-station upper air request from Iowa State.
Modifications were made to the parsing backend to allow for the returned
JSON with multiple files.
jthielen added a commit to jthielen/siphon that referenced this issue Jun 29, 2018
Based on akrherz/iem#117, this commit
implements the new all-station upper air request from Iowa State.
Modifications were made to the parsing backend to allow for the returned
JSON with multiple files.
jthielen added a commit to jthielen/siphon that referenced this issue Jun 29, 2018
Based on akrherz/iem#117, this commit
implements the new all-station upper air request from Iowa State.
Modifications were made to the parsing backend to allow for the returned
JSON with multiple files.
jrleeman pushed a commit to Unidata/siphon that referenced this issue Jul 5, 2018
* Add other simple web services to the doc build

* Add all station support for IEM Upper Air

Based on akrherz/iem#117, this commit
implements the new all-station upper air request from Iowa State.
Modifications were made to the parsing backend to allow for the returned
JSON with multiple files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants