Thanks for this code! I just found a bug that prevents the download code from being used on certain dates.
if dayofyear < 10:
dayofyear = '00'+str(dayofyear)
if dayofyear < 100 and dayofyear >= 10:
dayofyear = '0'+str(dayofyear)
That 2nd if should be an elif since if the first one is True, it converts dayofyear into a string which can't then be compared to a number for the 2nd one.
Hi Charlotte,
Thanks for this code! I just found a bug that prevents the download code from being used on certain dates.
That 2nd
if
should be anelif
since if the first one is True, it convertsdayofyear
into a string which can't then be compared to a number for the 2nd one.Thanks again,
Scott