-
Notifications
You must be signed in to change notification settings - Fork 174
Open
Description
Describe the bug
CLI process_climate_indices --index all fails on palmers.
To Reproduce
Steps to reproduce the behavior:
pip install climate_indicesgit clone https://github.com/monocongo/example_climate_indicescd example_climate_indices/exampleprocess_climate_indices --index pnp --periodicity monthly --scales 3 6 --netcdf_precip ./input/nclimdiv.nc --netcdf_temp ./input/nclimdiv.nc --netcdf_awc ./input/nclimdiv.nc --output_file_base ./output/nclimdiv --var_name_precip prcp --var_name_temp tavg --var_name_awc awc --calibration_start_year 1951 --calibration_end_year 2010- Get
ValueError: Unsupported index: palmers
Expected behavior
This should compute ALL the indices.
Desktop (please complete the following information):
- OS: Ubuntu 20.04.6 LTS
Additional context
Also,
- forcing to update scipy to 1.13.1 does not break anything.
- The commad in 4 comes from 1st example in docs
- Paths in CLI examples with
example_climate_indicesshould be updated/data/*is an absolute path and there is no folder/data/in the example repo.
Traceback (most recent call last):
File "/home/matveyd/miniforge3/envs/labs/lib/python3.11/site-packages/climate_indices/__main__.py", line 1776, in process_climate_indices
_compute_write_index(kwrgs)
File "/home/matveyd/miniforge3/envs/labs/lib/python3.11/site-packages/climate_indices/__main__.py", line 864, in _compute_write_index
_parallel_process(
File "/home/matveyd/miniforge3/envs/labs/lib/python3.11/site-packages/climate_indices/__main__.py", line 1250, in _parallel_process
raise ValueError("Unsupported index: {index}".format(index=index))
ValueError: Unsupported index: palmers
Seems like palmers is not added as a case in _parallel_process. Is this intended behavior?
Metadata
Metadata
Assignees
Labels
No labels