Skip to content

Commit 51e0929

Browse files
committed
Fix to release map script, changing column names so that the fisheries release works in plasticparcels
1 parent 777a8e9 commit 51e0929

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plasticparcels/scripts/create_release_maps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ def create_fisheries_gfwv2_release_map(fisheries_filepath, mask_land_filepath):
390390

391391
# Create a data set where longitude and latitude are from the model
392392
model_agg_data_fisheries_info = model_agg_data_fisheries_info.groupby(['ModelLongitude', 'ModelLatitude', 'Flag', 'Geartype', 'Month', 'Continent', 'Region', 'Subregion', 'Country'])['fishing_hours'].agg('sum').reset_index()
393-
393+
model_agg_data_fisheries_info = model_agg_data_fisheries_info.rename(columns={'ModelLatitude': 'Latitude', 'ModelLongitude': 'Longitude'})
394394
# Return both raw and model datasets
395395
return agg_data_fisheries_info, model_agg_data_fisheries_info
396396

0 commit comments

Comments
 (0)