docs: def main(self):
          """
          Convert a NOAA text file into a lipds file.
          CSV files will be created if chronology or data sections are available.
          :return dict: Metadata Dictionary
          """
          logger_noaa_lpd.info("enter main")
          # Run the file through the parser
          # Sets self.metadata, Creates CSVs in dir_tmp
          os.chdir(self.dir_tmp)
          os.mkdir("bag")
          os.chdir(self.dir_root)
          self.__parse()
          os.chdir(self.dir_bag)
          # Dump Metadata JSON to dir_tmp
          write_json_to_file(self.metadata)
          # Create a bagit bag
          finish_bag(self.dir_bag)
          logger_noaa_lpd.info("exit main")
          return