Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Analysis: Average change over time #34

Open
FanWangEcon opened this issue Jan 31, 2024 · 0 comments
Open

Analysis: Average change over time #34

FanWangEcon opened this issue Jan 31, 2024 · 0 comments
Assignees
Labels

Comments

@FanWangEcon
Copy link
Member

FanWangEcon commented Jan 31, 2024

Average change over time

We compute change overtime in the exposure (units = share of time during the course of the year) of the average child to temperature over different thresholds. We consider a range of temperature from -40 to 40 at 1 degree intervals. We compare between 1990 and 2020. Our share of time is approximated by hourly ERA5 temperature meaures.

Part 1 Implementation with day and night time hours

Call PrjCEC::ffp_cec_inequality_func() and [PrjCEC::ffp_demo_loc_thres_dist()](https://github.com/ClimateInequality/PrjCEC/blob/main/R/ffp_cec_thres_combine.R), with:

Control parameters:

  • population groups: stv_grp_demo <- "age_group_m3"
  • population group selection: st_demo_subgroup <- "0_14"
  • locations: stv_grp_loc <- "all_locations"
  • Calculations:
    • st_time_stats <- "share"
    • ar_temp_bound <- seq(-40, 40, length.out = 81)
    • bl_greater <- TRUE

Input files:

  • population file: df_china_census_county_1990.csv and df_china_census_county_2020.csv
  • temperature file: df_era5_utci_china_1990_hour.csv and df_era5_utci_china_2020_hour.csv
  • key files:
    • st_file_key_popgrp <- "df_key_demo_china_census_1990.csv"
    • st_file_key_loc <- "df_key_loc_china_coord2county_1990.csv"
    • st_file_key_loc_agg <- "df_key_loc_china_county2province_1990.csv"

Output files:

Part 2 Implementation with only daytime hours

All same as in part 2, but first run #35 to generate day time hours only, and then use different temperature files.

Code files:

Input files:

  • temperature file: df_era5_utci_china_1990_hour6t22.csv and df_era5_utci_china_2020_hour6t22.csv.

Output files:

Part 3 Implementation with non-summer only time

@FanWangEcon FanWangEcon self-assigned this Jan 31, 2024
FanWangEcon added a commit that referenced this issue Feb 7, 2024
- Part 1 of #34, all hours day and night
- output csv file across thresholds
- parallel scripts to generate threshold-specific and aggregate files
FanWangEcon added a commit that referenced this issue Feb 7, 2024
- Part 2 of #34, day time hours only
- output csv file across thresholds
- parallel scripts to generate threshold-specific and aggregate files
FanWangEcon added a commit that referenced this issue Feb 8, 2024
- Generate output files for mean child tab and figures
- Generate mean child table, table A done
- Change folder name 6 to 22 #34
FanWangEcon added a commit that referenced this issue Feb 10, 2024
- Core function outputs file without the word pm10 in variable string #11
- Core function outputs categorical variable labeling group-specific and cross-group and overall-results #11
- New local run support parallel node, temperature array helper func
- New Run scripts file
- Updated 24 hour and day time scripts to use new local run support
- Updated CSV outputs for 24 hour and day time results with no pm10 in variable names and categorical label #34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant