Skip to content

Commit

Permalink
some updates to data.
Browse files Browse the repository at this point in the history
  • Loading branch information
Melsteroni committed Jan 16, 2025
1 parent 6f10efb commit 147cc88
Show file tree
Hide file tree
Showing 51 changed files with 104,370 additions and 107,261 deletions.
240 changes: 228 additions & 12 deletions combining_pressures/pressure_locations.csv

Large diffs are not rendered by default.

Binary file modified habitats/habitat_n.tif
Binary file not shown.
394 changes: 197 additions & 197 deletions impact/data/country_coast_cumulative_impact.csv

Large diffs are not rendered by default.

1,309 changes: 0 additions & 1,309 deletions impact/data/country_coast_impact.csv

This file was deleted.

199 changes: 0 additions & 199 deletions impact/data/country_coastal_cumulative_impact.csv

This file was deleted.

199 changes: 0 additions & 199 deletions impact/data/country_eez_cumulative_impact.csv

This file was deleted.

192,808 changes: 96,404 additions & 96,404 deletions impact/data/country_eez_habxpressurexscenario_impact.csv

Large diffs are not rendered by default.

1,417 changes: 0 additions & 1,417 deletions impact/data/country_eez_impact.csv

This file was deleted.

244 changes: 122 additions & 122 deletions impact/data/dataS1.csv

Large diffs are not rendered by default.

462 changes: 231 additions & 231 deletions impact/data/dataS2.csv

Large diffs are not rendered by default.

394 changes: 197 additions & 197 deletions impact/data/dataS3.csv

Large diffs are not rendered by default.

13,614 changes: 6,807 additions & 6,807 deletions impact/data/dataS4.csv

Large diffs are not rendered by default.

