You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@climate.apache.org by "Cameron Goodale (JIRA)" <ji...@apache.org> on 2014/07/08 00:17:34 UTC

[jira] [Created] (CLIMATE-489) Improve dataset_processor.subset()'s ValueError Message

Cameron Goodale created CLIMATE-489:
---------------------------------------

             Summary: Improve dataset_processor.subset()'s ValueError Message
                 Key: CLIMATE-489
                 URL: https://issues.apache.org/jira/browse/CLIMATE-489
             Project: Apache Open Climate Workbench
          Issue Type: Improvement
          Components: regridding/data processing
    Affects Versions: 0.3-incubating
         Environment: *nix
            Reporter: Cameron Goodale
            Assignee: Cameron Goodale
            Priority: Minor
             Fix For: 0.4


While developing the Model Ensemble example I encountered two datasets that don't align perfectly.  So when I tried to use the extent of one dataset to subset the other I was greeted with this error message:

{code}
ValueError: dataset_processor.subset received a subregion that is not completely within the bounds of the target dataset.
{code}

The trouble I then ran into is how to track down which of the 6 subsetting attributes did not align.

Plan of attack:
----
Update _are_bounds_contained_by_dataset to raise an error when any of the 6 comparisons are found to be invalid, and include a message relaying what attribute(s) are in error.

Use this new error message to finally raise the error to the end user so they can adjust the bounds accordingly.




--
This message was sent by Atlassian JIRA
(v6.2#6252)