def load_ds_ids_from_config(self):
        """Convert config dataset entries to DatasetIDs

        Special handling is done to provide level specific datasets
        for any pressured based datasets. For example, a dataset is
        added for each pressure level of 'Temperature' with each
        new dataset being named 'Temperature_Xmb' where X is the
        pressure level.
        """
        super(NUCAPSReader, self).load_ds_ids_from_config()
        for ds_id in list(self.ids.keys()):
            ds_info = self.ids[ds_id]
            if ds_info.get('pressure_based', False):
                for idx, lvl_num in enumerate(ALL_PRESSURE_LEVELS):
                    if lvl_num < 5.0:
                        suffix = "_{:0.03f}mb".format(lvl_num)
                    else:
                        suffix = "_{:0.0f}mb".format(lvl_num)

                    new_info = ds_info.copy()
                    new_info['pressure_level'] = lvl_num
                    new_info['pressure_index'] = idx
                    new_info['file_key'] = '{}'.format(ds_id.name)
                    new_info['name'] = ds_id.name + suffix
                    new_ds_id = ds_id._replace(name=new_info['name'])
                    new_info['id'] = new_ds_id
                    self.ids[new_ds_id] = new_info
                    self.pressure_dataset_names[ds_id.name].append(new_info['name'])
def load_ds_ids_from_config ( self ) : super ( NUCAPSReader , self ) . load_ds_ids_from_config ( ) for ds_id in list ( self . ids . keys ( ) ) : ds_info = self . ids [ ds_id ] if ds_info . get ( 'pressure_based' , False ) : for idx , lvl_num in enumerate ( ALL_PRESSURE_LEVELS ) : if lvl_num < 5.0 : suffix = "_{:0.03f}mb" . format ( lvl_num ) else : suffix = "_{:0.0f}mb" . format ( lvl_num ) new_info = ds_info . copy ( ) new_info [ 'pressure_level' ] = lvl_num new_info [ 'pressure_index' ] = idx new_info [ 'file_key' ] = '{}' . format ( ds_id . name ) new_info [ 'name' ] = ds_id . name + suffix new_ds_id = ds_id . _replace ( name = new_info [ 'name' ] ) new_info [ 'id' ] = new_ds_id self . ids [ new_ds_id ] = new_info self . pressure_dataset_names [ ds_id . name ] . append ( new_info [ 'name' ] )
Convert config dataset entries to DatasetIDs

        Special handling is done to provide level specific datasets
        for any pressured based datasets. For example, a dataset is
        added for each pressure level of 'Temperature' with each
        new dataset being named 'Temperature_Xmb' where X is the
        pressure level.