I have two queries, and would be very grateful for your help on either of them.
1) Is there a way to access the 'Max. Adaptive Temperature' from using the VE Python API?
- When this data within VE Vista, it is contained in the weather file section. Is there a way to access the 'Max. Adaptive Temperature' in the same way that you would access another selection of data from the weather file (for example, Dry Bulb Temperature)?
For example to access Dry Bulb Temperature I would run the following code:
import iesve
from ies_file_picker import IesFilePicker
aps_file_name = IesFilePicker.pick_aps_file()
results_reader_file = iesve.ResultsReader.open(aps_file_name)
weather_file_name = results_reader_file.weather_file
wea_file = iesve.WeatherFileReader()
result = wea_file.open_weather_file(weather_file_name)
np_dry_bulb_temps = wea_file.get_results(3,1,365)
dry_bulb_temps = np_dry_bulb_temps.tolist()
Is there an equivalent to get Maximum Adaptive Temperature?
2) How does IES calculate the Max. Adaptive Temperature for the first day of the weather file?
It is clear from
https://help.iesve.com/ve2019/comfort_i ... 3D&mw=MjQw# and CIBSE TM52 how the Max Adaptive Temperature has been calculated for all other days using the data from the previous days for both daily running mean and daily mean***. It is not clear, however, how the value for the daily running mean for the first day is calculated. Please could you provide some information to clarify this?
*** As these documents state, Tmax for each day (other than the first day) is calculated from these equations (where a=0.8, Tdm-1 = mean temperature for previous day, Trm-1 = running mean temperature for previous day, Trm = running mean temperature for current day and Tmax = maximum adaptive temperature for current day):
Trm = (1-a)*Tdm-1 + a*Trm-1
and
Tmax = Trm*0.33+21.8
Many thanks in advance for your help!
Accessing Max. Adaptive Temp
Re: Accessing Max. Adaptive Temp
I'd also like to know this!
Re: Accessing Max. Adaptive Temp
I can help with your first query. If you change wea_file.get_results(3,1,365) to wea_file.get_results(16,1,365) it should give you max adaptive temperature.
FYI 15 is running-mean temperature.
Hope that helps.
FYI 15 is running-mean temperature.
Hope that helps.
Re: Accessing Max. Adaptive Temp
Thank you for your help.
I have tried to use both 15 and 16 in order to get running-mean temperature and max adaptive temperature.
Those variables are just returning the dry-bulb temperature - could you let me know why?
Code is as follows:
(Using IES VE Version 2019.0.0.0)
Thank you.
I have tried to use both 15 and 16 in order to get running-mean temperature and max adaptive temperature.
Those variables are just returning the dry-bulb temperature - could you let me know why?
Code is as follows:
Code: Select all
aps_file_name = IesFilePicker.pick_aps_file()
results_reader_file = iesve.ResultsReader.open(aps_file_name)
weather_file_name = results_reader_file.weather_file
wea_file = iesve.WeatherFileReader()
result = wea_file.open_weather_file(weather_file_name)
np_ies_max_adaptive_temp = wea_file.get_results(16,1,365)
ies_max_adaptive_temps = np_ies_max_adaptive_temp.tolist()
Thank you.
Re: Accessing Max. Adaptive Temp
If you use the WeatherFileReader you will get the raw unprocessed values from the weather file (which in the case of these two values will be equal to the dry-bulb temperature). If you want the derived value (what you see in Vista), I recommend using 'get_weather_results()' in the ResultsReader API.
Re: Accessing Max. Adaptive Temp
Hi Rhind,
Can I access the max. adaptive temperature from the function get_weather_results()? I am currently unable to identify the 'aps_var' and the 'vista_var' for max. adaptive temperature. I have used the get_variables() function to identify the 'aps_var' and 'vista_var' for all of the variables in ResultsReader. Max. adaptive temperature does not appear in these variables. Are you able to tell me the 'aps_var' and 'vista_var' arguments to access max. adaptive temperature through get_weather_results?
The notation I am trying to use is as follows:
get_weather_results ( aps_var, vista_var, start_day = -1, end_day = -1 )
Thank You,
Zenga
Can I access the max. adaptive temperature from the function get_weather_results()? I am currently unable to identify the 'aps_var' and the 'vista_var' for max. adaptive temperature. I have used the get_variables() function to identify the 'aps_var' and 'vista_var' for all of the variables in ResultsReader. Max. adaptive temperature does not appear in these variables. Are you able to tell me the 'aps_var' and 'vista_var' arguments to access max. adaptive temperature through get_weather_results?
The notation I am trying to use is as follows:
get_weather_results ( aps_var, vista_var, start_day = -1, end_day = -1 )
Thank You,
Zenga
Re: Accessing Max. Adaptive Temp
Should be 'Temperature' for the aps_var and 'Max. adaptive temp.' for the vista_var.

