Skip to content

Commit

Permalink
Merge pull request #14 from MET-OM/KonstantinChri-patch-1
Browse files Browse the repository at this point in the history
Update ts_mod.py
  • Loading branch information
KonstantinChri authored Apr 22, 2024
2 parents 324b69d + ad3961b commit 4ac7c78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metocean_api/ts/ts_mod.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def __init__(self, lon: float, lat: float, start_time: str='1990-01-01T00:00', e
def import_data(self, save_csv = True, save_nc = False):
if ((self.product=='NORA3_wave_sub') or (self.product=='NORA3_wave')):
if self.variable == []:
self.variable = ['hs','tp','tm1','tm2','tmp','Pdir','thq', 'hs_sea','tp_sea','thq_sea' ,'hs_swell','tp_swell','thq_swell']
self.variable = ['hs','tp','fpI','tm1','tm2','tmp','Pdir','thq', 'hs_sea','tp_sea','thq_sea' ,'hs_swell','tp_swell','thq_swell']
else:
pass
self.data = NORA3_wind_wave_ts(self, save_csv = save_csv, save_nc = save_nc)
Expand All @@ -61,7 +61,7 @@ def import_data(self, save_csv = True, save_nc = False):
self.data = NORA3_combined_ts(self, save_csv = save_csv,save_nc = save_nc)
elif self.product == 'NORAC_wave':
if self.variable == []:
self.variable = ['hs','tp','t0m1','t02','t01','dp','dir', 'phs0','ptp0','pdir0' ,'phs1','ptp0','pdir1']
self.variable = ['hs','tp','fpI','t0m1','t02','t01','dp','dir', 'phs0','ptp0','pdir0' ,'phs1','ptp0','pdir1']
else:
pass
self.data = NORAC_ts(self, save_csv = save_csv,save_nc = save_nc)
Expand Down

0 comments on commit 4ac7c78

Please sign in to comment.