# Set time bounds for acclimation

**URL:** <https://cms-helpdesk.ncas.ac.uk/t/set-time-bounds-for-acclimation/1029>\
**Category:** JULES\
**Created:** [21 June 2023 00:11 UTC](https://cms-helpdesk.ncas.ac.uk/t/set-time-bounds-for-acclimation/1029 "2023-06-21T00:11:56Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![gwy](https://avatars.discourse-cdn.com/v4/letter/g/8e8cbc/32.png) [@gwy](https://cms-helpdesk.ncas.ac.uk/u/gwy)\
**Post date:** [21 June 2023 00:11 UTC](https://cms-helpdesk.ncas.ac.uk/t/set-time-bounds-for-acclimation/1029/1 "2023-06-21T00:11:56Z")

</div>

Dear Helpdesk,

I’m trying to get JULES to calculate the average over the time interval 11.30-13.00 of a 15 day time period. For now I think it is averaging over the whole day. And I am trying to do a similar thing with light co2 and surface pressure.

 ![Screenshot 2023-06-21 at 01.12.32](https://europe1.discourse-cdn.com/flex013/uploads/cms_support/original/1X/5763b18d59be42fd17e7d296a877ca7f5dab9e6e.png)

This part of code can be found in [main](https://code.metoffice.gov.uk/trac/jules/browser/main?rev=25369&order=name)/[branches](https://code.metoffice.gov.uk/trac/jules/browser/main/branches?rev=25369&order=name)/[dev](https://code.metoffice.gov.uk/trac/jules/browser/main/branches/dev?rev=25369&order=name)/[wenyaogan](https://code.metoffice.gov.uk/trac/jules/browser/main/branches/dev/wenyaogan?rev=25369&order=name)/[r24333\_pmodel](https://code.metoffice.gov.uk/trac/jules/browser/main/branches/dev/wenyaogan/r24333_pmodel?rev=25369&order=name)/[src](https://code.metoffice.gov.uk/trac/jules/browser/main/branches/dev/wenyaogan/r24333_pmodel/src?rev=25369&order=name)/[control](https://code.metoffice.gov.uk/trac/jules/browser/main/branches/dev/wenyaogan/r24333_pmodel/src/control?rev=25369&order=name)/[shared](https://code.metoffice.gov.uk/trac/jules/browser/main/branches/dev/wenyaogan/r24333_pmodel/src/control/shared?rev=25369&order=name)/[surf\_couple\_extra\_mod.F90](https://code.metoffice.gov.uk/trac/jules/browser/main/branches/dev/wenyaogan/r24333_pmodel/src/control/shared/surf_couple_extra_mod.F90?rev=25369&order=name)

I wonder if you know which variables would be related and how I could narrow it down to certain time period of a day.

Best,  
Wenyao

---

<div class="post-metadata">

**Author:** ![pmcguire](https://avatars.discourse-cdn.com/v4/letter/p/b782af/32.png) [@pmcguire](https://cms-helpdesk.ncas.ac.uk/u/pmcguire)\
**Post date:** [21 June 2023 15:10 UTC](https://cms-helpdesk.ncas.ac.uk/t/set-time-bounds-for-acclimation/1029/2 "2023-06-21T15:10:40Z")

</div>

Hi Wenyao:  
You can see that `t_growth_gb` is computed from `tl_1_gb`.

If you look in the code for `tl_1_gb` with `grep -ir tl_1_gb` (after first changing directory to the root directory of your code repository), you can see where that is defined. It turns out to be defined as `forcing%tl_1_ij`, so you can do a `grep -ir tl_1_ij` \* | grep -v ‘ftl\_1\_ij’. The extra `grep` is to not print out lines that have ‘ftl\_1\_ij’.

You will see a line of the grep output that says:  
`src/io/model_interface/populate_var.inc: CALL cube_get_data(cube,forcing%tl_1_ij)`

So the forcing data for near-surface air-temperature `tl_1_ij` is read in from the forcing data files, as defined in your suite.

The `tl_1_gb` is the near-surface air temperature for compressed-to-landpoints (depending on the landpoint index l, whereas the `tl_1_ij` is the near-surface air temperature for i,j coordinates before compression to landpoints. Both are in Kelvin.

I also see `crop_vars%tl_1_day_av_gb` in that same file that you have.  
So you can do `grep -r tl_1_day_av_gb *`.  
One of the grep lines shows:  
`src/science/vegetation/crop_date_mod.F90: tl_1_day_av_gb(l) = tl_1_day_av_gb(l) + tl_1(i,j) / REAL(tspd)`.

Maybe you can use similar code for what you want? You might need to get the crop model fully working with your suite to do that?  
Patrick

---

<div class="post-metadata">

**Author:** ![gwy](https://avatars.discourse-cdn.com/v4/letter/g/8e8cbc/32.png) [@gwy](https://cms-helpdesk.ncas.ac.uk/u/gwy)\
**Post date:** [21 June 2023 15:43 UTC](https://cms-helpdesk.ncas.ac.uk/t/set-time-bounds-for-acclimation/1029/3 "2023-06-21T15:43:51Z")

</div>

Dear Patrick,

Thanks for your reply. Just to make sure I understand what you mean. Are you saying that I have to change the definition of my forcing data files otherwise I would not be able to limit it down to a smaller time frame? And thank you for pointing for the tl\_1\_day\_av\_gb. I will take a look at that as well.

Best,  
Wenyao

---

<div class="post-metadata">

**Author:** ![pmcguire](https://avatars.discourse-cdn.com/v4/letter/p/b782af/32.png) [@pmcguire](https://cms-helpdesk.ncas.ac.uk/u/pmcguire)\
**Post date:** [21 June 2023 16:49 UTC](https://cms-helpdesk.ncas.ac.uk/t/set-time-bounds-for-acclimation/1029/4 "2023-06-21T16:49:52Z")

</div>

Hi Wenyao  
Yes, I suspect that you might be using 6-hourly forcing data. If you want averages over 1.5-hour time periods over 15 days, you probably need forcing data with time increments of less than or equal to 1.5 hours.  
Pa

---

<div class="post-metadata">

**Author:** ![gwy](https://avatars.discourse-cdn.com/v4/letter/g/8e8cbc/32.png) [@gwy](https://cms-helpdesk.ncas.ac.uk/u/gwy)\
**Post date:** [21 June 2023 17:35 UTC](https://cms-helpdesk.ncas.ac.uk/t/set-time-bounds-for-acclimation/1029/5 "2023-06-21T17:35:50Z")

</div>

Dear Patrick,

Thanks for your help. In that case would it work if I simply interpolate the data into a higher frequency and only keep the data from 11.30-13.00? Will this affect the rest of the model.

Best,  
Wenyao

---

<div class="post-metadata">

**Author:** ![pmcguire](https://avatars.discourse-cdn.com/v4/letter/p/b782af/32.png) [@pmcguire](https://cms-helpdesk.ncas.ac.uk/u/pmcguire)\
**Post date:** [22 June 2023 09:49 UTC](https://cms-helpdesk.ncas.ac.uk/t/set-time-bounds-for-acclimation/1029/6 "2023-06-22T09:49:38Z")

</div>

Hi Wenyao  
Interpolating to higher frequency might be a good first step, but in reality, I think you need native high-frequency data to do what you want to do. Otherwise, you will likely miss the phenomena around noon that you want to observe.  
Patrick

---

<div class="post-metadata">

**Author:** ![gwy](https://avatars.discourse-cdn.com/v4/letter/g/8e8cbc/32.png) [@gwy](https://cms-helpdesk.ncas.ac.uk/u/gwy)\
**Post date:** [22 June 2023 11:40 UTC](https://cms-helpdesk.ncas.ac.uk/t/set-time-bounds-for-acclimation/1029/7 "2023-06-22T11:40:41Z")

</div>

Dear Patrick,

I took another look at JULES’s description file, apparently it does interpolation automatically through setups.

 ![Screenshot 2023-06-22 at 12.25.14](https://europe1.discourse-cdn.com/flex013/uploads/cms_support/original/1X/7c4620df915c379b422e7c5354e823464b529b35.png)  
[http://jules-lsm.github.io/latest/input/temporal-interpolation.html](http://jules-lsm.github.io/latest/input/temporal-interpolation.html)

Does this mean tl\_1\_gb is already in 30min timestep (for example）？ I am still not sure how to select 11.30-13.00 when I have the half hourly data…

---

<div class="post-metadata">

**Author:** ![pmcguire](https://avatars.discourse-cdn.com/v4/letter/p/b782af/32.png) [@pmcguire](https://cms-helpdesk.ncas.ac.uk/u/pmcguire)\
**Post date:** [22 June 2023 16:28 UTC](https://cms-helpdesk.ncas.ac.uk/t/set-time-bounds-for-acclimation/1029/8 "2023-06-22T16:28:59Z")

</div>

Hi Wenyao  
Yes, I think you might be right that the tl\_1\_gb is already interpolated and JULES is referencing the interpolated values in the code.

You can look at how tl\_1\_day\_av\_gb is computed to see how the arrays are referenced for the different hours of the day.

But I think (in the end) you will want to use higher frequency driving data instead of interpolating the driving data.  
Patrick

---

<div class="post-metadata">

**Author:** ![gwy](https://avatars.discourse-cdn.com/v4/letter/g/8e8cbc/32.png) [@gwy](https://cms-helpdesk.ncas.ac.uk/u/gwy)\
**Post date:** [29 June 2023 15:39 UTC](https://cms-helpdesk.ncas.ac.uk/t/set-time-bounds-for-acclimation/1029/9 "2023-06-29T15:39:32Z")

</div>

Dear Patrick,

Thanks for your help. It helps a lot.

Best,  
Wenyao

---

<div class="post-metadata">

**Author:** ![pmcguire](https://avatars.discourse-cdn.com/v4/letter/p/b782af/32.png) [@pmcguire](https://cms-helpdesk.ncas.ac.uk/u/pmcguire)\
**Post date:** [29 June 2023 18:12 UTC](https://cms-helpdesk.ncas.ac.uk/t/set-time-bounds-for-acclimation/1029/10 "2023-06-29T18:12:46Z")

</div>

Hi Wenyao  
You’re more than welcome! I’m glad it helps.  
PCM

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/cms_support/original/1X/1fd2411499ffcbc299fe756cd5cdf26e44956558.png) [@system](https://cms-helpdesk.ncas.ac.uk/u/system)\
**Post date:** [29 July 2023 18:13 UTC](https://cms-helpdesk.ncas.ac.uk/t/set-time-bounds-for-acclimation/1029/11 "2023-07-29T18:13:13Z")

</div>

Closed on 29 July 2023 18:13 UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
