Skip to content

Commit

Permalink
fixed 25km scraping
Browse files Browse the repository at this point in the history
  • Loading branch information
wino6687 committed Oct 9, 2018
1 parent f1b358b commit 95b7153
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion swepy/swepy.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,15 +272,18 @@ def get_file(self, date, channel): # add more defaulting params
else:
resolution = '25km'
algorithm = 'GRD'
if datetime(2003,1,1) <= date <= datetime(2008,12,31):
if datetime(2003,1,1) <= date <= datetime(2008,3,5):
date2 = date - timedelta(days = 1)
else:
date2 = date

if date in [datetime(2003,11,6), datetime(2004,4,9)]:
sensor = 'F14'
if date in [datetime(2006,11,4), datetime(2006,12,1), datetime(2008,2,26)]:
sensor = 'F15'
ssmi_s = "SSMI"
if date in pd.date_range(datetime(2008,3,6), datetime(2008,12,31)):
sensor = 'F17'
if date in [datetime(2005,5,12),datetime(2006,2,4),datetime(2008,1,2),datetime(2008,2,26)]:
pass1 = 'E'
if self.grid == 'T':
Expand Down

0 comments on commit 95b7153

Please sign in to comment.