images (class)

class images(log, dbConn, settings=False)[source]

Bases: marshallEngine.feeders.images.images

cacher for the atels image stamps

Key Arguments:
  • log – logger

  • settings – the settings dictionary

  • dbConn – the marshall database connection.

Usage:

To setup your logger, settings and database connections, please use the ``fundamentals`` package (`see tutorial here <http://fundamentals.readthedocs.io/en/latest/#tutorial>`_). 

To initiate a images object, use the following:

.. code-block:: python 

    from marshallEngine.feeders.atels import images
    cacher = images(
        log=log,
        settings=settings,
        dbConn=dbConn
    ).cache(limit=1000)  

Methods

cache([limit])

cache the image for the requested survey

cache(limit=1000)[source]

cache the image for the requested survey

Key Arguments

  • limit – limit the number of transients in the list so not to piss-off survey owners by downloading everything in one go.

Usage

from marshallEngine.feeders.panstarrs import images
cacher = images(
    log=log,
    settings=settings,
    dbConn=dbConn
).cache(limit=1000)