Skip to content

Error when collocating with multisat data #93

@lenny-frno

Description

@lenny-frno

I am validating a product that I am creating with WW3 (CARRA2). When running for some dates, in particular the daterange chosen in the script in attachment. I get a duplicate error :

model_class object populated

-----

Perform collocation with distance limit
distlim: 6
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 10/10 [00:00<00:00, 12.76it/s]
cannot reindex or align along dimension 'time' because the (pandas) index has duplicate values
! collocation_class object may be empty !

-----

Running validation...
Traceback (most recent call last):
File "/home/lehuc2580/wavy/val_PA_Hindcast/test/scripts/trigger_issue_wavy.py", line 144, in
val_dict = cco.validate_collocated_values()
File "/home/lehuc2580/.conda/envs/wavyopen/lib/python3.14/site-packages/wavy/collocation_module.py", line 775, in validate_collocated_values
times = self.vars['time']
~~~~~~~~~^^^^^^^^
TypeError: 'NoneType' object is not subscriptable
.

My quickfix was to sort the sco object and to remove duplicates, see code attached. This is not ideal since we are loosing information.
For the data used here, it is accessible on lustre: /lustre/storeB/project/fou/om/EuInterchange/WW3_hindcast/production/2021/01

trigger_issue_wavy.py

config.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions