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

Tmrt calculation script #8

Closed
ghilbrae opened this issue Jun 12, 2019 · 27 comments
Closed

Tmrt calculation script #8

ghilbrae opened this issue Jun 12, 2019 · 27 comments
Labels
enhancement New feature or request question Further information is requested SHOWSTOPPER Feature or bug, that, if not addressed, renders the CSIS essentially useless

Comments

@ghilbrae
Copy link

ghilbrae commented Jun 12, 2019

Related issues: clarity-h2020/emikat#24, clarity-h2020/emikat#28, clarity-h2020/data-package#59

We've just uploaded a script to make a preliminary calculation of Tmrt, it is in its own branch tmrt-calculation for now.

Here's the link to the folder: https://github.com/clarity-h2020/local-effects/tree/tmrt-calculation/LE_scripts

The script is written in python3 but it should be clear enough for you to understand what we are doing. We are mostly following what's in the spreadsheet @alecapolupo sent, though we had to improvise some things. For example, there are no indications of which are the radiation fluxes we should use, in this case we've just created our 6 following what's there and making an educated guess about which of them would be involved in each of the six. Note that we've decided to interpret this six as: above, below, South, North, East, West.

@alecapolupo you should check the script and confirm that our calculations are correct, we tried to follow the same naming conventions you used on the spreadsheet.

@humerh we've used a JSON file to store some parameters, but also hardcoded or randomly generated some data in the script. These data should come from some DB or the CSIS or any other place you or EMIKAT has the information, but for the purpose of trying to go forward and start getting results it seems like a good option for a first version.

@ghost
Copy link

ghost commented Jun 12, 2019

Hi @ghilbrae,

I will check the script as soon as possible. I sent the papers related to the model to Luis some months ago, so if you have any doubts in understanding it, you can check them. Is this script the same that Luis applied to compute the local effect?

@luis-meteogrid
Copy link

Hi @alecapolupo
This is not the same script we used to compute the local effects some months ago. This new one take into consideration the last modifications you sent us in order to take into account all possible directions for the incident energy flow (alongside with some assumptions we had made to fit the idea better) and most important this new one does not use the original geometries of the vector files for the computation but the percentages of 'occupancy' percentages of each layer for the European grid cells.
This is why we would like to check with you the algorithm. Should you have any problem following the description of it, we can arrange a brief skype meeting (maybe this week) in order to clarify and agree about the assumptions we have made.

@ghilbrae
Copy link
Author

We have just updated the script and some parameters to see if we can get better results. They can be accessed in the same branch as before: https://github.com/clarity-h2020/local-effects/tree/tmrt-calculation/LE_scripts

If you want to see the changes, check the commit: 44861d7

@alecapolupo we really need you to check the script and let us know if the approach and the changes we've made make sense. As we've pointed out, the information on the excel is not complete in some regards and we've also made some assumptions we need you to approve as you understand best the meaning of it all and can point out the best options in terms of formulas and parameter values. @luis-meteogrid is going to explain these assumptions here to complement the script.

@luis-meteogrid
Copy link

Hi @alecapolupo, hi @humerh, hi @negroscuro
As @ghilbrae remarks on the last comment, we have made some assumptions over the algorithm described in your excel file.
Some of them arise when using the formula as there were just two different K and L directions in the description section, while 6 in the formula to obtain the final flux. We have interpreted the terms in order to figure out which direction was related with and settled down the different fluxes accordingly.
Then we have check every parameter influenced the equation in the expected way, making minor changes to suit the vegetation_shadow in order to lesser the Tmrt calculation when it is higher.
Other assumptions arise when trying to use the algorithm you gave us with the information that can be stored in a cell instead of using the original geometries. We have some issues to figure out how to manage intersections when we just have percentages of occupation for the layers for every cell, and even if we tell ATOS to store a lot more parameters in order to compute a suited flux, it is difficult to imagine how these intersections may change when applying an adaptation option. This problem is related with the computation of hillshade_building and with Building_shadow.
Some other questions are: Do raillways be affected by Urban Fabric and thus have a hillshade_build value as roads? For now we are working with green factor equal to 0.37. But do we have to prepare the algorithm to be able to treat 17 different types of trees in each cell? the percentage of occupation of each one of them would be needed and consequently the calculation would be slowed down to be able to use it 'on-line'.
Before making a decision, we would like to discuss it with you and with Heinrich to verify that the solution adopted is the most appropriate considering the environment of the tool we are working with.

