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

Region aggregation in CHILLED #27

Open
byersiiasa opened this issue Sep 16, 2024 · 1 comment
Open

Region aggregation in CHILLED #27

byersiiasa opened this issue Sep 16, 2024 · 1 comment
Assignees
Labels
chilled PRs and issues related to the CHILLED model enhancement New feature or request

Comments

@byersiiasa
Copy link
Member

byersiiasa commented Sep 16, 2024

data = pd.concat((pd.read_csv(f) for f in files), ignore_index=True).rename(
columns={"REGION_GEA": "region"}
)

As I understand, this reads in a file and maps the REGION_GEA column with the countries. This function could be more versatile if the region mapping could be provided as an argument to the function, either as a filename or a df

@measrainsey

Also reading, wasn't clear to me why UKESM file is used for the population..
# merge with UKESM1-0-LL population data so that all gcms use the same population data

# merge with UKESM1-0-LL population data so that all gcms use the same population data

@measrainsey measrainsey self-assigned this Sep 17, 2024
@measrainsey measrainsey added enhancement New feature or request chilled PRs and issues related to the CHILLED model labels Sep 17, 2024
@measrainsey
Copy link
Contributor

Thanks for this! Agreed that it would be better to have files read as inputs instead of hard-coded when possible, so this is on my TODO list.

Also reading, wasn't clear to me why UKESM file is used for the population.. # merge with UKESM1-0-LL population data so that all gcms use the same population data

# merge with UKESM1-0-LL population data so that all gcms use the same population data

Yes so to clarify, when we moved to running multiple GCMs there was a bug in the code that led to there being different population values across GCMs (which I don't think should be the case), which in turn led to strange energy intensities. At that time, due to time constraints, my tempfix was to just use the UKESM "population" data (which I don't think is really the UKESM's population data, but rather the SSP population data that got merged with the UKESM CHILLED run) across all GCMs in one of the more downstream calculations/aggregations.

Not a good practice though -- would be better if I can track down what was causing that issue to begin with upstream and fix it there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chilled PRs and issues related to the CHILLED model enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants