oas_dev/util/imports/import_fields_xr_v2.py
def _get_time_resolution(ds_out):
    """
    Checks the time resolution (monthly/hourly etc)
    :param ds_out:
    :return:
    """
    _diff = ds_out['time'].isel(time=1) - ds_out['time'].isel(time=0)
    if _diff.values > 1:
        time_resolution = 'month'
    elif _diff.values < 1:
        time_resolution = 'hour'
    else:
        log.ger.warning('_get_time_resolution: NOT SAFE for resolution day -- implement properly')
        time_resolution = 'day'
    return time_resolution

    Checks the time resolution (monthly/hourly etc)
    :param ds_out:
    :return:
    
Checks the time resolution (monthly/hourly etc)
Checks the time resolution ( monthly / hourly etc )
def _get_time_resolution(ds_out):
    _diff = ds_out['time'].isel(time=1) - ds_out['time'].isel(time=0)
    if _diff.values > 1:
        time_resolution = 'month'
    elif _diff.values < 1:
        time_resolution = 'hour'
    else:
        log.ger.warning('_get_time_resolution: NOT SAFE for resolution day -- implement properly')
        time_resolution = 'day'
    return time_resolution
def _get_time_resolution ( ds_out ) : _diff = ds_out [ 'time' ] . isel ( time = 1 ) - ds_out [ 'time' ] . isel ( time = 0 ) if _diff . values > 1 : time_resolution = 'month' elif _diff . values < 1 : time_resolution = 'hour' else : log . ger . warning ( '_get_time_resolution: NOT SAFE for resolution day -- implement properly' ) time_resolution = 'day' return time_resolution
Checks the time resolution (monthly/hourly etc)
Checks the time resolution ( monthly / hourly etc )
"""
    Checks the time resolution (monthly/hourly etc)
    :param ds_out:
    :return:
    """
None
ds_out
None