Skip to content

canopy.imk-ifu.kit.edu example data missing on purpose?

Would be nice if the https://canopy.imk-ifu.kit.edu examples would work with the data provided by canopy-tools. Are those data (e.g. example_data/ssp1A/agpp.out.gz) missing on purpose, e.g. because they are too big?

$ python static_plot_ssp1_ssp3.py
Traceback (most recent call last):
  File "/Users/anthoni-p/py-Scripts/canopy_test/examples/static_plot_ssp1_ssp3.py", line 6, in <module>
    agpp1 = cp.Field.from_file('example_data/ssp1A/agpp.out.gz', preprocess=rs)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
  File "/opt/homebrew/Caskroom/miniforge/base/lib/python3.12/gzip.py", line 201, in __init__
    fileobj = self.myfileobj = builtins.open(filename, mode or 'rb')
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'example_data/ssp1A/agpp.out.gz'

My canopy-tools currently only has these:

cd /opt/homebrew/Caskroom/miniforge/base
$ find . -name '*.out.gz'
./pkgs/canopy-tools-0.5.1-pyhd8ed1ab_0/site-packages/canopy/tests/test_data/aaet_global_sites.out.gz
./pkgs/canopy-tools-0.5.1-pyhd8ed1ab_0/site-packages/canopy/tests/test_data/anpp_spain_1990_2010.out.gz
./pkgs/canopy-tools-0.5.1-pyhd8ed1ab_0/site-packages/canopy/tests/test_data/anpp_spain_1990_2010_mod.out.gz
./lib/python3.12/site-packages/canopy/tests/test_data/aaet_global_sites.out.gz
./lib/python3.12/site-packages/canopy/tests/test_data/anpp_spain_1990_2010.out.gz
./lib/python3.12/site-packages/canopy/tests/test_data/anpp_spain_1990_2010_mod.out.gz