intake / intake/intake-xarray

AttributeError: 'NetCDFSource' object has no attribute 'pattern'

Open
#142 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
76
Forks
36
PR merge metrics
No merged PRs in 30d

Description

I think `self.pattern` needs to be changed into `self.path_as_pattern`:

https://github.com/intake/intake-xarray/blob/d0418f787181d638629b76c2982a9a215a3697be/intake_xarray/netcdf.py#L73

I run into the issue with a simple
```
sources:
2D_const_0.25deg:
description: 2D constant variables from IFS-AMIP
driver: netcdf
args:
urlpath: "/work/bk1377/b382473/IFS_AMIP/prepIFS/OSTIA/gribscan/2D_const_0.25deg/*.grib"
xarray_kwargs:
engine: cfgrib
```
catalog.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.