[
https://issues.apache.org/jira/browse/CLIMATE-797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15354082#comment-15354082
]
Michael Anderson commented on CLIMATE-797:
------------------------------------------
run_RCMES.py sets ref_dataset and model_datasets with calls to spacial_regrid
which returns an OCW dataset.
run_RCMES.py then apply a mask to the dataset.
An OCW dataset has a values member variable. values: Three dimensional numpy
array of parameter values with shape [timesLength, latsLength, lonsLength].
Mask is a member variable of a numpy masked array and values is just a numpy
array.
The line producing the error is dataset.values.mask == True applied to the OCW
dataset, but rightfully so as the calling program is not passing in an object
of the expected type. I.e. values in the dataset is not a masked array.
> Attribute error in mask_missing_data
> ------------------------------------
>
> Key: CLIMATE-797
> URL: https://issues.apache.org/jira/browse/CLIMATE-797
> Project: Apache Open Climate Workbench
> Issue Type: Bug
> Reporter: Ibrahim Jarif
> Priority: Critical
>
> The *mask_missing_data* function in *dataset processor* module throws
> *AttributeError: Object does not have attribute mask* when trying to execute
> the function.
> {code}
> Line 737: def mask_missing_data(dataset_array):
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)