Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/noaa/gpcc_spi/preprocess_gpcc_spi.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def nc_to_df(nc_path, period, spi_col, start_date, end_date):
df['period'] = f'"[{int(period)} dcs:Monthly]"'
# Adding observation period in output csv
df['observationPeriod'] = f'P{int(period)}M'
df['place'] = df[['lat', 'lon']].apply(to_one_degree_grid_place, axis=1)
df['place'] = df[['lat', 'lon']].apply(to_one_degree_grid_place, axis=1, raw=True)
Comment thread
balit-raibot marked this conversation as resolved.
Outdated
df = df.drop('lat', axis=1)
df = df.drop('lon', axis=1)
return df
Expand Down
Loading