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

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

     [ https://issues.apache.org/jira/browse/CLIMATE-489?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Joyce resolved CLIMATE-489.
-----------------------------------

    Resolution: Fixed

PR Merged.

> 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
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> 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)