Compare commits
No commits in common. "322c7fa6bb110092fbd01d46ba44107061432330" and "86444caee69db78d9a885f992ad307ed1fc88c89" have entirely different histories.
322c7fa6bb
...
86444caee6
2 changed files with 3 additions and 10 deletions
|
@ -22,12 +22,9 @@ class BUFRSounding(Sounding):
|
|||
sample = self.samples_by_pressure.get(pressure)
|
||||
|
||||
if sample is None:
|
||||
sample = SoundingSample()
|
||||
sample.pressure = pressure
|
||||
self.samples_by_pressure[pressure] = SoundingSample()
|
||||
|
||||
self.samples_by_pressure[pressure] = sample
|
||||
|
||||
return sample
|
||||
return self.samples_by_pressure[pressure]
|
||||
|
||||
@staticmethod
|
||||
def init():
|
||||
|
@ -43,7 +40,7 @@ class BUFRSounding(Sounding):
|
|||
request.getParameters().extend(BUFRSounding.BUFR_PARAMS_SIGT)
|
||||
request.getParameters().extend(BUFRSounding.BUFR_PARAMS_SIGW)
|
||||
|
||||
request.setLocationNames(station)
|
||||
request.setLocationName(station)
|
||||
|
||||
datatimes = DataAccessLayer.getAvailableTimes(request)
|
||||
|
||||
|
@ -79,7 +76,4 @@ class BUFRSounding(Sounding):
|
|||
sample.wind_speed = item.getNumber('wsSigW')
|
||||
sample.wind_dir = item.getNumber('wdSigW')
|
||||
|
||||
for pressure in sorted(sounding.samples_by_pressure.keys(), reverse=True):
|
||||
sounding.samples.append(sounding.samples_by_pressure[pressure])
|
||||
|
||||
return sounding
|
||||
|
|
|
@ -131,7 +131,6 @@ class Sounding(DatabaseTable):
|
|||
super().__init__()
|
||||
self.id = None
|
||||
self.location = None
|
||||
self.samples = list()
|
||||
|
||||
@staticmethod
|
||||
def valid_by_station(db: Database,
|
||||
|
|
Loading…
Add table
Reference in a new issue