This commit is contained in:
自由的飞翔 2018-12-17 03:07:30 +08:00
parent d6627c710b
commit 1db67ae1a8
1 changed files with 1 additions and 0 deletions

View File

@ -130,6 +130,7 @@ def get_spi_dataframe(station_polygon, newdata_path, month):
for i in range(0, month - 1): for i in range(0, month - 1):
spi_month_data.append("1") spi_month_data.append("1")
spei_month_data.append("1;1") spei_month_data.append("1;1")
print(newdata.iloc[index])
spi_month_data.append(str(newdata.iloc[index].rain)) spi_month_data.append(str(newdata.iloc[index].rain))
spei_month_data.append(str(newdata.iloc[index].rain) + ";" + str(newdata.iloc[index].temp)) spei_month_data.append(str(newdata.iloc[index].rain) + ";" + str(newdata.iloc[index].temp))
index += 1 index += 1