Changeset 7e25255 in flex_extract.git for source/python/mods/get_mars_data.py


Ignore:
Timestamp:
Jul 29, 2019, 9:55:09 AM (5 years ago)
Author:
Anne Philipp <anne.philipp@…>
Branches:
master, ctbto, dev
Children:
7c7e672
Parents:
0e08483
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/python/mods/get_mars_data.py

    rd727af2 r7e25255  
    1 #!/usr/bin/env python3
     1#!/usr/bin/env python
    22# -*- coding: utf-8 -*-
    33#*******************************************************************************
     
    5757# MODULES
    5858# ------------------------------------------------------------------------------
     59from __future__ import print_function
     60
    5961import os
    6062import sys
     
    273275        start = start - timedelta(days=1)
    274276
     277    if c.purefc and fluxes and c.maxstep < 24:
     278        start = start - timedelta(days=1)
     279        end = end + timedelta(days=1)
     280
    275281    if not c.purefc and fluxes and not c.basetime == 0:
    276282        start = start - timedelta(days=1)
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG