:py:mod:`opendrift.readers.reader_constant_2d` ============================================== .. py:module:: opendrift.readers.reader_constant_2d Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: opendrift.readers.reader_constant_2d.Reader .. py:class:: Reader(x, y, array_dict, proj4='+proj=latlong') Bases: :py:obj:`opendrift.readers.basereader.BaseReader`, :py:obj:`opendrift.readers.basereader.StructuredReader` Reader based on static 2D arrays of variables init with a map {'variable_name': array, ...} .. py:method:: get_variables(requestedVariables, time=None, x=None, y=None, z=None) Obtain a _block_ of values of the requested variables at all positions (x, y, z) closest to given time. These will be stored in :class:`opendrift.readers.interpolation.structured.ReaderBlock` and accessed from there. Arguments: variables: list of variables. time: datetime or None, time at which data are requested. x, y: float or ndarrays; coordinates of requested points. z: float or ndarray; vertical position (in meters, positive up) Returns: Dictionary keywords: variables (string) values: 2D ndarray bounding x and y.