Skip to content

IndexError: index 11 is out of bounds for axis 0 with size 0 from PMP #339

Open
@minxu74

Description

@minxu74

Latest main with HPCExecutor. All three failed cases are due to the index error.

Traceback (most recent call last): │
│ File "/pscratch/sd/m/minxu/wk_ref3/config/software/conda/pmp-09fc79daa7e05ca0dfac8feba9246e4bb5045381/bin/pcmdi_compute_climatologies.py", line 91, in │
│ calculate_climatology( │
│ File "/pscratch/sd/m/minxu/wk_ref3/config/software/conda/pmp-09fc79daa7e05ca0dfac8feba9246e4bb5045381/lib/python3.10/site-packages/pcmdi_metrics/mean_climate/lib/calculate_climatology.py", line 66, in calculate_climatology │
│ d.time.dt.days_in_month.sel(time=(d.time.dt.year == end_yr)) │
│ File "/pscratch/sd/m/minxu/wk_ref3/config/software/conda/pmp-09fc79daa7e05ca0dfac8feba9246e4bb5045381/lib/python3.10/site-packages/xarray/core/dataarray.py", line 905, in getitem
│ return self.isel(indexers=self._item_key_to_dict(key)) │
│ File "/pscratch/sd/m/minxu/wk_ref3/config/software/conda/pmp-09fc79daa7e05ca0dfac8feba9246e4bb5045381/lib/python3.10/site-packages/xarray/core/dataarray.py", line 1547, in isel │
│ variable = self._variable.isel(indexers, missing_dims=missing_dims) │
│ File "/pscratch/sd/m/minxu/wk_ref3/config/software/conda/pmp-09fc79daa7e05ca0dfac8feba9246e4bb5045381/lib/python3.10/site-packages/xarray/core/variable.py", line 1031, in isel │
│ return self │
│ File "/pscratch/sd/m/minxu/wk_ref3/config/software/conda/pmp-09fc79daa7e05ca0dfac8feba9246e4bb5045381/lib/python3.10/site-packages/xarray/core/variable.py", line 777, in getitem
│ data = indexing.apply_indexer(indexable, indexer) │
│ File "/pscratch/sd/m/minxu/wk_ref3/config/software/conda/pmp-09fc79daa7e05ca0dfac8feba9246e4bb5045381/lib/python3.10/site-packages/xarray/core/indexing.py", line 1030, in apply_indexer │
│ return indexable │
│ File "/pscratch/sd/m/minxu/wk_ref3/config/software/conda/pmp-09fc79daa7e05ca0dfac8feba9246e4bb5045381/lib/python3.10/site-packages/xarray/core/indexing.py", line 1556, in getitem
│ return array │
│ IndexError: index 11 is out of bounds for axis 0 with size 0

 11   cmip6_piControl_gn_r1i1p1f1_ACCESS-ESM1-5_rlut__pmp-climatology_CERES-EBAF-4-2_rlut    pmp        annual-cycle                              True    False        2025-05-27 17:53:52   2025-05-27 17:53:52  
  12   cmip6_historical_gn_r1i1p1f1_ACCESS-ESM1-5_rsdt__pmp-climatology_CERES-EBAF-4-2_rsdt   pmp        annual-cycle                              False   True         2025-05-27 17:53:52   2025-05-27 18:01:35  
  13   cmip6_piControl_gn_r1i1p1f1_ACCESS-ESM1-5_rsdt__pmp-climatology_CERES-EBAF-4-2_rsdt    pmp        annual-cycle                              True    False        2025-05-27 17:53:52   2025-05-27 17:53:52  
  14   cmip6_historical_gn_r1i1p1f1_ACCESS-ESM1-5_rsut__pmp-climatology_CERES-EBAF-4-2_rsut   pmp        annual-cycle                              False   True         2025-05-27 17:53:52   2025-05-27 18:02:52  
  15   cmip6_piControl_gn_r1i1p1f1_ACCESS-ESM1-5_rsut__pmp-climatology_CERES-EBAF-4-2_rsut    pmp        annual-cycle                              True    False        2025-05-27 17:53:52   2025-05-27 17:53:52  

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions