old_contents: #retriever
  
  """Retriever script for direct download of Bioclim data"""
  
  from retriever.lib.templates import Script
  
  
  class main(Script):
      def __init__(self, **kwargs):
          Script.__init__(self, **kwargs)
          self.name = "Bioclim 2.5 Minute Climate Data"
          self.shortname = "Bioclim"
          self.ref = "http://worldclim.org/bioclim"
          self.urls = {"climate": "http://biogeo.ucdavis.edu/data/climate/worldclim/1_4/grid/cur/bio_2-5m_bil.zip"}
          self.description = "Bioclimatic variables that are derived from the monthly temperature and rainfall values in order to generate more biologically meaningful variables."
          self.citation = "Hijmans, R.J., S.E. Cameron, J.L. Parra, P.G. Jones and A. Jarvis, 2005. Very high resolution interpolated climate surfaces for global land areas. International Journal of Climatology 25: 1965-1978."
          self.tags = ["Data Type > Compilation"]
          
      def download(self, engine=None, debug=False):
          if engine.name != "Download Only":
              raise Exception("The Bioclim dataset contains only non-tabular data files, and can only be used with the 'download only' engine.")
          Script.download(self, engine, debug)
          file_names = ["bio%s.bil" % file_num for file_num in range(1, 20)]
          self.engine.download_files_from_archive(self.urls["climate"], file_names)
          self.engine.register_files(file_names)
  
  SCRIPT = main()
  
new_contents: #retriever
  
  """Retriever script for direct download of Bioclim data"""
  
  from retriever.lib.templates import Script
  
  
  class main(Script):
      def __init__(self, **kwargs):
          Script.__init__(self, **kwargs)
          self.name = "Bioclim 2.5 Minute Climate Data"
          self.shortname = "Bioclim"
          self.ref = "http://worldclim.org/bioclim"
          self.urls = {"climate": "http://biogeo.ucdavis.edu/data/climate/worldclim/1_4/grid/cur/bio_2-5m_bil.zip"}
          self.description = "Bioclimatic variables that are derived from the monthly temperature and rainfall values in order to generate more biologically meaningful variables."
          self.citation = "Hijmans, R.J., S.E. Cameron, J.L. Parra, P.G. Jones and A. Jarvis, 2005. Very high resolution interpolated climate surfaces for global land areas. International Journal of Climatology 25: 1965-1978."
          self.tags = ["Data Type > Compilation"]
          
      def download(self, engine=None, debug=False):
          if engine.name != "Download Only":
              raise Exception("The Bioclim dataset contains only non-tabular data files, and can only be used with the 'download only' engine.")
          Script.download(self, engine, debug)
          file_names = []
          for file_num in range(1, 20):
              for ext in (['bil', 'hdr']):
                  file_names += ["bio{0}.{1}".format(file_num, ext)]
          self.engine.download_files_from_archive(self.urls["climate"], file_names)
          self.engine.register_files(file_names)
  
  SCRIPT = main()
  
  
subject: add Bioclim missing hdr files. fixes #380