[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AWIPS #XZH-451289]: simple edex-cloud.undidata.ucar.edu question



Hi Mike,

> What I'm really trying to see are the forecast hours, within a particular
> model run. For example for today's 2021-08-30 00:00:00 cycle (forecast
> run, model run), how do I pull out specific forecast hours from that model
> run, or see which forecast hours are available.

I'm fairly sure I'm understanding your question correctly this time, and after a
little more digging, I think I've found the answer.

If you look at that code block where the times and cycles are being set and then
used to get the fcstRuns, the notebook then just uses the first element of that
array as to get the data:
 response = DataAccessLayer.getGeometryData(request,[fcstRun[0]])

But I think you'll want to actually look at that whole array, to figure out 
which
element you want, with the corresponding forecast hour you want.
In order to see the forecast times, you have to actually look at each object in 
the
array and print out it's forecast hour.  Which you can do with the following 
code:

    fcstRun = DataAccessLayer.getForecastRun(cycles[-1], times)
    for time in fcstRun:
        print(time, time.getFcstTime())

I've attached a screenshot of this code block along with the current output 
that I'm
receiving right now.
The number on the far right is the forecast time, we believe in milliseconds.  
So,
once you find the forecast time you want, you use that index in the call for 
the 
response, instead of 0. 

 response = DataAccessLayer.getGeometryData(request,[fcstRun[x])

Where x is the index of the forecast time you want.

Let me know if this makes any sense?
Thanks!

--Shay Carter

She/Her/Hers
AWIPS Software Engineer
UCAR - Unidata

If you're interested, please feel free to fill out a survey about the support 
you receive: 
https://docs.google.com/forms/d/e/1FAIpQLSeDIkdk8qUMgq8ZdM4jhP-ubJPUOr-mJMQgxInwoAWoV5QcOw/viewform

Ticket Details
===================
Ticket ID: XZH-451289
Department: Support AWIPS
Priority: Urgent
Status: Open
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.

Attachment: Screen Shot 2021-08-30 at 12.32.19 PM.png
Description: PNG image