def read_lcc_csvlc(lcfile):
<EOL>if '<STR_LIT>' in os.path.basename(lcfile):<EOL><INDENT>infd = gzip.open(lcfile,'<STR_LIT:rb>')<EOL><DEDENT>else:<EOL><INDENT>infd = open(lcfile,'<STR_LIT:rb>')<EOL><DEDENT>lctext = infd.read().decode()<EOL>infd.close()<EOL>lctextlines = lctext.split('<STR_LIT:\n>')<EOL>lcformat = lctextlines[<NUM_LIT:0>]<EOL>commentchar = lctextlines[<NUM_LIT:1>]<EOL>lcstart = lctextlines.index('<STR_LIT>' % commentchar)<EOL>headerlines = lctextlines[:lcstart+<NUM_LIT:1>]<EOL>lclines = lctextlines[lcstart+<NUM_LIT:1>:]<EOL>metadata, columns, separator = _parse_csv_header_lcc_csv_v1(headerlines)<EOL>objectid = metadata['<STR_LIT>']['<STR_LIT>']<EOL>objectinfo = {key:metadata[key]['<STR_LIT>'] for key in metadata}<EOL>colnames = []<EOL>colnum = []<EOL>coldtypes = []<EOL>for k in columns:<EOL><INDENT>coldef = columns[k]<EOL>colnames.append(k)<EOL>colnum.append(coldef['<STR_LIT>'])<EOL>coldtypes.append(coldef['<STR_LIT>'])<EOL><DEDENT>coldtypes = '<STR_LIT:U+002C>'.join(coldtypes)<EOL>recarr = np.genfromtxt(<EOL>lclines,<EOL>comments=commentchar,<EOL>delimiter=separator,<EOL>usecols=colnum,<EOL>autostrip=True,<EOL>names=colnames,<EOL>dtype=coldtypes<EOL>)<EOL>lcdict = {x:recarr[x] for x in colnames}<EOL>lcdict['<STR_LIT>'] = lcformat<EOL>lcdict['<STR_LIT>'] = objectid<EOL>lcdict['<STR_LIT>'] = objectinfo<EOL>lcdict['<STR_LIT>'] = colnames<EOL>lcdict['<STR_LIT>'] = columns<EOL>lcdict['<STR_LIT>'] = metadata<EOL>return lcdict<EOL>
This reads a CSV LC produced by an `LCC-Server
    <https://github.com/waqasbhatti/lcc-server>`_ instance.

    Parameters
    ----------

    lcfile : str
        The LC file to read.

    Returns
    -------

    dict
        Returns an lcdict that's readable by most astrobase functions for
        further processing.