def coordinates_to_array(<EOL>log,<EOL>ra,<EOL>dec):
log.info('<STR_LIT>')<EOL>if isinstance(ra, np.ndarray) and isinstance(dec, np.ndarray):<EOL><INDENT>return ra, dec<EOL><DEDENT>converter = unit_conversion(<EOL>log=log<EOL>)<EOL>if isinstance(ra, float):<EOL><INDENT>pass<EOL><DEDENT>elif isinstance(ra, str):<EOL><INDENT>try:<EOL><INDENT>ra = float(ra)<EOL><DEDENT>except:<EOL><INDENT>ra = converter.ra_sexegesimal_to_decimal(ra=ra)<EOL><DEDENT><DEDENT>elif isinstance(ra, list):<EOL><INDENT>try:<EOL><INDENT>ra = np.array(ra).astype(np.float)<EOL><DEDENT>except:<EOL><INDENT>raList = []<EOL>raList[:] = [converter.ra_sexegesimal_to_decimal(ra=r) for r in ra]<EOL>ra = raList<EOL><DEDENT><DEDENT>if isinstance(dec, float):<EOL><INDENT>pass<EOL><DEDENT>elif isinstance(dec, str):<EOL><INDENT>try:<EOL><INDENT>dec = float(dec)<EOL><DEDENT>except:<EOL><INDENT>dec = converter.dec_sexegesimal_to_decimal(dec=dec)<EOL><DEDENT><DEDENT>elif isinstance(dec, list):<EOL><INDENT>try:<EOL><INDENT>dec = np.array(dec).astype(np.float)<EOL><DEDENT>except:<EOL><INDENT>decList = []<EOL>decList[:] = [<EOL>converter.dec_sexegesimal_to_decimal(dec=d) for d in dec]<EOL>dec = decList<EOL><DEDENT><DEDENT>raArray = np.array(ra, dtype='<STR_LIT>', ndmin=<NUM_LIT:1>, copy=False)<EOL>decArray = np.array(dec, dtype='<STR_LIT>', ndmin=<NUM_LIT:1>, copy=False)<EOL>log.info('<STR_LIT>')<EOL>return raArray, decArray<EOL>
*Convert a single value RA, DEC or list of RA and DEC to numpy arrays*

    **Key Arguments:**
        - ``ra`` -- list, numpy array or single ra value
        - ``dec`` --list, numpy array or single dec value
        - ``log`` -- logger

    **Return:**
        - ``raArray`` -- input RAs as a numpy array of decimal degree values
        - ``decArray`` -- input DECs as a numpy array of decimal degree values

    **Usage:**
        .. todo::

            add usage info
            create a sublime snippet for usage

        .. code-block:: python

            ra, dec = coordinates_to_array(
                log=log,
                ra=ra,
                dec=dec
            )