Adjust sounding queries
This commit is contained in:
parent
37c5b1f77a
commit
5e615b5d59
1 changed files with 4 additions and 4 deletions
|
@ -131,9 +131,9 @@ class Sounding(DatabaseTable):
|
|||
xmet_sounding
|
||||
where
|
||||
station = :station
|
||||
and timestamp_released <= :timestamp
|
||||
and timestamp_observed <= :timestamp
|
||||
order by
|
||||
timestamp_released desc
|
||||
timestamp_observed desc
|
||||
limit 1
|
||||
"""
|
||||
|
||||
|
@ -167,10 +167,10 @@ class Sounding(DatabaseTable):
|
|||
from
|
||||
xmet_sounding
|
||||
where
|
||||
timestamp_released <= :timestamp
|
||||
timestamp_observed <= :timestamp
|
||||
order by
|
||||
distance asc,
|
||||
timestamp_released desc
|
||||
timestamp_observed desc
|
||||
limit 1
|
||||
""".format(crs=COORD_SYSTEM)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue