bgc_data_processing.core.loaders.netcdf_loaders
¶
NetCDF Loaders.
NetCDFLoader(provider_name, category, exclude, variables)
¶
Bases: BaseLoader
Loader class to use with NetCDF files.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
provider_name |
str
|
Data provider name. |
required |
category |
str
|
Category provider belongs to. |
required |
exclude |
list[str]
|
Filenames to exclude from loading. |
required |
variables |
SourceVariableSet
|
Storer object containing all variables to consider for this data, both the one in the data file but and the one not represented in the file. |
required |
Source code in src/bgc_data_processing/core/loaders/netcdf_loaders.py
47 48 49 50 51 52 53 54 55 56 57 58 59 |
|
load(filepath, constraints=None)
¶
Load a netCDF file from filepath.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
filepath |
Path | str
|
Path to the file to load. |
required |
constraints |
Constraints | None
|
Constraints slicer., by default None |
None
|
Returns:
Type | Description |
---|---|
DataFrame
|
DataFrame corresponding to the file. |
Source code in src/bgc_data_processing/core/loaders/netcdf_loaders.py
420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 |
|
SatelliteNetCDFLoader(provider_name, category, exclude, variables)
¶
Bases: NetCDFLoader
Loader class to use with NetCDF files related to Satellite data.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
provider_name |
str
|
Data provider name. |
required |
category |
str
|
Category provider belongs to. |
required |
exclude |
list[str]
|
Filenames to exclude from loading. |
required |
variables |
SourceVariableSet
|
Storer object containing all variables to consider for this data, both the one in the data file but and the one not represented in the file. |
required |
Source code in src/bgc_data_processing/core/loaders/netcdf_loaders.py
474 475 476 477 478 479 480 481 482 483 484 485 486 |
|