Hi all,
In TELEMAC pretel tools for python3 (trunk version V8P1R0), I found out that you need to specify the datetime and time tags BEFORE specifying the header of the generated Selafin.
(function input : geo file and a weather data file,
function output : weather information applied on the geo file)
Hences lines 183 to 193 in generate.py :
print(' +> writing header')
# Write header
atm.append_header_slf()
# <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
# ~~~~ writes ATM core ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
print(' +> setting variables')
# TIME and DATE extraction
atm.datetime = slf.datetime
atm.tags['times'] = slf.tags['times']
become :
# <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
# ~~~~ writes ATM core ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
print(' +> setting times tags')
# TIME and DATE extraction
atm.datetime = slf.datetime
atm.tags['times'] = slf.tags['times']
print(' +> writing header')
# Write header
atm.append_header_slf()
print(' +> setting variables')
I'd be keen to know if a Git(Lab) version of TELEMAC (or at least the python scripts) would be available soon?
Cheers