fluxnetCDF.py
def check_date_format(dframe, time_col_name):
    """Checks format of timestamp and returns strftime format"""
    date_digit_length = len(str(dframe[time_col_name][0]))
    if date_digit_length == 4:
        date_format = '%Y'
    elif date_digit_length == 8:
        date_format = '%Y%m%d'
    elif date_digit_length == 12:
        date_format = '%Y%m%d%H%M'
    return date_format
Checks format of timestamp and returns strftime format
Checks format of timestamp and returns strftime format
Checks format of timestamp and returns strftime format
def check_date_format(dframe, time_col_name):
    date_digit_length = len(str(dframe[time_col_name][0]))
    if date_digit_length == 4:
        date_format = '%Y'
    elif date_digit_length == 8:
        date_format = '%Y%m%d'
    elif date_digit_length == 12:
        date_format = '%Y%m%d%H%M'
    return date_format
def check_date_format ( dframe , time_col_name ) : date_digit_length = len ( str ( dframe [ time_col_name ] [ 0 ] ) ) if date_digit_length == 4 : date_format = '%Y' elif date_digit_length == 8 : date_format = '%Y%m%d' elif date_digit_length == 12 : date_format = '%Y%m%d%H%M' return date_format
Checks format of timestamp and returns strftime format
Checks format of timestamp and returns strftime format
"""Checks format of timestamp and returns strftime format"""
dframe
time_col_name