Loading environmental data

kadlu.load(source, var, **kwargs)[source]

automated fetching and loading from web sources

args
source: string

view the list of available sources and variables with print(kadlu.source_map)

var: string

view the list of available sources and variables with print(kadlu.source_map)

kwargs: dictionary

dict containing boundary coordinates. example: kwargs=dict(south=44.25, west=-64.5, north=44.70, east=-63.33, top=0, bottom=5000, start=datetime(2015, 3, 1), end=datetime(2015, 3, 1, 12))

returns: np.ndarray

numpy arrays containing data ordered by val, lat, lon, [time, depth]. times are in epoch format

kadlu.load_file(filepath, **kwargs)[source]

loading from local files. currently supports geotiff raster formats as well as certain netcdf databases

args
filepath: string

full path directory and filename of data to load

kwargs: dictionary

dict containing coordinate bounds, e.g. north, south, east, west, top, bottom, start, end note that times are in datetime format

returns an ND numpy array. arrays ordered by:

val, lat, lon, [time, depth] times are in epoch format

data fetching utils, function maps, and constant variables collection of objects