Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing OGGM leads to errors on Windows #870

Closed
WFurian opened this issue Sep 10, 2019 · 3 comments
Closed

Testing OGGM leads to errors on Windows #870

WFurian opened this issue Sep 10, 2019 · 3 comments

Comments

@WFurian
Copy link

WFurian commented Sep 10, 2019

I'm trying to install OGGM on a Windows 10 machine using conda. I successfully downloaded all the dependencies, however, when I run pytest --pyargs oggm the test runs for 10 to 30 minutes and concludes with some errors:

platform win32 -- Python 3.7.4, pytest-5.1.2, py-1.8.0, pluggy-0.12.0
rootdir: C:\Windows\System32
plugins: oggm-1.1.1
collected 223 items

tests\test_benchmarks.py .....                                                                                                                                                                                    [  2%]
tests\test_graphics.py ........F..........                                                                                                                                                                        [ 10%]
tests\test_models.py ...................ssss.ssss..s......s.sssssss..s                                                                                                                                            [ 32%]
tests\test_numerics.py .ssssssssssssss.s                                                                                                                                                                          [ 40%]
tests\test_prepro.py .........s...................s..............s.s..........                                                                                                                                    [ 65%]
tests\test_utils.py ..............F...FFFFFFFF................ss.s.ssssss.sssssssss..ss.s..                                                                                                                       [ 97%]
tests\test_workflow.py sssss                                                                                                                                                                                      [100%]

The detailed failure output is attached at the bottom for better readability, but the conclusion is:
10 failed, 150 passed, 63 skipped, 24 warnings in 1755.93s (0:29:15)

I've tried to run OGGM nevertheless, but I run into issues when following the getting startednotebook in my conda environment in PyCharm. I get through it until gdirs = workflow.init_glacier_regions(rgi_ids, from_prepro_level=2, prepro_border=80) produces an error.
The KeyError: "filename 'RGI60-11.00\\\\RGI60-11.00787.tar.gz' not found" seems to mean that the downloaded glacier data is not found again. I'm not sure how I can fix this - where is the data stored after the download?

gdirs = workflow.init_glacier_regions(rgi_ids, from_prepro_level=2, prepro_border=80)
2019-09-10 16:12:16: oggm.workflow: init_glacier_regions from prepro level 2 on 2 glaciers.
2019-09-10 16:12:16: oggm.workflow: Execute entity task gdir_from_prepro on 2 glaciers
2019-09-10 16:12:16: oggm.workflow: Multiprocessing: using all available processors (N=8)
multiprocessing.pool.RemoteTraceback: 
"""
Traceback (most recent call last):
  File "C:\ProgramData\Miniconda3\envs\oggm_test\lib\multiprocessing\pool.py", line 121, in worker
    result = (True, func(*args, **kwds))
  File "C:\ProgramData\Miniconda3\envs\oggm_test\lib\multiprocessing\pool.py", line 44, in mapstar
    return list(map(*args))
  File "C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\workflow.py", line 92, in __call__
    return call_func(gdir, **self.out_kwargs)
  File "C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\workflow.py", line 217, in gdir_from_prepro
    return oggm.GlacierDirectory(entity, from_tar=from_tar)
  File "C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\utils\_workflow.py", line 1371, in __init__
    robust_tar_extract(from_tar, _dir, delete_tar=delete_tar)
  File "C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\utils\_workflow.py", line 1286, in robust_tar_extract
    i_from_tar = tf.getmember(os.path.join(dirbname, bname))
  File "C:\ProgramData\Miniconda3\envs\oggm_test\lib\tarfile.py", line 1754, in getmember
    raise KeyError("filename %r not found" % name)
KeyError: "filename 'RGI60-11.00\\\\RGI60-11.00787.tar.gz' not found"
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\IPython\core\interactiveshell.py", line 3326, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-56-5e6b7ca4caff>", line 1, in <module>
    gdirs = workflow.init_glacier_regions(rgi_ids, from_prepro_level=2, prepro_border=80)
  File "C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\workflow.py", line 319, in init_glacier_regions
    check_demo_glacier=use_demo_glaciers)
  File "C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\workflow.py", line 147, in execute_entity_task
    out = mppool.map(pc, gdirs, chunksize=1)
  File "C:\ProgramData\Miniconda3\envs\oggm_test\lib\multiprocessing\pool.py", line 268, in map
    return self._map_async(func, iterable, mapstar, chunksize).get()
  File "C:\ProgramData\Miniconda3\envs\oggm_test\lib\multiprocessing\pool.py", line 657, in get
    raise self._value
KeyError: "filename 'RGI60-11.00\\\\RGI60-11.00787.tar.gz' not found"

Detailed list of failures for the OGGM testing run:

======================================================================================================= FAILURES =======================================================================================================
_______________________________________________________________________________________________ test_multiple_inversion ________________________________________________________________________________________________
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
  File "C:\ProgramData\Miniconda3\envs\oggm_test\lib\multiprocessing\pool.py", line 121, in worker
    result = (True, func(*args, **kwds))
  File "C:\ProgramData\Miniconda3\envs\oggm_test\lib\multiprocessing\pool.py", line 44, in mapstar
    return list(map(*args))
  File "C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\workflow.py", line 92, in __call__
    return call_func(gdir, **self.out_kwargs)
  File "C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\utils\_workflow.py", line 410, in _entity_task
    out = task_func(gdir, **kwargs)
  File "C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\core\climate.py", line 864, in t_star_from_refmb
    mbdf = gdir.get_ref_mb_data()['ANNUAL_BALANCE']
  File "C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\utils\_workflow.py", line 2016, in get_ref_mb_data
    raise RuntimeError('Please process some climate data before call')
RuntimeError: Please process some climate data before call
"""

The above exception was the direct cause of the following exception:

    @pytest.mark.graphic
    @mpl_image_compare(multi=True)
    def test_multiple_inversion():

        # test directory
        testdir = os.path.join(get_test_dir(), 'tmp_mdir')
        if not os.path.exists(testdir):
            os.makedirs(testdir)

        # Init
        cfg.initialize()
        cfg.set_intersects_db(get_demo_file('rgi_intersect_oetztal.shp'))
        cfg.PATHS['dem_file'] = get_demo_file('hef_srtm.tif')
        cfg.PATHS['climate_file'] = get_demo_file('histalp_merged_hef.nc')
        cfg.PARAMS['border'] = 40
        cfg.PARAMS['run_mb_calibration'] = True
        cfg.PARAMS['baseline_climate'] = 'CUSTOM'
        cfg.PATHS['working_dir'] = testdir

        # Get the RGI ID
        hef_rgi = gpd.read_file(get_demo_file('divides_hef.shp'))
        hef_rgi.loc[0, 'RGIId'] = 'RGI50-11.00897'

        gdirs = workflow.init_glacier_regions(hef_rgi)
        workflow.gis_prepro_tasks(gdirs)
>       workflow.climate_tasks(gdirs)