@luis-meteogrid
Copy link

Hi @alecapolupo
In regards to floods we also have some doubts to generate the script that can be used by @humerh. There are no issues with the Run-off C parameter, but we don't know which the definitions for the FUA_tunnel computations come from. As far as we know there are no layers of very low urban fabric or isolated, are these somehow to be calculated?
Moreover we are concerned with the values of Basin Area Ab, length of flow L and Altitude z. ¿How are you planing to inform this values at a cell resolution? (take into account that several different basins may be present in a cell)

@p-a-s-c-a-l p-a-s-c-a-l added the enhancement New feature or request label Jun 24, 2019
@p-a-s-c-a-l p-a-s-c-a-l added this to the D1.4 CLARITY CSIS v2 milestone Jun 24, 2019
@humerh
Copy link

humerh commented Jun 24, 2019

Clarity

I adapted the parameters. This is the new result.
For Ta=38°C the resulting Tmrt is in the range of 60° - 90°C.
Isn't this a little too high ???

@ghost
Copy link

ghost commented Jun 24, 2019

Hi @luis-meteogrid,

regarding the flood, we are creating a word document in order to explain all the procedure, partially described in D3.2, in details.
No layers related to "very low urban fabric" or "isolated" should be created since to simplify the procedure we have aggregated the urban fabric in three categories "low", "medium" and "dense". Those layers have been generated by @negroscuro.

@p-a-s-c-a-l p-a-s-c-a-l added question Further information is requested SHOWSTOPPER Feature or bug, that, if not addressed, renders the CSIS essentially useless labels Jul 1, 2019
@p-a-s-c-a-l
Copy link
Member

Isn't this a little too high ???

Seems so. @RobAndGo What do you think?

@RobAndGo
Copy link

RobAndGo commented Jul 1, 2019

That is a good question regarding whether the values of Tmrt are realistic or not. I do not have any personal experience as to what "typical" values of Tmrt are. Here is one result from the literature:

In a case study (P196fullpaperMohamedMahgoub.pdf) from Cairo (latitude ~28°N), measurements from 9 different locations (represented by the different curves) within the city yielded the following Tmrt values during the day (29 June, 1 July):
image

The corresponding air temperature for each location is shown here:
image

The characteristics of the locations are described in the table:

image

and what the locations actually looked like are shown here:

image

The meteorological conditions were "clear, hot and calm summer day" with maximum temperature of 34.8 °C (29 June) and 36.6 °C (1 July). Note that they give wind speeds of "mean wind speed of 16.1
ms and 21.3 ms" which contradicts their description of "calm summer day" (21.3ms = 77km/h!), so I guess there is an error there.

Based on photos (e.g. 6, 9) which look similar to urban layouts in the old part of Naples, these curves would represent maximum values that can be observed in Naples, given that the latitude of Naples is 40°N (Cairo is at 28°N). That is, the highest values of Tmrt may not exceed 70°C.

@RobAndGo
Copy link

RobAndGo commented Jul 1, 2019

Another study (484_2017_Article_1332.pdf) concerns by how much Tmrt will change in the future for 3 European cities (Gothenburg, Frankfurt, Porto). They do indeed show that for the baseline climate, Tmrt does exceed 60°C, and will exceed 60°C in the future.

Specifically, with the following plot they show the number of hours per year where Tmrt > 60°C.

image

Specific values are shown in the following table:

image

@RobAndGo
Copy link

RobAndGo commented Jul 1, 2019

So in summary, I would suggest that the Tmrt values from Cairo at an air temperature of ~36°C would represent a maximum value for southern European cities, i.e. we should expect Tmrt values for Naples to be Tmrt < 70°C. Given that Porto does get values above 60°C for only 20 hours in a year at present would suggest a reasonable upper limit for Naples to also be around 60°C.

The Tmrt values that @humerh presented were for an air temperature of 28°C - perhaps maximum values of Tmrt around 50°C at this temperature would be more reasonable.

@luis-meteogrid
Copy link

Hi @RobAndGo
I have been using the two papers @alecapolupo sent us, among others:

  • A Framework for Outdoor Mean Radiant Temperature Simulation: Towards Spatially Resolved Thermal Comfort Mapping in Urban Spaces (Tarek Rakha1, Pouya Zhand and Christoph Reinhart)
  • SOLWEIG 1.0 – Modelling spatial variations of 3D radiant fluxes and mean radiant temperature in complex urban settings (Fredrik Lindberg & Björn Holmer & Sofia Thorsson)

