climate-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLIMATE-799) TypeError in subset function
Date Mon, 13 Jun 2016 19:05:30 GMT

    [ https://issues.apache.org/jira/browse/CLIMATE-799?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15327953#comment-15327953
] 

ASF GitHub Bot commented on CLIMATE-799:
----------------------------------------

Github user lewismc commented on the issue:

    https://github.com/apache/climate/pull/346
  
    +1 please merge to master branch


> TypeError in subset function
> ----------------------------
>
>                 Key: CLIMATE-799
>                 URL: https://issues.apache.org/jira/browse/CLIMATE-799
>             Project: Apache Open Climate Workbench
>          Issue Type: Bug
>            Reporter: Ibrahim Jarif
>            Assignee: Ibrahim Jarif
>            Priority: Critical
>
> *Subset* function line 356
> {code}
>     355     if target_dataset.lats.ndim ==2 and target_dataset.lons.ndim ==2:
> --> 356         target_dataset = temporal_slice(subregion.start, subregion.end, target_dataset)
>     357         nt, ny, nx = target_dataset.values.shape
>     358         y_index, x_index = np.where((target_dataset.lats >= subregion.lat_max)
| (target_dataset.lats <= subregion.lat_min) |
> {code}
> *temporal_slice* expects indices of the time in *target_dataset.times* array. The actual
datetime objects are being passed in this case.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message