Exemplo n.º 1
0
def uhs2param_final(outlets, dom_data, new_dom_data, config_dict, directories):
    """
    Make the RVIC Parameter File
    """

    log = getLogger(LOG_NAME)

    log.info('In gen_uh_final')

    # ---------------------------------------------------------------- #
    # Move to smaller domain
    if new_dom_data:
        outlets = move_domain(dom_data, new_dom_data, outlets)
        dom_data = new_dom_data
    # ---------------------------------------------------------------- #

    # ---------------------------------------------------------------- #
    # Write the parameter file
    param_file, today = finish_params(outlets, dom_data, config_dict,
                                      directories)
    # ---------------------------------------------------------------- #

    # ---------------------------------------------------------------- #
    # tar the inputs directory / log file
    inputs_tar = tar_inputs(directories['inputs'], suffix=today)
    log_tar = tar_inputs(log.filename)

    log.info('Done with RvicGenParam.')
    log.info('Location of Inputs: %s', inputs_tar)
    log.info('Location of Log: %s', log_tar)
    log.info('Location of Parmeter File %s', param_file)

    close_logger()
    # ---------------------------------------------------------------- #
    return
Exemplo n.º 2
0
def gen_uh_final(outlets, dom_data, config_dict, directories):
    """
    Make the RVIC Parameter File
    """
    log = getLogger(LOG_NAME)

    log.info('In gen_uh_final')

    # ---------------------------------------------------------------- #
    # Write the parameter file
    param_file, today = finish_params(outlets, dom_data, config_dict,
                                      directories)
    # ---------------------------------------------------------------- #

    # ---------------------------------------------------------------- #
    # tar the inputs directory / log file
    inputs_tar = tar_inputs(directories['inputs'], suffix=today)
    log_tar = tar_inputs(log.filename)

    log.info('Done with RvicGenParam.')
    log.info('Location of Inputs: %s', inputs_tar)
    log.info('Location of Log: %s', log_tar)
    log.info('Location of Parmeter File %s', param_file)

    close_logger()
    # ---------------------------------------------------------------- #
    return
Exemplo n.º 3
0
def convolution_final(time_handle, hist_tapes):
    """ Finalize RVIC Convolution"""
    # ---------------------------------------------------------------- #
    # Start log
    log = getLogger(LOG_NAME)
    log.info('Finalizing RVIC')
    # ---------------------------------------------------------------- #

    # ---------------------------------------------------------------- #
    # Write final log info
    log.info("-----------------------------------------------------------")
    log.info('Done with streamflow convolution')
    log.info('Processed %i timesteps' % time_handle.timesteps)
    for name, tape in hist_tapes.iteritems():
        log.info('Wrote %i history files from %s' % (tape.files_count, name))
    # log.info('Routed to %i points' % time_handle.points)
    log.info("-----------------------------------------------------------")
    # ---------------------------------------------------------------- #

    # ---------------------------------------------------------------- #
    # tar the inputs directory / log file
    log_tar = tar_inputs(log.filename)

    log.info('Done with rvic convolution.')
    log.info('Location of Log: %s', log_tar)

    close_logger()
    # ---------------------------------------------------------------- #
    return
Exemplo n.º 4
0
def convolution_final(time_handle, hist_tapes):
    """ Finalize RVIC Convolution"""
    # ---------------------------------------------------------------- #
    # Start log
    log = getLogger(LOG_NAME)
    log.info('Finalizing RVIC')
    # ---------------------------------------------------------------- #

    # ---------------------------------------------------------------- #
    # Write final log info
    log.info("-----------------------------------------------------------")
    log.info('Done with streamflow convolution')
    log.info('Processed %i timesteps' % time_handle.timesteps)
    for name, tape in hist_tapes.iteritems():
        log.info('Wrote %i history files from %s' % (tape.files_count, name))
    # log.info('Routed to %i points' % time_handle.points)
    log.info("-----------------------------------------------------------")
    # ---------------------------------------------------------------- #

    # ---------------------------------------------------------------- #
    # tar the inputs directory / log file
    log_tar = tar_inputs(log.filename)

    log.info('Done with rvic convolution.')
    log.info('Location of Log: %s', log_tar)

    close_logger()
    # ---------------------------------------------------------------- #
    return