-
Notifications
You must be signed in to change notification settings - Fork 16
Update guidance to point to non-contiguous time #448
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -285,8 +285,21 @@ Note there is a variable naming inconsistency for these file - described in the | |
|
|
||
| The data for ScenarioMIP comes from a range of IAMs, | ||
| rather than the CEDS consortium. | ||
| [TODO: any information about how ScenarioMIP files differ from the DECK files. | ||
| There shouldn't be any major differences] | ||
| The file naming and general format is the same as the historical. | ||
| The key difference is that the data is not contiguous in time, | ||
| but instead is provided as monthly data for specific years. | ||
| Your code will have to handle this, | ||
| and you will have to interpolate between these timesteps yourself. | ||
| If you do not have any existing interpolation methods, | ||
| our suggestion is to linearly interpolate based on the monthly data | ||
| i.e. $E(y, m, ...) = E(y_0, m, ...) + \frac{y - y_0}{y_1 - y_0} \cdot (E(y_1, m, ...) - E(y_0, m, ...))$, | ||
| where $y$ is the year and $m$ is the month for which your are generating interpolated data, | ||
| $...$ represents non-time (i.e. spatial) dimensions, | ||
| $y_0$ is the previous year for which there is data in the forcings dataset | ||
| and $y_1$ is the next year for which there is data in the forcings dataset. | ||
| For example, assuming the data is reported for 2030 and 2035 in the forcings dataset, | ||
| values for a given month in 2032 would be given by | ||
| $E(2032, m, ...) = E(2030, m, ...) + \frac{2032 - 2030}{2035 - 2030} \cdot (E(2035, m, ...) - E(2035, m, ...))$. | ||
|
Comment on lines
+293
to
+302
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just make it clear that months need to be interpolated separately to preserve the monthly variation within each interpolated year. |
||
|
|
||
| <!--- begin-revision-history --> | ||
| <!--- Do not edit this section, it is automatically updated when the docs are built --> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -315,8 +315,21 @@ Apply the 1850 values on repeat. | |
|
|
||
| The data for ScenarioMIP comes from a range of IAMs, | ||
| rather than the CEDS consortium. | ||
| [TODO: any information about how ScenarioMIP files differ from the DECK files | ||
| There shouldn't be any major differences except maybe naming of VOCs.] | ||
| The file naming and general format is the same as the historical. | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jkikstra @eahoegner @mzecc can you please double check this. I think we have a difference in names for NMVOCs? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The CEDS and IIASA-IAMC datasets differ in their definition of |
||
| The key difference is that the data is not contiguous in time, | ||
| but instead is provided as monthly data for specific years. | ||
| Your code will have to handle this, | ||
| and you will have to interpolate between these timesteps yourself. | ||
| If you do not have any existing interpolation methods, | ||
| our suggestion is to linearly interpolate based on the monthly data | ||
| i.e. $E(y, m, ...) = E(y_0, m, ...) + \frac{y - y_0}{y_1 - y_0} \cdot (E(y_1, m, ...) - E(y_0, m, ...))$, | ||
| where $y$ is the year and $m$ is the month for which your are generating interpolated data, | ||
| $...$ represents non-time (i.e. spatial) dimensions, | ||
| $y_0$ is the previous year for which there is data in the forcings dataset | ||
| and $y_1$ is the next year for which there is data in the forcings dataset. | ||
| For example, assuming the data is reported for 2030 and 2035 in the forcings dataset, | ||
| values for a given month in 2032 would be given by | ||
| $E(2032, m, ...) = E(2030, m, ...) + \frac{2032 - 2030}{2035 - 2030} \cdot (E(2035, m, ...) - E(2035, m, ...))$. | ||
|
|
||
| <!--- begin-revision-history --> | ||
| <!--- Do not edit this section, it is automatically updated when the docs are built --> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jkikstra @eahoegner @mzecc can you please double check this