.. _mvmutilities: ==================================================== Utilities for Manipulating MVM Products (deprecated) ==================================================== .. toctree:: :maxdepth: 2 The `~drizzlepac.haputils.hapcut_utils` module contains utilities which are intended to be used with Multi-visit Mosaic (MVM) data and to be imported into other Python programs or a Python session for interactive data analysis. The utilities are wrappers around lower-level functionality which actually perform the core tasks. The core tasks referenced here are `astroquery `_, used for MAST inquiries and retrievals, and `astrocut `_, used to create the cutouts and cutout combinations. The `~drizzlepac.haputils.hapcut_utils` role is to customize the use of these core tasks specifically for working with MVM products which can be large and unwieldy. At this time there are four utilities which are designed to be invoked in sequence as is evident from their function signatures, return values, and output products: ``mvm_id_filenames``, ``mvm_retrieve_files``, ``make_the_cut``, and ``mvm_combine``. A brief overview of the utilities is described in this list. #. ``mvm_id_filenames``: Query MAST to identify all MVM files which overlap the specified cutout region on the sky #. ``mvm_retrieve_files``: Download all requested MVM files from MAST to the working directory #. ``make_the_cut``: Extract cutouts from all specified MVM files #. ``mvm_combine``: Create a mosaic from the specified cutouts that span multiple SkyCells and fit the qualifications MVM Cutout Utilities -------------------- mvm_id_filenames ^^^^^^^^^^^^^^^^ This utility is invoked by providing sky coordinates and a cutout box size. The sky coordinates represent the central location about which the search for data of interest is to be done. The cutout box size represents the search box *extent* encompassing the sky coordinates. The utility retrieves from MAST a table containing MVM filenames for ACS and WFC3 detectors, as well as other relevant image specific information, one row per filename. While the utility returns an astropy table object, an ascii ECSV file is also written to disk with the output filename being constructed from the query coordinates and box size parameters. The output filename is of the form:: mvm_query-ra<###>d<####>-dec<##>d<####>__cutout.ecsv The ``ra<###>d<####>`` and ``dec<##>d<####>`` are the right ascension and declination, respectively, in decimal degrees with ```` representing north or south of the celestial equator. The ```` is the computed diagonal of the cutout box which is basically the square root of the sum of the box sides squared divided by two. The in-memory table or the ascii file can be refined by the user to suit specific needs. The MVM filenames within the query file are self-descriptive. The filter-level drizzled filename is of the form:: hst_skycell-pxy____