Package dap :: Package plugins :: Module lib
[hide private]
[frames] | no frames]

Module lib

source code

Plugins for accessing data formats.

This module contains plugins for accessing different data formats, together with functions to locate and load the proper handlers.

Functions [hide private]
  loadplugins()
Load all available plugins.
  loadhandler(file_, environ=None, plugins=None)
Load a handler for a given file.

Imports: os, re, pkg_resources.iter_entry_points, exceptions.ExtensionNotSupportedError


Function Details [hide private]

loadplugins()

source code 

Load all available plugins.

This function returns a list of all available plugins as modules.

loadhandler(file_, environ=None, plugins=None)

source code 

Load a handler for a given file.

This function returns a Handler object able to process a given data file. Eg:
>>> H = loadhandler('file.nc')  # load a netCDF file
>>> dataset = H._parsecontraints()
This will load the full (unconstrained) dataset to ``dataset``.