Skip to content

climate._target_region incorrectly extracts misaligned column #278

@shimon-sato

Description

@shimon-sato

There seems to be a problem with the climate.target_region function which incorrectly extracts one column to the right of the intended one.
https://github.com/mathurinm/celer/blob/main/celer/datasets/climate.py#L60-L72

The pos_Lx value range is supposed to be 0~143, but it is 0~144.
For example, if Lx is 359, pos_Lx will be 144.

Shouldn't we use np.floor insted of np.ceil?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions