Skip to content

Operations

Amy Boyer edited this page Aug 23, 2019 · 3 revisions

An Operation is a distinct transformation performed on a the work directory for a JobBundle. They correspond to PipelineStage objects for a given pipeline. An operation is initialized with a bundle and a list of filenames in that bundle's work directory. The process_bundle task is responsible for calling the adapter to resolve the symbolic names into actual names (translating, for example, 'red' to 'band4') and then finding the latest version of the image ('band4_stage005') and then resolving that to an absolute path. The filenames passed to an operation will all be rooted absolute paths to files that must be in the work directory.

  • GIS Operations
    • gis_operations.compute_corners: given a source image and the parameters with which it was tiled, calculate the UTM coordinates of the corners of each tile and store them in a csv file
    • gis_operations.compute_lat_lon: given a csv file, pass over the csv file and calculate latitudes and longitudes for the corner points.
  • Image Operations
    • image_operations.resize_image: resize the specified image[s] to the specified dimensions
    • image_operations.remap_image: map the specified image[s] from one color space to another using the method provided by the adapter associated with this request
    • image_operations.tile_image: build a tileset of the specified image[s] using the specified (square) dimensions and overlap
    • image_operations.compose_images: compose the specified single-channel image[s] into an RGB color image
  • Panoptes Operations
    • panoptes_operations.upload_subject: upload a given subject to Panoptes, creating a subject set if necessary
    • panoptes_operations.upload_manifest: (forthcoming)
Clone this wiki locally