pypsa-meets-earth/pypsa-earth

Increase clarity of cutout mismatch messaging

Open

#1,853 opened on Jun 4, 2026

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Python (349 forks)auto 404
good first issuehelp wantedinterfaces

Repository metrics

Stars
 (351 stars)
PR merge metrics
 (PR metrics pending)

Description

Describe the feature you'd like to see

We still have check_cutout_match function which throws an error if the cutout doesn't correspond to the area of the requested countries. That is very helpful to support debugging. We have found however that it may be not obvious to understand what exactly is wrong with a cutout you provided given the need to explore nc file which require some additional skills to deal with. It could be a good idea to provide more details on specific discrepancies in the cutout provides.

The simplest solution could be add a comparison between the cutout and the country coordinates.

Contributor guide