C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\tests\test_graphics.py:153:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\workflow.py:397: in climate_tasks
    tasks.compute_ref_t_stars(gdirs)
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\core\climate.py:1422: in compute_ref_t_stars
    out = execute_entity_task(t_star_from_refmb, ref_gdirs)
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\workflow.py:147: in execute_entity_task
    out = mppool.map(pc, gdirs, chunksize=1)
C:\ProgramData\Miniconda3\envs\oggm_test\lib\multiprocessing\pool.py:268: in map
    return self._map_async(func, iterable, mapstar, chunksize).get()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <multiprocessing.pool.MapResult object at 0x000001AD902873C8>, timeout = None

    def get(self, timeout=None):
        self.wait(timeout)
        if not self.ready():
            raise TimeoutError
        if self._success:
            return self._value
        else:
>           raise self._value
E           RuntimeError: Please process some climate data before call

C:\ProgramData\Miniconda3\envs\oggm_test\lib\multiprocessing\pool.py:657: RuntimeError
------------------------------------------------------------------------------------------------- Captured stderr call -------------------------------------------------------------------------------------------------
2019-09-10 15:17:52: oggm.cfg: Using configuration file: C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\params.cfg
2019-09-10 15:17:52: oggm.workflow: Execute entity task define_glacier_region on 3 glaciers
2019-09-10 15:17:53: oggm.workflow: Multiprocessing: using all available processors (N=8)
2019-09-10 15:18:30: oggm.workflow: Execute entity task glacier_masks on 3 glaciers
2019-09-10 15:18:31: oggm.workflow: Execute entity task compute_centerlines on 3 glaciers
2019-09-10 15:18:31: oggm.workflow: Execute entity task initialize_flowlines on 3 glaciers
2019-09-10 15:18:31: oggm.workflow: Execute entity task compute_downstream_line on 3 glaciers
2019-09-10 15:18:32: oggm.workflow: Execute entity task compute_downstream_bedshape on 3 glaciers
2019-09-10 15:18:33: oggm.workflow: Execute entity task catchment_area on 3 glaciers
2019-09-10 15:18:35: oggm.workflow: Execute entity task catchment_intersections on 3 glaciers
2019-09-10 15:18:35: oggm.workflow: Execute entity task catchment_width_geom on 3 glaciers
2019-09-10 15:18:36: oggm.workflow: Execute entity task catchment_width_correction on 3 glaciers
2019-09-10 15:18:37: oggm.workflow: Execute entity task process_custom_climate_data on 3 glaciers
2019-09-10 15:18:37: oggm.core.climate: Compute the reference t* and mu* for WGMS glaciers
2019-09-10 15:18:37: oggm.workflow: Execute entity task t_star_from_refmb on 1 glaciers
2019-09-10 15:18:37: oggm.workflow: Multiprocessing: using all available processors (N=8)
Could not write to logfile: 2019-09-10T15:19:12;t_star_from_refmb;RuntimeError: Please process some climate data before call
RuntimeError occurred during task t_star_from_refmb on RGI50-11.00897: Please process some climate data before call
____________________________________________________________________________________ TestStartFromTar.test_to_and_from_basedir_tar _____________________________________________________________________________________

self = <oggm.tests.test_utils.TestStartFromTar testMethod=test_to_and_from_basedir_tar>

    def test_to_and_from_basedir_tar(self):

        # Go - initialize working directories
        gdirs = workflow.init_glacier_regions(self.rgidf)

        # End - compress all
        workflow.execute_entity_task(utils.gdir_to_tar, gdirs)
        utils.base_dir_to_tar()

        # Test - reopen form tar
>       gdirs = workflow.init_glacier_regions(self.rgidf, from_tar=True)

C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\tests\test_utils.py:380:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\workflow.py:325: in init_glacier_regions
    delete_tar=delete_tar)
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\utils\_workflow.py:1491: in __init__
    robust_tar_extract(from_tar, self.dir, delete_tar=delete_tar)
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\utils\_workflow.py:1286: in robust_tar_extract
    i_from_tar = tf.getmember(os.path.join(dirbname, bname))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <tarfile.TarFile object at 0x000001AD8AB7D708>, name = 'RGI50-11.00\\RGI50-11.00648.tar.gz'

    def getmember(self, name):
        """Return a TarInfo object for member `name'. If `name' can not be
           found in the archive, KeyError is raised. If a member occurs more
           than once in the archive, its last occurrence is assumed to be the
           most up-to-date version.
        """
        tarinfo = self._getmember(name)
        if tarinfo is None:
>           raise KeyError("filename %r not found" % name)
E           KeyError: "filename 'RGI50-11.00\\\\RGI50-11.00648.tar.gz' not found"

C:\ProgramData\Miniconda3\envs\oggm_test\lib\tarfile.py:1754: KeyError
------------------------------------------------------------------------------------------------- Captured stderr call -------------------------------------------------------------------------------------------------
2019-09-10 15:34:39: oggm.cfg: Using configuration file: C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\params.cfg
2019-09-10 15:34:39: oggm.workflow: Execute entity task define_glacier_region on 20 glaciers
2019-09-10 15:34:39: oggm.core.gis: (RGI50-11.00648) define_glacier_region
2019-09-10 15:34:39: oggm.core.gis: (RGI50-11.00663) define_glacier_region
2019-09-10 15:34:39: oggm.core.gis: (RGI50-11.00666) define_glacier_region
2019-09-10 15:34:40: oggm.core.gis: (RGI50-11.00670) define_glacier_region
2019-09-10 15:34:40: oggm.core.gis: (RGI50-11.00674) define_glacier_region
2019-09-10 15:34:40: oggm.core.gis: (RGI50-11.00684) define_glacier_region
2019-09-10 15:34:40: oggm.core.gis: (RGI50-11.00687) define_glacier_region
2019-09-10 15:34:40: oggm.core.gis: (RGI50-11.00698) define_glacier_region
2019-09-10 15:34:41: oggm.core.gis: (RGI50-11.00746) define_glacier_region
2019-09-10 15:34:41: oggm.core.gis: (RGI50-11.00770) define_glacier_region
2019-09-10 15:34:41: oggm.core.gis: (RGI50-11.00779) define_glacier_region
2019-09-10 15:34:41: oggm.core.gis: (RGI50-11.00787) define_glacier_region
2019-09-10 15:34:41: oggm.core.gis: (RGI50-11.00887) define_glacier_region
2019-09-10 15:34:42: oggm.core.gis: (RGI50-11.00929) define_glacier_region
2019-09-10 15:34:42: oggm.core.gis: (RGI50-11.00945) define_glacier_region
2019-09-10 15:34:42: oggm.core.gis: (RGI50-11.00958) define_glacier_region
2019-09-10 15:34:43: oggm.core.gis: (RGI50-11.00992) define_glacier_region
2019-09-10 15:34:43: oggm.core.gis: (RGI50-11.00719_d01) define_glacier_region
2019-09-10 15:34:43: oggm.core.gis: (RGI50-11.00719_d02) define_glacier_region
2019-09-10 15:34:43: oggm.core.gis: (RGI50-11.00897) define_glacier_region
2019-09-10 15:34:43: oggm.workflow: Execute entity task gdir_to_tar on 20 glaciers
2019-09-10 15:34:43: oggm.utils: (RGI50-11.00648) gdir_to_tar
2019-09-10 15:34:43: oggm.utils: (RGI50-11.00663) gdir_to_tar
2019-09-10 15:34:43: oggm.utils: (RGI50-11.00666) gdir_to_tar
2019-09-10 15:34:43: oggm.utils: (RGI50-11.00670) gdir_to_tar
2019-09-10 15:34:43: oggm.utils: (RGI50-11.00674) gdir_to_tar
2019-09-10 15:34:44: oggm.utils: (RGI50-11.00684) gdir_to_tar
2019-09-10 15:34:44: oggm.utils: (RGI50-11.00687) gdir_to_tar
2019-09-10 15:34:44: oggm.utils: (RGI50-11.00698) gdir_to_tar
2019-09-10 15:34:44: oggm.utils: (RGI50-11.00746) gdir_to_tar
2019-09-10 15:34:44: oggm.utils: (RGI50-11.00770) gdir_to_tar
2019-09-10 15:34:44: oggm.utils: (RGI50-11.00779) gdir_to_tar
2019-09-10 15:34:44: oggm.utils: (RGI50-11.00787) gdir_to_tar
2019-09-10 15:34:44: oggm.utils: (RGI50-11.00887) gdir_to_tar
2019-09-10 15:34:44: oggm.utils: (RGI50-11.00929) gdir_to_tar
2019-09-10 15:34:44: oggm.utils: (RGI50-11.00945) gdir_to_tar
2019-09-10 15:34:44: oggm.utils: (RGI50-11.00958) gdir_to_tar
2019-09-10 15:34:44: oggm.utils: (RGI50-11.00992) gdir_to_tar
2019-09-10 15:34:44: oggm.utils: (RGI50-11.00719_d01) gdir_to_tar
2019-09-10 15:34:44: oggm.utils: (RGI50-11.00719_d02) gdir_to_tar
2019-09-10 15:34:44: oggm.utils: (RGI50-11.00897) gdir_to_tar
____________________________________________________________________________________ TestStartFromOnlinePrepro.test_corrupted_file _____________________________________________________________________________________

