omfit-omas-d3d 2020.12.2.22.59
omfit_omas_d3d
Requires Python: >=3.6

**OMAS_D3D** files used as part of the OMFIT project: https://omfit.io/

Provides:
=========
* setup_gas_injection_hardware_description_d3d
* setup_pf_active_hardware_description_d3d
* setup_interferometer_hardware_description_d3d
* find_thomson_lens_d3d
* setup_thomson_scattering_hardware_description_d3d
* setup_charge_exchange_hardware_description_d3d
* setup_bolometer_hardware_description_d3d
* setup_langmuir_probes_hardware_description_d3d

Requires:
=========
* numpy>=1.12
* scipy>=1.0
* uncertainties>=3
* xarray>=0.10.8
* omfit_mds==2020.12.2.22.59
* omfit_data==2020.12.2.22.59
* omfit_commonclasses==2020.12.2.22.59

Authors:
=========
https://omfit.io/contributors.html

Documentation:
==============
setup_gas_injection_hardware_description_d3d
--------------------------------------------

    Sets up DIII-D gas injector data.

    R and Z are from the tips of the arrows in puff_loc.pro; phi from angle listed in labels in puff_loc.pro .
    I recorded the directions of the arrows on the EFITviewer overlay, but I don't know how to include them in IMAS, so
    I commented them out.

    Warning: changes to gas injector configuration with time are not yet included. This is just the best picture I could
    make of the 2018 configuration.

    Data sources:
    EFITVIEWER: iris:/fusion/usc/src/idl/efitview/diagnoses/DIII-D/puff_loc.pro accessed 2018 June 05, revised 20090317
    DIII-D webpage: https://diii-d.gat.com/diii-d/Gas_Schematic accessed 2018 June 05
    DIII-D wegpage: https://diii-d.gat.com/diii-d/Gas_PuffLocations accessed 2018 June 05

    Updated 2018 June 05 by David Eldon

    :return: dict
        Information or instructions for follow up in central hardware description setup
    

setup_pf_active_hardware_description_d3d
----------------------------------------

    Adds DIII-D tokamak poloidal field coil hardware geometry to ODS
    :param ods: ODS instance

    :param \*args: catch unused args to allow a consistent call signature for hardware description functions

    :return: dict
        Information or instructions for follow up in central hardware description setup
    

setup_interferometer_hardware_description_d3d
---------------------------------------------

    Writes DIII-D CO2 interferometer chord locations into ODS.

    The chord endpoints ARE NOT RIGHT. Only the R for vertical lines or Z for horizontal lines is right.

    Data sources:
    DIII-D webpage: https://diii-d.gat.com/diii-d/Mci accessed 2018 June 07  D. Eldon

    :param ods: an OMAS ODS instance

    :param shot: int

    :return: dict
        Information or instructions for follow up in central hardware description setup
    

find_thomson_lens_d3d
---------------------
Read the Thomson scattering hardware map to figure out which lens each chord looks through

setup_thomson_scattering_hardware_description_d3d
-------------------------------------------------

    Gathers DIII-D Thomson measurement locations from MDSplus and loads them into OMAS

    :param revision: string
        Thomson scattering data revision, like 'BLESSED', 'REVISIONS.REVISION00', etc.

    :return: dict
        Information or instructions for follow up in central hardware description setup
    

setup_charge_exchange_hardware_description_d3d
----------------------------------------------

    Gathers DIII-D CER measurement locations from MDSplus and loads them into OMAS

    :param analysis_type: string
        CER analysis quality level like CERQUICK, CERAUTO, or CERFIT.  CERQUICK is probably fine.

    :return: dict
        Information or instructions for follow up in central hardware description setup
    

setup_bolometer_hardware_description_d3d
----------------------------------------

    Load DIII-D bolometer chord locations into the ODS

    Data sources:
    - iris:/fusion/usc/src/idl/efitview/diagnoses/DIII-D/bolometerpaths.pro
    - OMFIT-source/modules/_PCS_prad_control/SETTINGS/PHYSICS/reference/DIII-D/bolometer_geo , access 2018June11 Eldon

    :return: dict
        Information or instructions for follow up in central hardware description setup
    

setup_langmuir_probes_hardware_description_d3d
----------------------------------------------

    Load DIII-D Langmuir probe locations into an ODS

    :param ods: ODS instance

    :param shot: int

    :return: dict
        Information or instructions for follow up in central hardware description setup