def __init__(self, filename, filename_info, filetype_info, hdr_info):
        """Initialize the reader."""
        super(HRITFileHandler, self).__init__(filename, filename_info,
                                              filetype_info)
        self.mda = {}
        self._get_hd(hdr_info)

        if self.mda.get('compression_flag_for_data'):
            logger.debug('Unpacking %s', filename)
            try:
                self.filename = decompress(filename, gettempdir())
            except IOError as err:
                logger.warning("Unpacking failed: %s", str(err))
            self.mda = {}
            self._get_hd(hdr_info)

        self._start_time = filename_info['start_time']
        self._end_time = self._start_time + timedelta(minutes=15)
def __init__ ( self , filename , filename_info , filetype_info , hdr_info ) : super ( HRITFileHandler , self ) . __init__ ( filename , filename_info , filetype_info ) self . mda = { } self . _get_hd ( hdr_info ) if self . mda . get ( 'compression_flag_for_data' ) : logger . debug ( 'Unpacking %s' , filename ) try : self . filename = decompress ( filename , gettempdir ( ) ) except IOError as err : logger . warning ( "Unpacking failed: %s" , str ( err ) ) self . mda = { } self . _get_hd ( hdr_info ) self . _start_time = filename_info [ 'start_time' ] self . _end_time = self . _start_time + timedelta ( minutes = 15 )
Initialize the reader.