open_dataset¶
open_dataset(file_path, flag='r', dataset_type='grid', compression=utils.default_compression, compression_level=None, allow_partial=False, **kwargs)
¶
Open a cfdb dataset. This uses the python package booklet for managing data in a single file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
file_path
|
Union[str, Path]
|
It must be a path to a local file location. If you want to use a tempfile, then use the name from the NamedTemporaryFile initialized class. |
required |
flag
|
str
|
Flag associated with how the file is opened according to the dbm style.
|
'r'
|
dataset_type
|
str
|
The dataset type when CREATING a new dataset. Default is
|
'grid'
|
compression
|
str
|
The compression for all chunks, set when the dataset is CREATED (an existing dataset keeps what it recorded). One of |
default_compression
|
compression_level
|
int or None
|
The compression level used by the compression algorithm. Setting this to None will use the defaults, which is currently 1 for every compression option. |
None
|
**kwargs
|
Any kwargs that can be passed to |
{}
|
Returns:
| Type | Description |
|---|---|
Dataset
|
|