Skip to content
Snippets Groups Projects
Commit 7e25255e authored by Anne Philipp's avatar Anne Philipp
Browse files

python2 downgrade/ extra check for pure forecast vs one day forecast

parent 0e084837
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python3
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#*******************************************************************************
# @Author: Anne Fouilloux (University of Oslo)
......@@ -56,6 +56,8 @@ Read the documentation for usage instructions.
# ------------------------------------------------------------------------------
# MODULES
# ------------------------------------------------------------------------------
from __future__ import print_function
import os
import sys
import inspect
......@@ -272,6 +274,10 @@ def mk_dates(c, fluxes):
if c.basetime == 0:
start = start - timedelta(days=1)
if c.purefc and fluxes and c.maxstep < 24:
start = start - timedelta(days=1)
end = end + timedelta(days=1)
if not c.purefc and fluxes and not c.basetime == 0:
start = start - timedelta(days=1)
end = end + timedelta(days=1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment