var is TG as for day but the series is different e.g. REH4 instead of REH1 (needs to be adapted in the function definition)