# Urban Cooling Model\_rural application

**URL:** https://community.naturalcapitalalliance.org/t/urban-cooling-model-rural-application/2834
**Category:** Science, Research & Data
**Tags:** urban-cooling
**Created:** [June 3, 2022, 5:12am UTC](https://community.naturalcapitalalliance.org/t/urban-cooling-model-rural-application/2834 "2022-06-03T05:12:03Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Minton71](https://avatars.discourse-cdn.com/v4/letter/m/838e76/32.png) [@Minton71](https://community.naturalcapitalalliance.org/u/Minton71)
#### Post date: [June 3, 2022, 5:12am UTC](https://community.naturalcapitalalliance.org/t/urban-cooling-model-rural-application/2834/1 "2022-06-03T05:12:03Z")

</div>

Hi, I’m wondering if there’s any issue with using the Urban Cooling Model in a rural setting.  
We’d like to quantify the welfare benefits to livestock of tree planting.  
As well as shade, there will be a cooling effect from increased evapotranspiration and induced cooling breeze (the so-called ‘vegetation breeze’ phenomenon from cool, humid air under clusters of trees.  
I don’t see any limitations listed relating to using this tool outside of urban areas.  
Cheers  
Richard

---

<div class="post-metadata">

### Author: ![jesseG](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/jesseg/32/1068_2.png) [@jesseG](https://community.naturalcapitalalliance.org/u/jesseG)
#### Post date: [June 3, 2022, 3:49pm UTC](https://community.naturalcapitalalliance.org/t/urban-cooling-model-rural-application/2834/2 "2022-06-03T15:49:35Z")

</div>

Hi @Minton71 ,

Thank you for writing in with your question!

As far as I can tell, InVEST’s Urban Cooling model is suitable for the clever application you’ve described in a rural setting. Please just be aware of the resolution of your input data to ensure the scale is fine enough to capture individual clusters of trees as opposed to only entire forest patches. However, I don’t believe the model explicitly deals with the ‘vegetative breeze’ phenomenon caused by differential heating and humidity in _naturally_ shaded versus unshaded areas, so you may need to parameterize carefully to try to incorporate that effect. The model will also consider the cooling or heating impacts caused by changes in albedo associated with changes in land cover (trees versus pasture).

Perhaps @chris could provide more clarity.

We’d be curious to hear back from you later about how successful (or not) your modeling goes for this using InVEST!

-Jesse

---

<div class="post-metadata">

### Author: ![Minton71](https://avatars.discourse-cdn.com/v4/letter/m/838e76/32.png) [@Minton71](https://community.naturalcapitalalliance.org/u/Minton71)
#### Post date: [July 14, 2022, 7:55am UTC](https://community.naturalcapitalalliance.org/t/urban-cooling-model-rural-application/2834/3 "2022-07-14T07:55:04Z")

</div>

Hi Jesse and @chris  
I have a question about UHImax in this exercise (looking at using the UC model in a rural context).  
I’m trying to understand how HMi is calculated - refer equation 107. I’m not sure if its me or if its a problem with formatting but I can’t decipher the logic of whats being said between the {parentheses}. HMi is critical to understanding the influence on UHImax on Tair no mix (Tair no mix = Tair,rural + (1-HMi) x UHImax) (equation 108). If you can help me with the logic of Eq. 107 it should help me parameterise UHImax for application in a rural context (i.e. how to differntiate it from Tair,rural (aka Tair,ref.)  
I hope I’ve explained my query sufficiently.  
Cheers  
Richard

---

<div class="post-metadata">

### Author: ![jesseG](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/jesseg/32/1068_2.png) [@jesseG](https://community.naturalcapitalalliance.org/u/jesseG)
#### Post date: [July 14, 2022, 5:45pm UTC](https://community.naturalcapitalalliance.org/t/urban-cooling-model-rural-application/2834/4 "2022-07-14T17:45:24Z")

</div>

Hi @Minton71,

_HMi_ equals _CC_ for pixels that are unaffected by any green spaces \>2 ha. For pixels that ARE affected by any green spaces \>2 ha, _HMi_ equals the distance-weighted average of the _CC_ values from those large green spaces and the pixels of interest.

[This post](https://community.naturalcapitalalliance.org/t/weighting-in-the-cooling-capacity-index-equation/1756/5) may help explain more.

-Jesse

---

<div class="post-metadata">

### Author: ![Minton71](https://avatars.discourse-cdn.com/v4/letter/m/838e76/32.png) [@Minton71](https://community.naturalcapitalalliance.org/u/Minton71)
#### Post date: [July 15, 2022, 5:49am UTC](https://community.naturalcapitalalliance.org/t/urban-cooling-model-rural-application/2834/5 "2022-07-15T05:49:00Z")

</div>

Hi Jesse

Thanks, this answers my query about the logic of HMi.

I’m now running the model and hitting a very slow process at the very end of the run:

 ![](https://canada1.discourse-cdn.com/flex031/uploads/naturalcapitalproject/original/2X/0/0f248d7fbd12241eda69f7793bf8ce94a918b5ab.png)

Can you advise what component might be slowing the model down?

Cheers

Richard

---

<div class="post-metadata">

### Author: ![jesseG](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/jesseg/32/1068_2.png) [@jesseG](https://community.naturalcapitalalliance.org/u/jesseG)
#### Post date: [July 15, 2022, 4:58pm UTC](https://community.naturalcapitalalliance.org/t/urban-cooling-model-rural-application/2834/6 "2022-07-15T16:58:39Z")

</div>

Hi @Minton71 ,

Can you please upload your log file (.txt) here once the run completes? How long is it taking to complete in total, minutes, hours, days?

Thanks,  
Jesse

---

<div class="post-metadata">

### Author: ![Minton71](https://avatars.discourse-cdn.com/v4/letter/m/838e76/32.png) [@Minton71](https://community.naturalcapitalalliance.org/u/Minton71)
#### Post date: [July 15, 2022, 5:51pm UTC](https://community.naturalcapitalalliance.org/t/urban-cooling-model-rural-application/2834/7 "2022-07-15T17:51:23Z")

</div>

Hi Jesse

The model took about an hour and a half to run. This is longer than previous attempts, but may be normal?

Hopefully we can find a way to run faster trails that will allow me to play around with parameters to see how we can adapt this model for patoral use.

Please see the log file attached.

Cheers

Richard

[InVEST-Urban-Cooling-log-2022-07-15–17\_35\_58.txt](https://community.naturalcapitalalliance.org/uploads/short-url/c6MPBqYPzDrjg4S0mD1c4Wro143.txt) (198 KB)

---

<div class="post-metadata">

### Author: ![jesseG](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/jesseg/32/1068_2.png) [@jesseG](https://community.naturalcapitalalliance.org/u/jesseG)
#### Post date: [July 15, 2022, 8:08pm UTC](https://community.naturalcapitalalliance.org/t/urban-cooling-model-rural-application/2834/8 "2022-07-15T20:08:48Z")

</div>

@Minton71 ,

Slow run times are typically caused by:

1. compute speeds,
2. large spatial extent of the LULC raster input, or
3. high spatial resolution of the LULC raster input.

Since all InVEST Urban Cooling raster results are resampled to match the LULC input, consider resampling your LULC to be coarser or clipping it to a smaller extent. What is the file size of your LULC input?

What did you change from your previous runs which completed more quickly?

-Jesse

---

<div class="post-metadata">

### Author: ![dcdenu4](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/dcdenu4/32/544_2.png) [@dcdenu4](https://community.naturalcapitalalliance.org/u/dcdenu4)
#### Post date: [July 18, 2022, 2:47pm UTC](https://community.naturalcapitalalliance.org/t/urban-cooling-model-rural-application/2834/9 "2022-07-18T14:47:03Z")

</div>

Hi @Minton71 ,

Just to add on to what @jesseG said in terms of runtime, this model does some convolutions which is an expensive operation depending on resolution and the distance being convolved.

As Jesse noted I’d be curious what the size and resolution of your input rasters are.

Cheers,

Doug

---

<div class="post-metadata">

### Author: ![Minton71](https://avatars.discourse-cdn.com/v4/letter/m/838e76/32.png) [@Minton71](https://community.naturalcapitalalliance.org/u/Minton71)
#### Post date: [July 18, 2022, 4:57pm UTC](https://community.naturalcapitalalliance.org/t/urban-cooling-model-rural-application/2834/10 "2022-07-18T16:57:05Z")

</div>

Hi Doug and @jesseG

- LULC raster = 1.31 MB - I had to do a shape to raster conversion to get this file, so its bigger than it needs to be. Not quite sure how to get under the hood to reduce this but I can figure it out if you think its critical. Its clipped right down to the research area / site boundary.
- ET raster = 0.000016 MB (16B)

What did I change from my previous runs which completed more quickly? Addition of the ET raster! In error I had previously run the model using a solar radiation tiff (319kb) in place of the ET tiff. These were taking much longer i.e. I quit after 1.5 hours @ 2% completion

Cheers  
Richard

---

<div class="post-metadata">

### Author: ![swolny](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/swolny/32/181_2.png) [@swolny](https://community.naturalcapitalalliance.org/u/swolny)
#### Post date: [July 18, 2022, 5:19pm UTC](https://community.naturalcapitalalliance.org/t/urban-cooling-model-rural-application/2834/11 "2022-07-18T17:19:59Z")

</div>

Hi @Minton71 -

Those files are tiny! Do they happen to be in a geographic coordinate system (with distances in degrees), instead of a projected coordinate system (with distances in meters, which is required)? Having a mismatch between the usually very small degree values, and the model inputs that are expressed in meters can cause strange things to happen. I think the model should catch this and throw an error early on (since other models catch this), but I haven’t used Urban Cooling lately. Just a thought.

~ Stacie

---

<div class="post-metadata">

### Author: ![Minton71](https://avatars.discourse-cdn.com/v4/letter/m/838e76/32.png) [@Minton71](https://community.naturalcapitalalliance.org/u/Minton71)
#### Post date: [July 18, 2022, 6:14pm UTC](https://community.naturalcapitalalliance.org/t/urban-cooling-model-rural-application/2834/12 "2022-07-18T18:14:43Z")

</div>

Hi Stacie

Both are in a projected coordinate system.

Cheers

Richard

---

<div class="post-metadata">

### Author: ![dcdenu4](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/dcdenu4/32/544_2.png) [@dcdenu4](https://community.naturalcapitalalliance.org/u/dcdenu4)
#### Post date: [July 19, 2022, 2:25pm UTC](https://community.naturalcapitalalliance.org/t/urban-cooling-model-rural-application/2834/13 "2022-07-19T14:25:03Z")

</div>

Hi @Minton71,

If you’d like to share your data I’d be happy to give this a run on my end to see if anything jumps out for why it would be taking so long to run. If the files are that small you can probably post everything here, or you can share via a cloud service.

Doug

---

<div class="post-metadata">

### Author: ![Minton71](https://avatars.discourse-cdn.com/v4/letter/m/838e76/32.png) [@Minton71](https://community.naturalcapitalalliance.org/u/Minton71)
#### Post date: [July 19, 2022, 3:46pm UTC](https://community.naturalcapitalalliance.org/t/urban-cooling-model-rural-application/2834/14 "2022-07-19T15:46:21Z")

</div>

Hi Doug – whats the best method for sharing? I use ArcGIS Pro – what file would I send to you?

---

<div class="post-metadata">

### Author: ![dcdenu4](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/dcdenu4/32/544_2.png) [@dcdenu4](https://community.naturalcapitalalliance.org/u/dcdenu4)
#### Post date: [July 21, 2022, 1:00pm UTC](https://community.naturalcapitalalliance.org/t/urban-cooling-model-rural-application/2834/15 "2022-07-21T13:00:39Z")

</div>

Hi @Minton71 , I’ve found sharing data via Google Drive to be pretty easy. To reproduce your run on our end and investigate we would need all your input data for the model. If you could zip all the inputs into a folder and share that zip via Google Drive, that would be great.

Thanks,

Doug

---

<div class="post-metadata">

### Author: ![Minton71](https://avatars.discourse-cdn.com/v4/letter/m/838e76/32.png) [@Minton71](https://community.naturalcapitalalliance.org/u/Minton71)
#### Post date: [July 25, 2022, 4:09am UTC](https://community.naturalcapitalalliance.org/t/urban-cooling-model-rural-application/2834/16 "2022-07-25T04:09:22Z")

</div>

Hi Doug

Would you mind accessing it via Dropbox:

[https://www.dropbox.com/sh/iki3x67eh9k9zaw/AADcwJYv0Cyni0RaEuUVSFRQa?dl=0](https://www.dropbox.com/sh/iki3x67eh9k9zaw/AADcwJYv0Cyni0RaEuUVSFRQa?dl=0)

Kind regards

Richard

---

<div class="post-metadata">

### Author: ![Minton71](https://avatars.discourse-cdn.com/v4/letter/m/838e76/32.png) [@Minton71](https://community.naturalcapitalalliance.org/u/Minton71)
#### Post date: [July 30, 2022, 4:24pm UTC](https://community.naturalcapitalalliance.org/t/urban-cooling-model-rural-application/2834/17 "2022-07-30T16:24:40Z")

</div>

Hi Doug – just wondering if you found time to take a look at this?

Cheers

Richard

---

<div class="post-metadata">

### Author: ![Minton71](https://avatars.discourse-cdn.com/v4/letter/m/838e76/32.png) [@Minton71](https://community.naturalcapitalalliance.org/u/Minton71)
#### Post date: [August 3, 2022, 5:44pm UTC](https://community.naturalcapitalalliance.org/t/urban-cooling-model-rural-application/2834/18 "2022-08-03T17:44:26Z")

</div>

Hi, further to above discussion, I’ve used new data and the model is working much faster. I have got another issue however and that is there is a disconnect between my LULC raster and biophysical table. Please see attached log file. I have updated the raster to remove the referred to [0] value, but am getting the same error. I notice when I export the raster as a TIF for input into InVEST, the attribute field name defaults to VALUE (instead of lucode). But it seems the model is seeing past this, as it appears to pick up the values (LULC codes) that are in the raster.

---

<div class="post-metadata">

### Author: ![Minton71](https://avatars.discourse-cdn.com/v4/letter/m/838e76/32.png) [@Minton71](https://community.naturalcapitalalliance.org/u/Minton71)
#### Post date: [August 3, 2022, 5:47pm UTC](https://community.naturalcapitalalliance.org/t/urban-cooling-model-rural-application/2834/19 "2022-08-03T17:47:59Z")

</div>

link to relevant data including log file:

> **[220804\_NPC\_data](https://www.dropbox.com/sh/nqymxri69r45gw2/AABnlwNsEixHm2X6fUdF1ypya?dl=0)**
>
> Shared with Dropbox

---

<div class="post-metadata">

### Author: ![swolny](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/swolny/32/181_2.png) [@swolny](https://community.naturalcapitalalliance.org/u/swolny)
#### Post date: [August 3, 2022, 8:32pm UTC](https://community.naturalcapitalalliance.org/t/urban-cooling-model-rural-application/2834/20 "2022-08-03T20:32:54Z")

</div>

Thanks for the data @Minton71 -

Looking at the data you uploaded, and there is indeed a value of 0 in the raster UC\_merge6\_2\_1.tif, which is not in the biophysical table. Over 300,000 cells are assigned this value, so you’ll need to figure out whether they’re their own class (such that 0 needs to be assigned a value in the biophysical table) or whether the 0 values need to be reclassified into one of your other LULC classes.

You’re correct that the default raster field is called VALUE, and that works just fine for InVEST.

~ Stacie

[Next page](https://community.naturalcapitalalliance.org/t/urban-cooling-model-rural-application/2834.md?page=2)
