[
https://issues.apache.org/jira/browse/CLIMATE-268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13746767#comment-13746767
]
Cameron Goodale commented on CLIMATE-268:
-----------------------------------------
Mazi,
You are correct that the error I was getting wasn't related to an issue with 3D
vs. 4D value array, that was my mistake and I apologize.
I am going to make an issue to improve the error message when the Dataset class
throws an exception.
To anyone else following along at home,
After digging into the code and the NetCDF4 library with Mazi and Mike, we now
see that the 'tasmax' variables 4 dimensions are:
float tasmax(time, height, rlat, rlon)
And it turns out rlat and rlon (not latitude and longitude) are 1D arrays which
map nicely into the Dataset object's interface.
Mike, Mazi and I are working together to resolve this issue and make local.py
into a more robust module with new tests and refactoring the code. To that end
I am also increasing the estimated hours.
> local.py returns a Dataset Object with a 4-D Array for the Dataset.values
> -------------------------------------------------------------------------
>
> Key: CLIMATE-268
> URL: https://issues.apache.org/jira/browse/CLIMATE-268
> Project: Apache Open Climate Workbench
> Issue Type: Sub-task
> Components: general
> Affects Versions: 0.2-incubating
> Environment: *nix
> Reporter: Cameron Goodale
> Assignee: Cameron Goodale
> Fix For: 0.3-incubating
>
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> When loading a dataset from local.py the returned OCW Dataset object has a
> value attribute with a 4 dimensional array, when it should be 3 dimensions.
> Current Shape:
> (time, height?, lat, lon)
> Instead it should be:
> :param values: Three dimensional numpy array of parameter values with shape
> [timesLength, latsLength, lonsLength]. Per Dataset class documentation.
> The local.py code needs to be updated to ensure the values are constructed
> and passed into the Dataset constructor.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira