Skip to content

crash in evaluation due to channel ordering #1065

@iluise

Description

@iluise

What happened?

one of the applications reported this issue for SEVIRI in the evaluation package (calc_scores_per_stream)

xxxx/src/weathergen/evaluate/utils.py", line 145, in calc_scores_per_stream
    metric_stream.loc[
...

IndexError: dimension coordinate 'channel' conflicts between indexed and indexing objects:
<xarray.DataArray 'channel' (channel: 11)> Size: 924B
array(['obsvalue_rawbt_vis006', 'obsvalue_rawbt_vis008',
       'obsvalue_rawbt_ir_016', 'obsvalue_rawbt_ir_039',
       'obsvalue_rawbt_wv_062', 'obsvalue_rawbt_wv_073',
       'obsvalue_rawbt_ir_087', 'obsvalue_rawbt_ir_097',
       'obsvalue_rawbt_ir_108', 'obsvalue_rawbt_ir_120',
       'obsvalue_rawbt_ir_134'], dtype='<U21')
Coordinates:
    stream         <U6 24B 'SEVIRI'
    forecast_step  int64 8B 1
  * channel        (channel) <U21 924B 'obsvalue_rawbt_vis006' ... 'obsvalue_...
vs.
<xarray.IndexVariable 'channel' (channel: 11)> Size: 924B
array(['obsvalue_rawbt_ir_016', 'obsvalue_rawbt_ir_039',
       'obsvalue_rawbt_ir_087', 'obsvalue_rawbt_ir_097',
       'obsvalue_rawbt_ir_108', 'obsvalue_rawbt_ir_120',
       'obsvalue_rawbt_ir_134', 'obsvalue_rawbt_vis006',
       'obsvalue_rawbt_vis008', 'obsvalue_rawbt_wv_062',
       'obsvalue_rawbt_wv_073'], dtype='<U21')

What are the steps to reproduce the bug?

run evaluation on SEVIRI

Version

develop - t7tdo54f

Platform (OS and architecture)

JSC

Relevant log output

Accompanying data

No response

Organisation

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions