Skip to content

Commit

Permalink
update data
Browse files Browse the repository at this point in the history
  • Loading branch information
meteoDaniel committed Jan 7, 2019
1 parent 50900d6 commit e4ed5f1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions bin/download_aemet_monthly_data.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
from datetime import datetime
from src.DataHandler.aemetDataHandler import get_aemet_climate_data
from src.DataHandler.aemetDataHandler import get_aemet_climate_data, aemet_data_processor
from src.Statistics.statisticalCalculations import calculcate_mean_days_lower_than_table
import pickle
start_date = datetime(1988, 1, 1)
end_date = datetime(2018, 3, 1)

start_date = datetime(1988, 2, 1)
end_date = datetime(1999, 12, 1)
data = get_aemet_climate_data(start_date,
end_date,
'B278')
data = aemet_data_processor(data)
from IPython import embed
embed()
calculated = calculcate_mean_days_lower_than_table(data,
2018)

get_aemet_climate_data(start_date,
end_date,
'B278')
pickle.dump(calculated,
open('/Users/imac/Desktop/Wetterberatung/insuranceDataProject/data/'
'probability_data/PALMA_DE_MALLORCA_2018.p', 'wb'))
Binary file removed data/probability_data/PALMA_DE_MALLORCA2018.p
Binary file not shown.
Binary file modified data/probability_data/PALMA_DE_MALLORCA_2018.p
100755 → 100644
Binary file not shown.

0 comments on commit e4ed5f1

Please sign in to comment.