diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..adbb97d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +data/ \ No newline at end of file diff --git a/PrepareData.py b/PrepareData.py index 7cc1927..e4081be 100644 --- a/PrepareData.py +++ b/PrepareData.py @@ -23,10 +23,10 @@ ### Download data for i in range(2557): try: - url = 'http://water.weather.gov/precip/archive/{dt:%Y/%m/%d}/nws_precip_conus_{dt:%Y%m%d}.nc'.format(dt=curdt) + url ='https://water.noaa.gov/resources/downloads/precip/stageIII/{dt:%Y/%m/%d}/nws_precip_conus_{dt:%Y%m%d}.nc'.format(dt=curdt) urlretrieve(url, 'data/nws_precip_conus_{dt:%Y%m%d}.nc'.format(dt=curdt)) - curdt = dt + timedelta(days=i) - except: + curdt = curdt + timedelta(days=1) + except Exception: pass diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..a24a0f2 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,7 @@ +netCDF4>=1.5.3 +numpy>=1.19.0 +matplotlib>=3.3.0 +torch>=1.5.0 +torchvision>=0.6.0 +scikit-image>=0.17.0 +tensorboard>=2.3.0