self = <oggm.tests.test_utils.TestStartFromOnlinePrepro testMethod=test_corrupted_file>

    def test_corrupted_file(self):

        # Go - initialize working directories
        gdirs = workflow.init_glacier_regions(['hef'],
                                              from_prepro_level=4,
                                              prepro_rgi_version='61',
>                                             prepro_border=10)

C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\tests\test_utils.py:588:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\workflow.py:319: in init_glacier_regions
    check_demo_glacier=use_demo_glaciers)
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\workflow.py:149: in execute_entity_task
    out = [pc(gdir) for gdir in gdirs]
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\workflow.py:149: in <listcomp>
    out = [pc(gdir) for gdir in gdirs]
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\workflow.py:92: in __call__
    return call_func(gdir, **self.out_kwargs)
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\workflow.py:217: in gdir_from_prepro
    return oggm.GlacierDirectory(entity, from_tar=from_tar)
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\utils\_workflow.py:1371: in __init__
    robust_tar_extract(from_tar, _dir, delete_tar=delete_tar)
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\utils\_workflow.py:1286: in robust_tar_extract
    i_from_tar = tf.getmember(os.path.join(dirbname, bname))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <tarfile.TarFile object at 0x000001AD8AB6E1C8>, name = 'RGI60-11.00\\RGI60-11.00897.tar.gz'

    def getmember(self, name):
        """Return a TarInfo object for member `name'. If `name' can not be
           found in the archive, KeyError is raised. If a member occurs more
           than once in the archive, its last occurrence is assumed to be the
           most up-to-date version.
        """
        tarinfo = self._getmember(name)
        if tarinfo is None:
>           raise KeyError("filename %r not found" % name)
E           KeyError: "filename 'RGI60-11.00\\\\RGI60-11.00897.tar.gz' not found"

C:\ProgramData\Miniconda3\envs\oggm_test\lib\tarfile.py:1754: KeyError
------------------------------------------------------------------------------------------------- Captured stderr call -------------------------------------------------------------------------------------------------
2019-09-10 15:35:32: oggm.cfg: Using configuration file: C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\params.cfg
2019-09-10 15:35:32: oggm.workflow: init_glacier_regions from prepro level 4 on 1 glaciers.
2019-09-10 15:35:32: oggm.workflow: Execute entity task gdir_from_prepro on 1 glaciers
2019-09-10 15:35:32: oggm.utils: Downloading https://cluster.klima.uni-bremen.de/~fmaussion/demo_gdirs/RGI61/b_010/L4/RGI60-11/RGI60-11.00.tar to C:\Users\Wilhelm\OGGM\tests\6812c0f0a1d967e0725912a5602d4282e51cc617\dl_cache\cluster.klima.uni-bremen.de/~fmaussion/demo_gdirs/RGI61/b_010/L4/RGI60-11/RGI60-11.00.tar...
N/A% of  70.0 KiB |                      | Elapsed Time: 0:00:00 ETA:  --:--:--2019-09-10 15:35:42: oggm.utils: Successfully loaded verification data.
2019-09-10 15:35:42: oggm.utils: C:\Users\Wilhelm\OGGM\tests\6812c0f0a1d967e0725912a5602d4282e51cc617\dl_cache\cluster.klima.uni-bremen.de/~fmaussion/demo_gdirs/RGI61/b_010/L4/RGI60-11/RGI60-11.00.tar verified successfully.
100% of  70.0 KiB |######################| Elapsed Time: 0:00:09 Time:  0:00:09
____________________________________________________________________________________ TestStartFromOnlinePrepro.test_start_from_demo ____________________________________________________________________________________

self = <oggm.tests.test_utils.TestStartFromOnlinePrepro testMethod=test_start_from_demo>

    def test_start_from_demo(self):

        # Go - initialize working directories
        gdirs = workflow.init_glacier_regions(['kwf', 'hef'],
                                              from_prepro_level=4,
                                              prepro_rgi_version='61',
>                                             prepro_border=10)

C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\tests\test_utils.py:578:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\workflow.py:319: in init_glacier_regions
    check_demo_glacier=use_demo_glaciers)
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\workflow.py:149: in execute_entity_task
    out = [pc(gdir) for gdir in gdirs]
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\workflow.py:149: in <listcomp>
    out = [pc(gdir) for gdir in gdirs]
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\workflow.py:92: in __call__
    return call_func(gdir, **self.out_kwargs)
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\workflow.py:217: in gdir_from_prepro
    return oggm.GlacierDirectory(entity, from_tar=from_tar)
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\utils\_workflow.py:1371: in __init__
    robust_tar_extract(from_tar, _dir, delete_tar=delete_tar)
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\utils\_workflow.py:1286: in robust_tar_extract
    i_from_tar = tf.getmember(os.path.join(dirbname, bname))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <tarfile.TarFile object at 0x000001AD8E071D48>, name = 'RGI60-11.00\\RGI60-11.00787.tar.gz'

    def getmember(self, name):
        """Return a TarInfo object for member `name'. If `name' can not be
           found in the archive, KeyError is raised. If a member occurs more
           than once in the archive, its last occurrence is assumed to be the
           most up-to-date version.
        """
        tarinfo = self._getmember(name)
        if tarinfo is None:
