예제 #1
0
파일: climIO.py 프로젝트: NCAR/PyConform
    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)
예제 #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)