nappy/nc_interface/nc_to_na.py
def _updateWithColumnHeaders(self, na_dict, delimiter):
        """
        Updates the NCOM and NCOML parts of the na_dict so that 
        the last normal comments line is in fact a set of headers 
        for the data section. E.g.:

           UTs     Spd  Direc
           30446.9 305  2592
           20447.9 204  2596

        The 'delimiter' argument is used to separate out the arguments.

        This option is only compatible with a limited range of FFIs and
        only works if there are no Auxiliary variables defined.
        """
        ffi = na_dict["FFI"]
        compatible_ffis = (1001, 1010, 2110)

        if ffi not in compatible_ffis or na_dict["NAUXV"] > 0:
            log.debug("Column Headers are not written for FFIs other than: %s" % str(compatible_ffis))
            return

        if ffi in (1001, 2110):
            col_names = [na_dict["XNAME"][0]]
        elif ffi in (1010,):
            col_names = []

        col_names.extend(na_dict["VNAME"])
        col_names_line = ",".join(col_names)
        na_dict["NCOM"].append(col_names_line) 
        na_dict["NNCOML"] = len(na_dict["NCOM"])
        return

        Updates the NCOM and NCOML parts of the na_dict so that 
        the last normal comments line is in fact a set of headers 
        for the data section. E.g.:

           UTs     Spd  Direc
           30446.9 305  2592
           20447.9 204  2596

        The 'delimiter' argument is used to separate out the arguments.

        This option is only compatible with a limited range of FFIs and
        only works if there are no Auxiliary variables defined.
        
Updates the NCOM and NCOML parts of the na_dict so that
the last normal comments line is in fact a set of headers
for the data section.



The 'delimiter' argument is used to separate out the arguments.

This option is only compatible with a limited range of FFIs and
only works if there are no Auxiliary variables defined.
Updates the NCOM and NCOML parts of the na_dict so that the last normal comments line is in fact a set of headers for the data section . The ' delimiter ' argument is used to separate out the arguments . This option is only compatible with a limited range of FFIs and only works if there are no Auxiliary variables defined .
def _updateWithColumnHeaders(self, na_dict, delimiter):
        ffi = na_dict["FFI"]
        compatible_ffis = (1001, 1010, 2110)
        if ffi not in compatible_ffis or na_dict["NAUXV"] > 0:
            log.debug("Column Headers are not written for FFIs other than: %s" % str(compatible_ffis))
            return
        if ffi in (1001, 2110):
            col_names = [na_dict["XNAME"][0]]
        elif ffi in (1010,):
            col_names = []
        col_names.extend(na_dict["VNAME"])
        col_names_line = ",".join(col_names)
        na_dict["NCOM"].append(col_names_line) 
        na_dict["NNCOML"] = len(na_dict["NCOM"])
        return
def _updateWithColumnHeaders ( self , na_dict , delimiter ) : ffi = na_dict [ "FFI" ] compatible_ffis = ( 1001 , 1010 , 2110 ) if ffi not in compatible_ffis or na_dict [ "NAUXV" ] > 0 : log . debug ( "Column Headers are not written for FFIs other than: %s" % str ( compatible_ffis ) ) return if ffi in ( 1001 , 2110 ) : col_names = [ na_dict [ "XNAME" ] [ 0 ] ] elif ffi in ( 1010 , ) : col_names = [ ] col_names . extend ( na_dict [ "VNAME" ] ) col_names_line = "," . join ( col_names ) na_dict [ "NCOM" ] . append ( col_names_line ) na_dict [ "NNCOML" ] = len ( na_dict [ "NCOM" ] ) return
Updates the NCOM and NCOML parts of the na_dict so that
the last normal comments line is in fact a set of headers
for the data section.
Updates the NCOM and NCOML parts of the na_dict so that the last normal comments line is in fact a set of headers for the data section .
"""
        Updates the NCOM and NCOML parts of the na_dict so that 
        the last normal comments line is in fact a set of headers 
        for the data section. E.g.:

           UTs     Spd  Direc
           30446.9 305  2592
           20447.9 204  2596

        The 'delimiter' argument is used to separate out the arguments.

        This option is only compatible with a limited range of FFIs and
        only works if there are no Auxiliary variables defined.
        """
self
na_dict
delimiter