>           raise KeyError("filename %r not found" % name)
E           KeyError: "filename 'RGI60-11.00\\\\RGI60-11.00787.tar.gz' not found"

C:\ProgramData\Miniconda3\envs\oggm_test\lib\tarfile.py:1754: KeyError
------------------------------------------------------------------------------------------------- Captured stderr call -------------------------------------------------------------------------------------------------
2019-09-10 15:35:43: oggm.cfg: Using configuration file: C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\params.cfg
2019-09-10 15:35:43: oggm.workflow: init_glacier_regions from prepro level 4 on 2 glaciers.
2019-09-10 15:35:43: oggm.workflow: Execute entity task gdir_from_prepro on 2 glaciers
2019-09-10 15:35:43: oggm.utils: Downloading https://cluster.klima.uni-bremen.de/~fmaussion/demo_gdirs/RGI61/b_010/L4/RGI60-11/RGI60-11.00.tar to C:\Users\Wilhelm\OGGM\tests\6812c0f0a1d967e0725912a5602d4282e51cc617\dl_cache\cluster.klima.uni-bremen.de/~fmaussion/demo_gdirs/RGI61/b_010/L4/RGI60-11/RGI60-11.00.tar...
N/A% of  70.0 KiB |                      | Elapsed Time: 0:00:00 ETA:  --:--:--2019-09-10 15:35:43: oggm.utils: C:\Users\Wilhelm\OGGM\tests\6812c0f0a1d967e0725912a5602d4282e51cc617\dl_cache\cluster.klima.uni-bremen.de/~fmaussion/demo_gdirs/RGI61/b_010/L4/RGI60-11/RGI60-11.00.tar verified successfully.
100% of  70.0 KiB |######################| Elapsed Time: 0:00:00 Time:  0:00:00
__________________________________________________________________________________ TestStartFromOnlinePrepro.test_start_from_level_1 ___________________________________________________________________________________

self = <oggm.tests.test_utils.TestStartFromOnlinePrepro testMethod=test_start_from_level_1>

    @mock.patch('oggm.utils._downloads.GDIR_URL', TEST_GDIR_URL)
    def test_start_from_level_1(self):

        # Go - initialize working directories
        gdirs = workflow.init_glacier_regions(self.rgidf.iloc[:2],
                                              from_prepro_level=1,
                                              prepro_rgi_version='61',
                                              prepro_border=20,
>                                             use_demo_glaciers=False)

C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\tests\test_utils.py:479:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\workflow.py:319: in init_glacier_regions
    check_demo_glacier=use_demo_glaciers)
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\workflow.py:149: in execute_entity_task
    out = [pc(gdir) for gdir in gdirs]
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\workflow.py:149: in <listcomp>
    out = [pc(gdir) for gdir in gdirs]
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\workflow.py:92: in __call__
    return call_func(gdir, **self.out_kwargs)
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\workflow.py:217: in gdir_from_prepro
    return oggm.GlacierDirectory(entity, from_tar=from_tar)
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\utils\_workflow.py:1491: in __init__
    robust_tar_extract(from_tar, self.dir, delete_tar=delete_tar)
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\utils\_workflow.py:1286: in robust_tar_extract
    i_from_tar = tf.getmember(os.path.join(dirbname, bname))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <tarfile.TarFile object at 0x000001ADA6B2CF08>, name = 'RGI60-11.00\\RGI60-11.00648.tar.gz'

    def getmember(self, name):
        """Return a TarInfo object for member `name'. If `name' can not be
           found in the archive, KeyError is raised. If a member occurs more
           than once in the archive, its last occurrence is assumed to be the
           most up-to-date version.
        """
        tarinfo = self._getmember(name)
        if tarinfo is None:
>           raise KeyError("filename %r not found" % name)
E           KeyError: "filename 'RGI60-11.00\\\\RGI60-11.00648.tar.gz' not found"

C:\ProgramData\Miniconda3\envs\oggm_test\lib\tarfile.py:1754: KeyError
------------------------------------------------------------------------------------------------- Captured stderr call -------------------------------------------------------------------------------------------------
2019-09-10 15:35:43: oggm.cfg: Using configuration file: C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\params.cfg
2019-09-10 15:35:43: oggm.workflow: init_glacier_regions from prepro level 1 on 2 glaciers.
2019-09-10 15:35:43: oggm.workflow: Execute entity task gdir_from_prepro on 2 glaciers
2019-09-10 15:35:43: oggm.utils: Downloading https://cluster.klima.uni-bremen.de/~fmaussion/test_gdirs/oggm_v1.1/RGI61/b_020/L1/RGI60-11/RGI60-11.00.tar to C:\Users\Wilhelm\OGGM\tests\6812c0f0a1d967e0725912a5602d4282e51cc617\dl_cache\cluster.klima.uni-bremen.de/~fmaussion/test_gdirs/oggm_v1.1/RGI61/b_020/L1/RGI60-11/RGI60-11.00.tar...
N/A% of 580.0 KiB |                      | Elapsed Time: 0:00:00 ETA:  --:--:--2019-09-10 15:35:44: oggm.utils: C:\Users\Wilhelm\OGGM\tests\6812c0f0a1d967e0725912a5602d4282e51cc617\dl_cache\cluster.klima.uni-bremen.de/~fmaussion/test_gdirs/oggm_v1.1/RGI61/b_020/L1/RGI60-11/RGI60-11.00.tar verified successfully.
100% of 580.0 KiB |######################| Elapsed Time: 0:00:00 Time:  0:00:00
________________________________________________________________________________ TestStartFromOnlinePrepro.test_start_from_level_1_str _________________________________________________________________________________

self = <oggm.tests.test_utils.TestStartFromOnlinePrepro testMethod=test_start_from_level_1_str>

    @mock.patch('oggm.utils._downloads.GDIR_URL', TEST_GDIR_URL)
    def test_start_from_level_1_str(self):

        # Go - initialize working directories
        entitites = self.rgidf.iloc[:2].RGIId
        cfg.PARAMS['border'] = 20
        gdirs = workflow.init_glacier_regions(entitites,
                                              from_prepro_level=1,
>                                             use_demo_glaciers=False)

C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\tests\test_utils.py:495:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\workflow.py:319: in init_glacier_regions
    check_demo_glacier=use_demo_glaciers)
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\workflow.py:149: in execute_entity_task
    out = [pc(gdir) for gdir in gdirs]
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\workflow.py:149: in <listcomp>
    out = [pc(gdir) for gdir in gdirs]
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\workflow.py:92: in __call__
    return call_func(gdir, **self.out_kwargs)
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\workflow.py:217: in gdir_from_prepro
    return oggm.GlacierDirectory(entity, from_tar=from_tar)
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\utils\_workflow.py:1371: in __init__
    robust_tar_extract(from_tar, _dir, delete_tar=delete_tar)
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\utils\_workflow.py:1286: in robust_tar_extract
    i_from_tar = tf.getmember(os.path.join(dirbname, bname))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <tarfile.TarFile object at 0x000001AD8E45CEC8>, name = 'RGI60-11.00\\RGI60-11.00648.tar.gz'

    def getmember(self, name):
        """Return a TarInfo object for member `name'. If `name' can not be
           found in the archive, KeyError is raised. If a member occurs more
           than once in the archive, its last occurrence is assumed to be the
           most up-to-date version.
        """
        tarinfo = self._getmember(name)
        if tarinfo is None:
