Exemplo n.º 1
0
    def close_file(self, open_file):
        """
        Close an open NetCDF file.

        Parameters:
            open_file (NioFile): A pointer to an open NioFile object.
        """
        Nio.close(open_file)
Exemplo n.º 2
0
def close_all_files(open_list):
    '''
    Closes all of the nc files that were used to compute this portion of the averaging

    @param open_list    A list that includes the pointers to all of the open history files.
    '''
    # for each year and month that was opened, close
    for f in open_list:
        Nio.close(f)