The first one show higher temperatures that the ones on El Cairo for Syracuse (NY, USA)
image

MRT simulation of Downtown Syracuse NY USA in representative summer days of June 20th with an intermediate sky cover and July 4th with a clear sky condition. As you can see temperatures can reach more than a 100C at noon.
On the second one, the analysis goes through Goteborg reaching just 58C
image
As Solweig 1.0 is an open source tool we were thinking it may be a good way to assess the reliability of our script, the only problem being who would be able to run the tool in a proper way.

@p-a-s-c-a-l
Copy link
Member

Tmrt results can be validated with those from DC3 Linz Modelling studies that are using Grasshopper, Rhino, Envimet. Please contact @toetzert for more details.

@ghilbrae
Copy link
Author

ghilbrae commented Jul 8, 2019

It was agreed during a dedicated meeting to do the validation of the results using MUKLIMO and SOLWEIG.

It will be carried out by ZAMG, PLINIUS and METEOGRID. One of the expected results is to finally agree on a formula to use. For now we are using a temporary formula but we do not expect it to change much in its final form and it should not be a problem as it already produces results.

@ghilbrae
Copy link
Author

ghilbrae commented Jul 8, 2019

We are closing the issue now and will update or create a new one for the new formula.

@ghilbrae ghilbrae closed this as completed Jul 8, 2019
@RobAndGo
Copy link

RobAndGo commented Dec 13, 2019

Hi @ghilbrae
Regarding your post above, I had a quick look at your python script. Just a comment, do you need to convert the angles theta, eta from degrees into radians before using them within the trigonomic functions sin, cos?

Further, in the line:
K_l1 = I * (Sb - (1 - Sv) * (1 - tau)) * math.cos(eta)
I think it should read:
K_l1 = I * (Sb - (1 - Sv) * (1 - tau)) * math.cos(eta) * math.sin(theta)

And in the line:
L_2 = (2 - phi_v - phi_b) * sigma * epsilon_wall * Ts**4
I think it should be:
L_2 = (2 - phi_v - phi_b) * sigma * epsilon_wall * Ta**4

And in the line:
L_3 = (-phi_v - phi_b) * sigma * epsilon_wall * Ts**4
I think it should be:
L_3 = ( phi_v - phi_b) * sigma * epsilon_wall * Ts**4

@RobAndGo
Copy link

RobAndGo commented Dec 14, 2019

OK, now I have found the reference from which the radiation model is based, namely this one:
Lindberg & Grimmond, 2011 "The influence of vegetation and building..."

@humerh
Copy link

humerh commented Dec 16, 2019

I am happy, that we now review the implemented script in a broad discussion.

Last week I sent this evaluation notice to Mattia and Stefanon.
You find also the implemented formula in this document and the way to get intermediate results directly from EmiKat.
20191212Evaluation of formulas for the Study area.docx

@stefanon
Copy link

Please find here:
https://github.com/clarity-h2020/local-effects/blob/tmrt-calculation/hw_localeffect_tmrt_v2.sql
the script with the updated formula for Tmrt calculation as discussed in today WP3 Technical Meeting.

@RobAndGo
Copy link

RobAndGo commented Dec 17, 2019

Thank you @stefanon. I inserted the equations from the code into the excel spreadsheet that @humerh produced some time ago, and I get realistic values - i.e. for Ta=38°C, Ts=60°C, Sv=1, I get T_mrt=55°C

Models - Local Effect 17_01_Calc_rg.xlsx

The big change for me is the correct separation of the short-wave radiation components in the cardinal directions.

@stefanon
Copy link

stefanon commented Dec 17, 2019

This is a good news, thank you for testing!
With the routine calculations applied to Naples, with local scale data, results now appear to be at least 'consistent' with expectations and temperature range (see image, Ta=36°C Ts=f(Ta)):

2

@stefanon
Copy link

A thing to taking into account doing Tmrt calculations, as discussed with @negroscuro here:

clarity-h2020/data-package#59 (comment)

is to check not using input parameters with 'null' values in the Tmrt formula.

@negroscuro
Copy link
Contributor

From my side parameters are there and no null values are delivered regarding parameters of land use layers.
Regarding altitudes there coudl be null values if altitude could not be calculated for any reason (like having no DEM data for a cell or having no Basin for a cell, etc...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested SHOWSTOPPER Feature or bug, that, if not addressed, renders the CSIS essentially useless
Projects
None yet
Development

No branches or pull requests

10 participants