>           raise KeyError("filename %r not found" % name)
E           KeyError: "filename 'RGI60-11.00\\\\RGI60-11.00648.tar.gz' not found"

C:\ProgramData\Miniconda3\envs\oggm_test\lib\tarfile.py:1754: KeyError
------------------------------------------------------------------------------------------------- Captured stderr call -------------------------------------------------------------------------------------------------
2019-09-10 15:35:44: oggm.cfg: Using configuration file: C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\params.cfg
2019-09-10 15:35:44: oggm.workflow: init_glacier_regions from prepro level 1 on 2 glaciers.
2019-09-10 15:35:44: oggm.workflow: Execute entity task gdir_from_prepro on 2 glaciers
2019-09-10 15:35:44: oggm.utils: Downloading https://cluster.klima.uni-bremen.de/~fmaussion/test_gdirs/oggm_v1.1/RGI61/b_020/L1/RGI60-11/RGI60-11.00.tar to C:\Users\Wilhelm\OGGM\tests\6812c0f0a1d967e0725912a5602d4282e51cc617\dl_cache\cluster.klima.uni-bremen.de/~fmaussion/test_gdirs/oggm_v1.1/RGI61/b_020/L1/RGI60-11/RGI60-11.00.tar...
N/A% of 580.0 KiB |                      | Elapsed Time: 0:00:00 ETA:  --:--:--2019-09-10 15:35:44: oggm.utils: C:\Users\Wilhelm\OGGM\tests\6812c0f0a1d967e0725912a5602d4282e51cc617\dl_cache\cluster.klima.uni-bremen.de/~fmaussion/test_gdirs/oggm_v1.1/RGI61/b_020/L1/RGI60-11/RGI60-11.00.tar verified successfully.
100% of 580.0 KiB |######################| Elapsed Time: 0:00:00 Time:  0:00:00
__________________________________________________________________________________ TestStartFromOnlinePrepro.test_start_from_level_2 ___________________________________________________________________________________

self = <oggm.tests.test_utils.TestStartFromOnlinePrepro testMethod=test_start_from_level_2>

    @mock.patch('oggm.utils._downloads.GDIR_URL', TEST_GDIR_URL)
    def test_start_from_level_2(self):

        # Go - initialize working directories
        gdirs = workflow.init_glacier_regions(self.rgidf.iloc[:2],
                                              from_prepro_level=2,
                                              prepro_rgi_version='61',
                                              prepro_border=20,
>                                             use_demo_glaciers=False)

C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\tests\test_utils.py:523:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\workflow.py:319: in init_glacier_regions
    check_demo_glacier=use_demo_glaciers)
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\workflow.py:149: in execute_entity_task
    out = [pc(gdir) for gdir in gdirs]
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\workflow.py:149: in <listcomp>
    out = [pc(gdir) for gdir in gdirs]
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\workflow.py:92: in __call__
    return call_func(gdir, **self.out_kwargs)
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\workflow.py:217: in gdir_from_prepro
    return oggm.GlacierDirectory(entity, from_tar=from_tar)
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\utils\_workflow.py:1491: in __init__
    robust_tar_extract(from_tar, self.dir, delete_tar=delete_tar)
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\utils\_workflow.py:1286: in robust_tar_extract
    i_from_tar = tf.getmember(os.path.join(dirbname, bname))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <tarfile.TarFile object at 0x000001AD8AAD6588>, name = 'RGI60-11.00\\RGI60-11.00648.tar.gz'

    def getmember(self, name):
        """Return a TarInfo object for member `name'. If `name' can not be
           found in the archive, KeyError is raised. If a member occurs more
           than once in the archive, its last occurrence is assumed to be the
           most up-to-date version.
        """
        tarinfo = self._getmember(name)
        if tarinfo is None:
>           raise KeyError("filename %r not found" % name)
E           KeyError: "filename 'RGI60-11.00\\\\RGI60-11.00648.tar.gz' not found"

C:\ProgramData\Miniconda3\envs\oggm_test\lib\tarfile.py:1754: KeyError
------------------------------------------------------------------------------------------------- Captured stderr call -------------------------------------------------------------------------------------------------
2019-09-10 15:35:45: oggm.cfg: Using configuration file: C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\params.cfg
2019-09-10 15:35:45: oggm.workflow: init_glacier_regions from prepro level 2 on 2 glaciers.
2019-09-10 15:35:45: oggm.workflow: Execute entity task gdir_from_prepro on 2 glaciers
2019-09-10 15:35:45: oggm.utils: Downloading https://cluster.klima.uni-bremen.de/~fmaussion/test_gdirs/oggm_v1.1/RGI61/b_020/L2/RGI60-11/RGI60-11.00.tar to C:\Users\Wilhelm\OGGM\tests\6812c0f0a1d967e0725912a5602d4282e51cc617\dl_cache\cluster.klima.uni-bremen.de/~fmaussion/test_gdirs/oggm_v1.1/RGI61/b_020/L2/RGI60-11/RGI60-11.00.tar...
 60% of 850.0 KiB |#############         | Elapsed Time: 0:00:00 ETA:  00:00:002019-09-10 15:35:45: oggm.utils: C:\Users\Wilhelm\OGGM\tests\6812c0f0a1d967e0725912a5602d4282e51cc617\dl_cache\cluster.klima.uni-bremen.de/~fmaussion/test_gdirs/oggm_v1.1/RGI61/b_020/L2/RGI60-11/RGI60-11.00.tar verified successfully.
100% of 850.0 KiB |######################| Elapsed Time: 0:00:00 Time:  0:00:00
__________________________________________________________________________________ TestStartFromOnlinePrepro.test_start_from_level_3 ___________________________________________________________________________________

self = <oggm.tests.test_utils.TestStartFromOnlinePrepro testMethod=test_start_from_level_3>

    @mock.patch('oggm.utils._downloads.GDIR_URL', TEST_GDIR_URL)
    def test_start_from_level_3(self):

        # Go - initialize working directories
        gdirs = workflow.init_glacier_regions(self.rgidf.iloc[:2],
                                              from_prepro_level=3,
                                              prepro_rgi_version='61',
                                              prepro_border=20,
>                                             use_demo_glaciers=False)

