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

[AWIPS #HSO-864729]: Grid Data History for GFE Type Data



Hi Garrett,

After doing some digging I was able to find access to the model times and the 
data time.
I'm not sure if either of these are really what you want.  I haven't been able 
to find any sort of access to a modification or publish time though.
For the model times, it is one of the optional parameters that can be passed in 
as one of the optional parameters on the request:

req = DataAccessLayer.newDataRequest()
req.setDataType("gfe")

optional = DataAccessLayer.getOptionalIdentifiers(req)
print(optional)

====output====
['parmId.dbId.modelName', 'parmId.dbId.modelTime', 'parmId.dbId.siteId', 
'parmId.dbId.dbType']
==============

values = DataAccessLayer.getIdentifierValues(req, "parmId.dbId.modelTime")
print(values)

====output====
['20200317_0600', '20200317_1700', '20200317_0700', '20200317_1500', 
'00000000_0000', '20200317_0000', '20200317_1200', '20200317_1600', 
'20200317_0900', '20200317_1300', '20200317_1000']
==============

You could then set the model time by calling 
req.addIdentifier("paramId.dbId.modelTime", "20200317_0600") for instance, and 
go from there.

The data time I found by:

response = DataAccessLayer.getGridData(req)
for grid in response:
    data = grid.getRawData()
    lons, lats = grid.getLatLonCoords()
    print('Time : ' + str(grid.getDataTime()))

Anyway, I know these don't exactly answer your question.  I haven't been able 
to find any other time values though as of now.  Let me know if this is helpful 
at all, and I might try and use some other resources to learn more about the 
DAF with relation to GFE data.
Thanks.



--Shay Carter

Software Engineer II
UCAR - Unidata

Ticket Details
===================
Ticket ID: HSO-864729
Department: Support AWIPS
Priority: Normal
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.