Changeset 3423


Ignore:
Timestamp:
14/02/08 16:20:31 (12 years ago)
Author:
astephen
Message:

Improved FFI identification.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nappy/trunk/nappy/nc_interface/na_content_collector.py

    r3416 r3423  
    141141        number_of_dims = len(shape) 
    142142        self.na_dict["NIV"] = number_of_dims 
    143         # Get the FFI 
    144         self.na_dict["FFI"] = self._decideFileFormatIndex(number_of_dims) 
     143 
    145144        # Get the axes for the main variable being used 
    146145        best_var_axes = best_var.getAxisList() 
     
    185184        # from NASA Ames. In which case we'll write them back in the order they were initially read from the input file. 
    186185        (vars_for_na, aux_vars_for_na) = self._reorderVarsIfPreviouslyNA(vars_for_na, aux_vars_for_na) 
     186 
     187        # Get the FFI 
     188        self.na_dict["FFI"] = self._decideFileFormatIndex(number_of_dims, aux_vars_for_na) 
    187189        return (vars_for_na, aux_vars_for_na) 
    188190 
     
    233235 
    234236 
    235     def _decideFileFormatIndex(self, number_of_dims): 
     237    def _decideFileFormatIndex(self, number_of_dims, aux_vars_for_na): 
    236238        """ 
    237239        Based on the number of dimensions and the NASA Ames dictionary return 
Note: See TracChangeset for help on using the changeset viewer.