C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\tests\test_utils.py:540:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\workflow.py:319: in init_glacier_regions
    check_demo_glacier=use_demo_glaciers)
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\workflow.py:149: in execute_entity_task
    out = [pc(gdir) for gdir in gdirs]
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\workflow.py:149: in <listcomp>
    out = [pc(gdir) for gdir in gdirs]
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\workflow.py:92: in __call__
    return call_func(gdir, **self.out_kwargs)
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\workflow.py:217: in gdir_from_prepro
    return oggm.GlacierDirectory(entity, from_tar=from_tar)
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\utils\_workflow.py:1491: in __init__
    robust_tar_extract(from_tar, self.dir, delete_tar=delete_tar)
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\utils\_workflow.py:1286: in robust_tar_extract
    i_from_tar = tf.getmember(os.path.join(dirbname, bname))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <tarfile.TarFile object at 0x000001AD8E5CE508>, name = 'RGI60-11.00\\RGI60-11.00648.tar.gz'

    def getmember(self, name):
        """Return a TarInfo object for member `name'. If `name' can not be
           found in the archive, KeyError is raised. If a member occurs more
           than once in the archive, its last occurrence is assumed to be the
           most up-to-date version.
        """
        tarinfo = self._getmember(name)
        if tarinfo is None:
>           raise KeyError("filename %r not found" % name)
E           KeyError: "filename 'RGI60-11.00\\\\RGI60-11.00648.tar.gz' not found"

C:\ProgramData\Miniconda3\envs\oggm_test\lib\tarfile.py:1754: KeyError
------------------------------------------------------------------------------------------------- Captured stderr call -------------------------------------------------------------------------------------------------
2019-09-10 15:35:45: oggm.cfg: Using configuration file: C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\params.cfg
2019-09-10 15:35:46: oggm.workflow: init_glacier_regions from prepro level 3 on 2 glaciers.
2019-09-10 15:35:46: oggm.workflow: Execute entity task gdir_from_prepro on 2 glaciers
2019-09-10 15:35:46: oggm.utils: Downloading https://cluster.klima.uni-bremen.de/~fmaussion/test_gdirs/oggm_v1.1/RGI61/b_020/L3/RGI60-11/RGI60-11.00.tar to C:\Users\Wilhelm\OGGM\tests\6812c0f0a1d967e0725912a5602d4282e51cc617\dl_cache\cluster.klima.uni-bremen.de/~fmaussion/test_gdirs/oggm_v1.1/RGI61/b_020/L3/RGI60-11/RGI60-11.00.tar...
 31% of   2.4 MiB |######                | Elapsed Time: 0:00:00 ETA:  00:00:002019-09-10 15:35:46: oggm.utils: C:\Users\Wilhelm\OGGM\tests\6812c0f0a1d967e0725912a5602d4282e51cc617\dl_cache\cluster.klima.uni-bremen.de/~fmaussion/test_gdirs/oggm_v1.1/RGI61/b_020/L3/RGI60-11/RGI60-11.00.tar verified successfully.
100% of   2.4 MiB |######################| Elapsed Time: 0:00:00 Time:  0:00:00
__________________________________________________________________________________ TestStartFromOnlinePrepro.test_start_from_level_4 ___________________________________________________________________________________

self = <oggm.tests.test_utils.TestStartFromOnlinePrepro testMethod=test_start_from_level_4>

    @mock.patch('oggm.utils._downloads.GDIR_URL', TEST_GDIR_URL)
    def test_start_from_level_4(self):

        # Go - initialize working directories
        gdirs = workflow.init_glacier_regions(self.rgidf.iloc[:2],
                                              from_prepro_level=4,
                                              prepro_rgi_version='61',
                                              prepro_border=20,
>                                             use_demo_glaciers=False)

C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\tests\test_utils.py:568:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\workflow.py:319: in init_glacier_regions
    check_demo_glacier=use_demo_glaciers)
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\workflow.py:149: in execute_entity_task
    out = [pc(gdir) for gdir in gdirs]
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\workflow.py:149: in <listcomp>
    out = [pc(gdir) for gdir in gdirs]
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\workflow.py:92: in __call__
    return call_func(gdir, **self.out_kwargs)
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\workflow.py:217: in gdir_from_prepro
    return oggm.GlacierDirectory(entity, from_tar=from_tar)
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\utils\_workflow.py:1491: in __init__
    robust_tar_extract(from_tar, self.dir, delete_tar=delete_tar)
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\utils\_workflow.py:1286: in robust_tar_extract
    i_from_tar = tf.getmember(os.path.join(dirbname, bname))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <tarfile.TarFile object at 0x000001AD96627348>, name = 'RGI60-11.00\\RGI60-11.00648.tar.gz'

    def getmember(self, name):
        """Return a TarInfo object for member `name'. If `name' can not be
           found in the archive, KeyError is raised. If a member occurs more
           than once in the archive, its last occurrence is assumed to be the
           most up-to-date version.
        """
        tarinfo = self._getmember(name)
        if tarinfo is None:
>           raise KeyError("filename %r not found" % name)
E           KeyError: "filename 'RGI60-11.00\\\\RGI60-11.00648.tar.gz' not found"

C:\ProgramData\Miniconda3\envs\oggm_test\lib\tarfile.py:1754: KeyError
------------------------------------------------------------------------------------------------- Captured stderr call -------------------------------------------------------------------------------------------------
2019-09-10 15:35:46: oggm.cfg: Using configuration file: C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\params.cfg
2019-09-10 15:35:47: oggm.workflow: init_glacier_regions from prepro level 4 on 2 glaciers.
2019-09-10 15:35:47: oggm.workflow: Execute entity task gdir_from_prepro on 2 glaciers
2019-09-10 15:35:47: oggm.utils: Downloading https://cluster.klima.uni-bremen.de/~fmaussion/test_gdirs/oggm_v1.1/RGI61/b_020/L4/RGI60-11/RGI60-11.00.tar to C:\Users\Wilhelm\OGGM\tests\6812c0f0a1d967e0725912a5602d4282e51cc617\dl_cache\cluster.klima.uni-bremen.de/~fmaussion/test_gdirs/oggm_v1.1/RGI61/b_020/L4/RGI60-11/RGI60-11.00.tar...
N/A% of 580.0 KiB |                      | Elapsed Time: 0:00:00 ETA:  --:--:--2019-09-10 15:35:47: oggm.utils: C:\Users\Wilhelm\OGGM\tests\6812c0f0a1d967e0725912a5602d4282e51cc617\dl_cache\cluster.klima.uni-bremen.de/~fmaussion/test_gdirs/oggm_v1.1/RGI61/b_020/L4/RGI60-11/RGI60-11.00.tar verified successfully.
100% of 580.0 KiB |######################| Elapsed Time: 0:00:00 Time:  0:00:00
_____________________________________________________________________________________________ TestPreproCLI.test_full_run ______________________________________________________________________________________________

