Ejemplo n.º 1
0
def test_boxplot_GLDAS_nan_extent():
    filepath = get_path('GLDAS_nan')
    out_dir = get_path('boxplot')
    out_name = 'test_boxplot_GLDAS_nan_extent'
    ncplot.boxplot(filepath, 'R', EXTENT_GRID, out_dir, out_name)
    warnings.warn(
        'Test does not assert output images. Have a look at {}.'.format(
            out_dir))
Ejemplo n.º 2
0
def test_boxplot_ISMN_extent():
    filepath = get_path('ISMN')
    out_dir = get_path('boxplot')
    out_name = 'test_boxplot_ISMN_extent'
    out_type = 'png'
    ncplot.boxplot(filepath, 'R', EXTENT_SCATTER, out_dir, out_name, out_type)
    warnings.warn(
        'Test does not assert output images. Have a look at {}.'.format(
            out_dir))
Ejemplo n.º 3
0
def test_boxplot_GLDAS_options():
    out_dir = get_path('boxplot')
    filepath = get_path('GLDAS')
    out_name = 'test_boxplot_GLDAS_options'
    variables = ncplot.get_variables(filepath, 'R')[:-1]
    ncplot.boxplot(filepath,
                   variables,
                   out_dir=out_dir,
                   out_name=out_name,
                   out_type=['png', '.svg'],
                   dpi=300,
                   print_stat=False,
                   add_title=False,
                   watermark_pos='bottom')
    warnings.warn(
        'Test does not assert output images. Have a look at {}.'.format(
            out_dir))
Ejemplo n.º 4
0
def test_boxplot_GLDAS_nan_default():
    filepath = get_path('GLDAS_nan')
    ncplot.boxplot(filepath, 'rho')
    warnings.warn(
        'Test does not assert output images. Have a look at {}.'.format(
            os.getcwd()))
Ejemplo n.º 5
0
def test_boxplot_ISMN_default():
    filepath = get_path('ISMN')
    ncplot.boxplot(filepath, 'R')
    warnings.warn(
        'Test does not assert output images. Have a look at {}.'.format(
            os.getcwd()))  # TODO: print full filename