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

Problem with stash diagnostic 1,291 DIRECT COMPONENT OF SURF PAR FLUX #93

Open
MartinDix opened this issue Sep 9, 2024 · 3 comments
Open
Assignees

Comments

@MartinDix
Copy link

@har917 and @rml599gh noticed that this variable isn't saved correctly (note that it's not included in the diagnostics saved in released configurations). However 2,290 TOTAL DOWNWARD PAR FLUX AT SURFACE is saved correctly. Here results from Jan of year 101 of PI control.

fpar

@MartinDix MartinDix self-assigned this Sep 9, 2024
@rml599gh
Copy link

rml599gh commented Sep 9, 2024

@MartinDix - thanks for pointing this out. It will likely be useful when I get back to looking at the sensitivity of GPP to the radiation split between NIR and VIS.

@MartinDix
Copy link
Author

MartinDix commented Sep 9, 2024

According to the time code in the STASHmaster file these variables are available every time step.

1|    1 |    1 |  290 |TOTAL DOWNWARD PAR FLUX AT SURFACE  |
2|    1 |    0 |    1 |    1 |    5 |   -1 |   -1 |    0 |    0 |    0 |    0 |
...
1|    1 |    1 |  291 |DIRECT COMPONENT OF SURF PAR FLUX   |
2|    1 |    0 |    1 |    1 |    5 |   -1 |   -1 |    0 |    0 |    0 |    0 |

Time code is line 2 column 3 with meaning
1 Every timestep.
2 Every long wave radiation timestep.
3 Every short wave radiation timestep.
(See https://code.metoffice.gov.uk/doc/um/latest/papers/umdp_C04.pdf#subsection.C.2)

However printing values showed that the direct component was only valid on radiation time steps.

Here compare annual means of 1 year runs with 1,291 saved only on radiation steps with a run that does radiation every time step (35% slower).

fpar1

This is the ratio of the direct to the total from these runs

fpar3

Therefore unless this field is required every time step the suggested fix is to modify the STASHmaster_A file to have

1|    1 |    1 |  291 |DIRECT COMPONENT OF SURF PAR FLUX   |
2|    1 |    0 |    3 |    1 |    5 |   -1 |   -1 |    0 |    0 |    0 |    0 |

This does not otherwise change results.

@MartinDix
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants