nappy/nc_interface/nc_to_na.py
def constructNAFileNames(self, na_file=None):
        """
        Works out what the file names of the output NA files will be and 
        returns a list of them.
        """
        self.convert()

        file_names = []
        # create file name if not given
        if na_file == None:
            base_name = self.nc_file
            if base_name[-3:] == ".nc":
                base_name = base_name[:-3]
            na_file = base_name + ".na"

        file_counter = 1
        # Now, create some valid file names
        for this_na_dict in self.na_dict_list:
            if len(self.na_dict_list) == 1:
                suffix = ""
            else:
                suffix = "_%s" % file_counter

            # Create file name
            name_parts = na_file.split(".")    
            new_name = (".".join(name_parts[:-1])) + suffix + "." + name_parts[-1]
            file_names.append(new_name)
            file_counter += 1
	    
        return file_names

        Works out what the file names of the output NA files will be and 
        returns a list of them.
        
Works out what the file names of the output NA files will be and
returns a list of them.
Works out what the file names of the output NA files will be and returns a list of them .
def constructNAFileNames(self, na_file=None):
        self.convert()
        file_names = []
        if na_file == None:
            base_name = self.nc_file
            if base_name[-3:] == ".nc":
                base_name = base_name[:-3]
            na_file = base_name + ".na"
        file_counter = 1
        for this_na_dict in self.na_dict_list:
            if len(self.na_dict_list) == 1:
                suffix = ""
            else:
                suffix = "_%s" % file_counter
            name_parts = na_file.split(".")    
            new_name = (".".join(name_parts[:-1])) + suffix + "." + name_parts[-1]
            file_names.append(new_name)
            file_counter += 1
        return file_names
def constructNAFileNames ( self , na_file = None ) : self . convert ( ) file_names = [ ] if na_file == None : base_name = self . nc_file if base_name [ - 3 : ] == ".nc" : base_name = base_name [ : - 3 ] na_file = base_name + ".na" file_counter = 1 for this_na_dict in self . na_dict_list : if len ( self . na_dict_list ) == 1 : suffix = "" else : suffix = "_%s" % file_counter name_parts = na_file . split ( "." ) new_name = ( "." . join ( name_parts [ : - 1 ] ) ) + suffix + "." + name_parts [ - 1 ] file_names . append ( new_name ) file_counter += 1 return file_names
Works out what the file names of the output NA files will be and
returns a list of them.
Works out what the file names of the output NA files will be and returns a list of them .
"""
        Works out what the file names of the output NA files will be and 
        returns a list of them.
        """ # create file name if not given
 # Now, create some valid file names
 # Create file name

self
na_file