self = <oggm.tests.test_utils.TestPreproCLI testMethod=test_full_run>

    def test_full_run(self):

        from oggm.cli.prepro_levels import run_prepro_levels

        # Read in the RGI file
        inter = gpd.read_file(utils.get_demo_file('rgi_intersect_oetztal.shp'))
        rgidf = gpd.read_file(utils.get_demo_file('rgi_oetztal.shp'))

        rgidf['RGIId'] = [rid.replace('RGI50', 'RGI60') for rid in rgidf.RGIId]
        inter['RGIId_1'] = [rid.replace('RGI50', 'RGI60')
                            for rid in inter.RGIId_1]
        inter['RGIId_2'] = [rid.replace('RGI50', 'RGI60')
                            for rid in inter.RGIId_2]

        cru_file = utils.get_demo_file('cru_ts3.23.1901.2014.tmp.dat.nc')

        wdir = os.path.join(self.testdir, 'wd')
        utils.mkdir(wdir)
        odir = os.path.join(self.testdir, 'my_levs')
        topof = utils.get_demo_file('srtm_oetztal.tif')
        run_prepro_levels(rgi_version=None, rgi_reg='11', border=20,
                          output_folder=odir, working_dir=wdir, is_test=True,
                          test_rgidf=rgidf, test_intersects_file=inter,
                          test_topofile=topof,
                          test_crudir=os.path.dirname(cru_file))

        df = pd.read_csv(os.path.join(odir, 'RGI61', 'b_020', 'L1', 'summary',
                                      'glacier_statistics_11.csv'))
        assert 'dem_source' in df

        df = pd.read_csv(os.path.join(odir, 'RGI61', 'b_020', 'L3', 'summary',
                                      'glacier_statistics_11.csv'))
        assert 'inv_volume_km3' in df

        df = pd.read_csv(os.path.join(odir, 'RGI61', 'b_020', 'L3', 'summary',
                                      'climate_statistics_11.csv'))
        assert '1945-1975_avg_prcp' in df

        assert os.path.isfile(os.path.join(odir, 'RGI61', 'b_020',
                                           'package_versions.txt'))
        assert os.path.isdir(os.path.join(odir, 'RGI61', 'b_020', 'L1'))
        assert os.path.isdir(os.path.join(odir, 'RGI61', 'b_020', 'L2'))
        assert os.path.isdir(os.path.join(odir, 'RGI61', 'b_020', 'L3'))
        assert os.path.isdir(os.path.join(odir, 'RGI61', 'b_020', 'L4'))
        assert not os.path.isdir(os.path.join(odir, 'RGI61', 'b_020', 'L5'))

        # See if we can start from all levs
        from oggm import tasks
        from oggm.core.flowline import FlowlineModel
        cfg.PARAMS['continue_on_error'] = False
        rid = df.rgi_id.iloc[0]
        entity = rgidf.loc[rgidf.RGIId == rid].iloc[0]

        # L1
        tarf = os.path.join(odir, 'RGI61', 'b_020', 'L1',
                            rid[:8], rid[:11], rid + '.tar.gz')
        assert not os.path.isfile(tarf)
>       gdir = oggm.GlacierDirectory(entity, from_tar=tarf)

C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\tests\test_utils.py:801:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\utils\_workflow.py:1491: in __init__
    robust_tar_extract(from_tar, self.dir, delete_tar=delete_tar)
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\utils\_workflow.py:1286: in robust_tar_extract
    i_from_tar = tf.getmember(os.path.join(dirbname, bname))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <tarfile.TarFile object at 0x000001AD8AA5BE48>, name = 'RGI60-11.00\\RGI60-11.00746.tar.gz'

    def getmember(self, name):
        """Return a TarInfo object for member `name'. If `name' can not be
           found in the archive, KeyError is raised. If a member occurs more
           than once in the archive, its last occurrence is assumed to be the
           most up-to-date version.
        """
        tarinfo = self._getmember(name)
        if tarinfo is None:
>           raise KeyError("filename %r not found" % name)
E           KeyError: "filename 'RGI60-11.00\\\\RGI60-11.00746.tar.gz' not found"

C:\ProgramData\Miniconda3\envs\oggm_test\lib\tarfile.py:1754: KeyError
------------------------------------------------------------------------------------------------- Captured stderr call -------------------------------------------------------------------------------------------------
2019-09-10 15:35:48: oggm.cfg: Using configuration file: C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\params.cfg
2019-09-10 15:35:48: oggm.cli.prepro_levels: # System info:
2019-09-10 15:35:48: oggm.cli.prepro_levels: python: 3.7.4.final.0
2019-09-10 15:35:48: oggm.cli.prepro_levels: python-bits: 64
2019-09-10 15:35:48: oggm.cli.prepro_levels: OS: Windows
2019-09-10 15:35:48: oggm.cli.prepro_levels: OS-release: 10
2019-09-10 15:35:48: oggm.cli.prepro_levels: machine: AMD64
2019-09-10 15:35:48: oggm.cli.prepro_levels: processor: Intel64 Family 6 Model 142 Stepping 10, GenuineIntel
2019-09-10 15:35:48: oggm.cli.prepro_levels: # Packages info:
2019-09-10 15:35:48: oggm.cli.prepro_levels: oggm: 1.1.1
2019-09-10 15:35:48: oggm.cli.prepro_levels: numpy: 1.16.4
2019-09-10 15:35:48: oggm.cli.prepro_levels: scipy: 1.3.1
2019-09-10 15:35:48: oggm.cli.prepro_levels: pandas: 0.25.1
2019-09-10 15:35:48: oggm.cli.prepro_levels: geopandas: 0.5.1
2019-09-10 15:35:48: oggm.cli.prepro_levels: netCDF4: 1.5.1.2
2019-09-10 15:35:48: oggm.cli.prepro_levels: matplotlib: 3.1.1
2019-09-10 15:35:48: oggm.cli.prepro_levels: rasterio: 1.0.21
2019-09-10 15:35:48: oggm.cli.prepro_levels: fiona: 1.8.4
2019-09-10 15:35:48: oggm.cli.prepro_levels: osgeo.gdal: 2.3.3
2019-09-10 15:35:48: oggm.cli.prepro_levels: pyproj: 1.9.6
2019-09-10 15:35:48: oggm.cli.prepro_levels: shapely: 1.6.4.post2
2019-09-10 15:35:48: oggm.cli.prepro_levels: xarray: 0.12.3
2019-09-10 15:35:48: oggm.cli.prepro_levels: salem: 0.2.2.dev-781107a
2019-09-10 15:35:48: oggm.cli.prepro_levels: Starting prepro run for RGI reg: 11 and border: 20
2019-09-10 15:35:48: oggm.cli.prepro_levels: Number of glaciers: 4
2019-09-10 15:35:48: oggm.workflow: Execute entity task define_glacier_region on 4 glaciers
2019-09-10 15:35:49: oggm.workflow: Multiprocessing: using all available processors (N=8)
2019-09-10 15:36:23: oggm.workflow: Execute entity task glacier_statistics on 4 glaciers
2019-09-10 15:36:24: oggm.workflow: Execute entity task gdir_to_tar on 4 glaciers
2019-09-10 15:36:24: oggm.workflow: Execute entity task process_cru_data on 4 glaciers
2019-09-10 15:36:25: oggm.workflow: Multiprocessing: using all available processors (N=8)
2019-09-10 15:37:06: oggm.workflow: Execute entity task glacier_statistics on 4 glaciers
2019-09-10 15:37:06: oggm.workflow: Execute entity task gdir_to_tar on 4 glaciers
2019-09-10 15:37:06: oggm.workflow: Execute entity task glacier_masks on 4 glaciers
2019-09-10 15:37:07: oggm.workflow: Execute entity task compute_centerlines on 4 glaciers
2019-09-10 15:37:07: oggm.workflow: Execute entity task initialize_flowlines on 4 glaciers
2019-09-10 15:37:07: oggm.workflow: Execute entity task compute_downstream_line on 4 glaciers
2019-09-10 15:37:07: oggm.workflow: Execute entity task compute_downstream_bedshape on 4 glaciers
2019-09-10 15:37:08: oggm.workflow: Execute entity task catchment_area on 4 glaciers
2019-09-10 15:37:13: oggm.workflow: Execute entity task catchment_intersections on 4 glaciers
2019-09-10 15:37:14: oggm.workflow: Execute entity task catchment_width_geom on 4 glaciers
2019-09-10 15:37:16: oggm.workflow: Execute entity task catchment_width_correction on 4 glaciers
2019-09-10 15:37:17: oggm.workflow: Execute entity task local_t_star on 4 glaciers
2019-09-10 15:37:17: oggm.workflow: Execute entity task mu_star_calibration on 4 glaciers
2019-09-10 15:37:17: oggm.workflow: Execute entity task prepare_for_inversion on 4 glaciers
2019-09-10 15:37:17: oggm.workflow: Execute entity task mass_conservation_inversion on 4 glaciers
2019-09-10 15:37:18: oggm.workflow: Execute entity task filter_inversion_output on 4 glaciers
2019-09-10 15:37:18: oggm.workflow: Execute entity task glacier_statistics on 4 glaciers
2019-09-10 15:37:18: oggm.workflow: Execute entity task climate_statistics on 4 glaciers
2019-09-10 15:37:20: oggm.workflow: Execute entity task gdir_to_tar on 4 glaciers
2019-09-10 15:37:20: oggm.workflow: Execute entity task init_present_time_glacier on 4 glaciers
2019-09-10 15:37:20: oggm.workflow: Execute entity task glacier_statistics on 4 glaciers
2019-09-10 15:37:20: oggm.workflow: Execute entity task copy_to_basedir on 4 glaciers
2019-09-10 15:37:20: oggm.workflow: Execute entity task gdir_to_tar on 4 glaciers
2019-09-10 15:37:20: oggm.cli.prepro_levels: OGGM prepro_levels is done! Time needed: 00:01:32
=================================================================================================== warnings summary ===================================================================================================
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\_pytest\mark\structures.py:324
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\_pytest\mark\structures.py:324
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\_pytest\mark\structures.py:324
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\_pytest\mark\structures.py:324
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\_pytest\mark\structures.py:324
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\_pytest\mark\structures.py:324
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\_pytest\mark\structures.py:324
  C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\_pytest\mark\structures.py:324: PytestUnknownMarkWarning: Unknown pytest.mark.test_env - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
    PytestUnknownMarkWarning,