Binary file added impact/figs/coastal_vs_offshore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified impact/figs/coastal_vs_offshore_cumulative_impact.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified impact/figs/coastal_vs_offshore_cumulative_impact_ssp585.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified impact/figs/coastal_vs_offshore_pressure_impact.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified impact/figs/coastal_vs_offshore_pressure_impact_ssp585.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed impact/figs/coastal_vs_offshoret.png
Binary file not shown.
Binary file modified impact/figs/coastal_vs_offshoret_ssp585.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified impact/figs/cumulative/ssp245_current.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified impact/figs/cumulative/ssp245_medium-term.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified impact/figs/cumulative/ssp245_near-term.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified impact/figs/cumulative/ssp585_current.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified impact/figs/cumulative/ssp585_medium-term.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified impact/figs/cumulative/ssp585_near-term.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified impact/figs/cumulative/sspp245_change.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified impact/figs/cumulative/sspp585_change.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified impact/figs/current_depend_scatterplot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified impact/figs/current_future_scatterplot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified impact/figs/georegion_pressure_cumulative_impact.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified impact/figs/georegion_pressure_cumulative_impact_ssp585.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified impact/figs/habitat_impact_change_barplot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified impact/figs/habitat_impact_change_barplot_ssp585.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified impact/figs/habitat_impact_future_barplot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified impact/figs/habitat_impact_future_barplot_ssp585.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified impact/figs/habitat_pressure_cumulative_impact.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified impact/figs/habitat_pressure_cumulative_impact_ssp585.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified impact/figs/hotspots.png
Binary file modified impact/figs/hotspots_ssp585.png
Binary file modified impact/figs/latitudinal_impacts.png
Binary file modified impact/figs/latitudinal_impacts_ssp585.png
Binary file modified impact/figs/subregion_impact_change_barplot.png
Binary file modified impact/figs/subregion_impact_change_barplot_ssp585.png
Binary file modified impact/figs/subregion_impact_future_barplot.png
Binary file modified impact/figs/subregion_impact_future_barplot_ssp585.png
Original file line number Diff line number Diff line change
Expand Up @@ -114,26 +114,26 @@ light_rescaled,ssp5,current,light-pollution,/home/shares/ohi/stressors_2021/_dat
light_rescaled,ssp5,near-term,light-pollution,/home/shares/ohi/stressors_2021/_dataprep/light/rescale
light_rescaled,ssp5,medium-term,light-pollution,/home/shares/ohi/stressors_2021/_dataprep/light/rescale
light_rescaled,ssp5,long-term,light-pollution,/home/shares/ohi/stressors_2021/_dataprep/light/rescale
fisheries,ssp1,current,fisheries-biomass-loss,/home/shares/ohi/stressors_2021/_dataprep/fisheries_biomass/pressure
fisheries,ssp1,near-term,fisheries-biomass-loss,/home/shares/ohi/stressors_2021/_dataprep/fisheries_biomass/pressure
fisheries,ssp1,medium-term,fisheries-biomass-loss,/home/shares/ohi/stressors_2021/_dataprep/fisheries_biomass/pressure
fisheries,ssp1,long-term,fisheries-biomass-loss,/home/shares/ohi/stressors_2021/_dataprep/fisheries_biomass/pressure
fisheries,ssp2,current,fisheries-biomass-loss,/home/shares/ohi/stressors_2021/_dataprep/fisheries_biomass/pressure
fisheries,ssp2,near-term,fisheries-biomass-loss,/home/shares/ohi/stressors_2021/_dataprep/fisheries_biomass/pressure
fisheries,ssp2,medium-term,fisheries-biomass-loss,/home/shares/ohi/stressors_2021/_dataprep/fisheries_biomass/pressure
fisheries,ssp2,long-term,fisheries-biomass-loss,/home/shares/ohi/stressors_2021/_dataprep/fisheries_biomass/pressure
fisheries,ssp3,current,fisheries-biomass-loss,/home/shares/ohi/stressors_2021/_dataprep/fisheries_biomass/pressure
fisheries,ssp3,near-term,fisheries-biomass-loss,/home/shares/ohi/stressors_2021/_dataprep/fisheries_biomass/pressure
fisheries,ssp3,medium-term,fisheries-biomass-loss,/home/shares/ohi/stressors_2021/_dataprep/fisheries_biomass/pressure
fisheries,ssp3,long-term,fisheries-biomass-loss,/home/shares/ohi/stressors_2021/_dataprep/fisheries_biomass/pressure
fisheries,ssp4,current,fisheries-biomass-loss,/home/shares/ohi/stressors_2021/_dataprep/fisheries_biomass/pressure
fisheries,ssp4,near-term,fisheries-biomass-loss,/home/shares/ohi/stressors_2021/_dataprep/fisheries_biomass/pressure
fisheries,ssp4,medium-term,fisheries-biomass-loss,/home/shares/ohi/stressors_2021/_dataprep/fisheries_biomass/pressure
fisheries,ssp4,long-term,fisheries-biomass-loss,/home/shares/ohi/stressors_2021/_dataprep/fisheries_biomass/pressure
fisheries,ssp5,current,fisheries-biomass-loss,/home/shares/ohi/stressors_2021/_dataprep/fisheries_biomass/pressure
fisheries,ssp5,near-term,fisheries-biomass-loss,/home/shares/ohi/stressors_2021/_dataprep/fisheries_biomass/pressure
fisheries,ssp5,medium-term,fisheries-biomass-loss,/home/shares/ohi/stressors_2021/_dataprep/fisheries_biomass/pressure
fisheries,ssp5,long-term,fisheries-biomass-loss,/home/shares/ohi/stressors_2021/_dataprep/fisheries_biomass/pressure
fisheries,ssp1,current,fisheries-biomass-loss,/home/shares/ohi/stressors_2021/_dataprep/fisheries_biomass/pressure_mod2
fisheries,ssp1,near-term,fisheries-biomass-loss,/home/shares/ohi/stressors_2021/_dataprep/fisheries_biomass/pressure_mod2
fisheries,ssp1,medium-term,fisheries-biomass-loss,/home/shares/ohi/stressors_2021/_dataprep/fisheries_biomass/pressure_mod2
fisheries,ssp1,long-term,fisheries-biomass-loss,/home/shares/ohi/stressors_2021/_dataprep/fisheries_biomass/pressure_mod2
fisheries,ssp2,current,fisheries-biomass-loss,/home/shares/ohi/stressors_2021/_dataprep/fisheries_biomass/pressure_mod2
fisheries,ssp2,near-term,fisheries-biomass-loss,/home/shares/ohi/stressors_2021/_dataprep/fisheries_biomass/pressure_mod2
fisheries,ssp2,medium-term,fisheries-biomass-loss,/home/shares/ohi/stressors_2021/_dataprep/fisheries_biomass/pressure_mod2
fisheries,ssp2,long-term,fisheries-biomass-loss,/home/shares/ohi/stressors_2021/_dataprep/fisheries_biomass/pressure_mod2
fisheries,ssp3,current,fisheries-biomass-loss,/home/shares/ohi/stressors_2021/_dataprep/fisheries_biomass/pressure_mod2
fisheries,ssp3,near-term,fisheries-biomass-loss,/home/shares/ohi/stressors_2021/_dataprep/fisheries_biomass/pressure_mod2
fisheries,ssp3,medium-term,fisheries-biomass-loss,/home/shares/ohi/stressors_2021/_dataprep/fisheries_biomass/pressure_mod2
fisheries,ssp3,long-term,fisheries-biomass-loss,/home/shares/ohi/stressors_2021/_dataprep/fisheries_biomass/pressure_mod2
fisheries,ssp4,current,fisheries-biomass-loss,/home/shares/ohi/stressors_2021/_dataprep/fisheries_biomass/pressure_mod2
fisheries,ssp4,near-term,fisheries-biomass-loss,/home/shares/ohi/stressors_2021/_dataprep/fisheries_biomass/pressure_mod2
fisheries,ssp4,medium-term,fisheries-biomass-loss,/home/shares/ohi/stressors_2021/_dataprep/fisheries_biomass/pressure_mod2
fisheries,ssp4,long-term,fisheries-biomass-loss,/home/shares/ohi/stressors_2021/_dataprep/fisheries_biomass/pressure_mod2
fisheries,ssp5,current,fisheries-biomass-loss,/home/shares/ohi/stressors_2021/_dataprep/fisheries_biomass/pressure_mod2
fisheries,ssp5,near-term,fisheries-biomass-loss,/home/shares/ohi/stressors_2021/_dataprep/fisheries_biomass/pressure_mod2
fisheries,ssp5,medium-term,fisheries-biomass-loss,/home/shares/ohi/stressors_2021/_dataprep/fisheries_biomass/pressure_mod2
fisheries,ssp5,long-term,fisheries-biomass-loss,/home/shares/ohi/stressors_2021/_dataprep/fisheries_biomass/pressure_mod2
heat-index,ssp119,current,air-heat-index,/home/shares/ohi/stressors_2021/_dataprep/T_air/wb_heat_index/pressure_crop
heat-index,ssp119,near-term,air-heat-index,/home/shares/ohi/stressors_2021/_dataprep/T_air/wb_heat_index/pressure_crop
heat-index,ssp119,medium-term,air-heat-index,/home/shares/ohi/stressors_2021/_dataprep/T_air/wb_heat_index/pressure_crop
Expand Down
33 changes: 33 additions & 0 deletions impact/step1_getting_pressure_files.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
title: "Untitled"
output: html_document
date: "2024-07-17"
---

```{r setup, include=FALSE}
library(tidyverse)
library(terra)
library(here)
library(countrycode)
```

Save final pressure files to consistent file location and adjust filenaming.
```{r}
pressure_save <- "/home/shares/ohi/stressors_2021/_final_data/rescaled_pressures"
pressure_list <- read_csv(here("impact/pressure_locations.csv"))
file.remove(list.files(pressure_save, full=TRUE))
files_to_save <- paste0(pressure_list$f_path, "/", pressure_list$fn_pressure, "_", pressure_list$fn_scenario, "_", pressure_list$fn_time, ".tif")
files_new_loc <- paste0(pressure_save, "/", pressure_list$new_fn_pressure, "_", pressure_list$fn_scenario, "_", pressure_list$fn_time, ".tif")
for (i in seq_along(files_to_save)) { # i = 178
file.copy(from = files_to_save[i], to = files_new_loc[i], overwrite = TRUE)
}
length(list.files(pressure_save)) # currently should be 227
```


Loading

0 comments on commit 147cc88

Please sign in to comment.