C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\_pytest\mark\structures.py:324
  C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\_pytest\mark\structures.py:324: PytestUnknownMarkWarning: Unknown pytest.mark.internet - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
    PytestUnknownMarkWarning,

C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\_pytest\mark\structures.py:324
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\_pytest\mark\structures.py:324
  C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\_pytest\mark\structures.py:324: PytestUnknownMarkWarning: Unknown pytest.mark.graphic - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
    PytestUnknownMarkWarning,

C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\_pytest\mark\structures.py:324
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\_pytest\mark\structures.py:324
  C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\_pytest\mark\structures.py:324: PytestUnknownMarkWarning: Unknown pytest.mark.mpl_image_compare - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
    PytestUnknownMarkWarning,

C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\_pytest\mark\structures.py:324
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\_pytest\mark\structures.py:324
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\_pytest\mark\structures.py:324
C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\_pytest\mark\structures.py:324
  C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\_pytest\mark\structures.py:324: PytestUnknownMarkWarning: Unknown pytest.mark.slow - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
    PytestUnknownMarkWarning,

C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\_pytest\mark\structures.py:324
  C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\_pytest\mark\structures.py:324: PytestUnknownMarkWarning: Unknown pytest.mark.download - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
    PytestUnknownMarkWarning,

C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\_pytest\mark\structures.py:324
  C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\_pytest\mark\structures.py:324: PytestUnknownMarkWarning: Unknown pytest.mark.creds - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/latest/mark.html
    PytestUnknownMarkWarning,

tests/test_graphics.py::test_ice_cap
  C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\numpy\core\fromnumeric.py:56: FutureWarning: Series.nonzero() is deprecated and will be removed in a future version.Use Series.to_numpy().nonzero() instead
    return getattr(obj, method)(*args, **kwds)

tests/test_prepro.py::TestClimate::test_find_tstars
tests/test_prepro.py::TestClimate::test_local_t_star
tests/test_prepro.py::TestClimate::test_local_t_star_fallback
tests/test_prepro.py::TestClimate::test_mu_candidates
  C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\oggm\core\climate.py:803: DeprecationWarning: The task `glacier_mu_candidates` is deprecated. It should only be used for testing.
    'only be used for testing.', DeprecationWarning)

tests/test_prepro.py::TestGCMClimate::test_process_cmip5_scale
  C:\ProgramData\Miniconda3\envs\oggm_test\lib\site-packages\xarray\core\dataarray.py:2447: FutureWarning: roll_coords will be set to False in the future. Explicitly set roll_coords to silence warning.
    shifts=shifts, roll_coords=roll_coords, **shifts_kwargs)

-- Docs: https://docs.pytest.org/en/latest/warnings.html
========================================================================= 10 failed, 150 passed, 63 skipped, 24 warnings in 1755.93s (0:29:15) =========================================================================```




@fmaussion
Copy link
Member

Hi @WFurian ! Thanks for trying OGGM!

We have stopped a while ago to test the model on Windows because of several issues. From your report I can see a couple of things going badly in OGGM (the tar:... errors are maybe something we could solve in OGGM itself, but also things likely related to python installation on windows itself.

I don't know really what to do from here - we don't really have the bandwidth to support windows anymore (and should make this clearer on the docs), but I would welcome fixes to the above mentioned problem(s).

In the meantime, you can try OGGM either on MyBinder or on our hub (if you want I can add you to our github organization, provided you give us just a little more information about who you are ;-). More infos here: https://docs.oggm.org/en/latest/cloud.html

@fmaussion fmaussion changed the title Testing OGGM leads to errors Testing OGGM leads to errors on Windows Sep 11, 2019
@Nicole1150
Copy link

I have the same problem, can you please tell me how you solved it.

@anoukvlug
Copy link
Collaborator

OGGM does not work on Windows. Depending on the purpose you would like to use OGGM for, there are different routes you could take when working on a windows machine.

  1. You could run OGGM on-line, without the need to install it. This is suitable for simulating a small number of glaciers.
  2. Or if you're using Windows 10, you could to install the free Windows subsystem for Linux and install and run OGGM from there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants