@@ -0,0 +1,1920 @@
+#retriever%0A%0A%22%22%22Retriever script for direct download of data data%22%22%22%0Afrom retriever.lib.models import Table, Cleanup, correct_invalid_value%0Afrom retriever.lib.templates import Script%0A%0A%0Aclass main(Script):%0A    def __init__(self, **kwargs):%0A        Script.__init__(self, **kwargs)%0A        self.name = %22BAAD: a Biomass And Allometry Database for woody plants%22%0A        self.shortname = %22BAAD%22%0A        self.ref = %22http://esapubs.org/archive/ecol/E096/128/%22%0A        self.urls = %7B%22BAAD%22: %22http://www.esapubs.org/archive/ecol/E096/128/baad_data.zip%22%7D%0A        self.description = %22Falster, D.S., Duursma, R.A., Ishihara, M.I., Barneche, D.R., FitzJohn, R.G., Varhammar, A., Aiba, M., Ando, M., Anten, N., Aspinwall, M.J. and Baltzer, J.L., 2015. BAAD: a Biomass And Allometry Database for woody plants.%22%0A        self.tags = %5B'Taxon %3E Plants', 'Data Type %3E Observational'%5D%0A%0A    def download(self, engine=None, debug=False):%0A        Script.download(self, engine, debug)%0A        engine = self.engine%0A%0A        # files are nested in another baad_data folder%0A        # important files considered (baad_data.csv,baad_methods.csv)%0A        # relevant files can be added in the same manner%0A%0A        file_names = %5B%22baad_data/baad_data.csv%22, %22baad_data/baad_methods.csv%22%5D%0A        engine.download_files_from_archive(self.urls%5B%22BAAD%22%5D, file_names)%0A%0A        # creating data from baad_data.csv%0A        engine.auto_create_table(Table(%22data%22, cleanup=Cleanup(correct_invalid_value, nulls=%5B'NA'%5D)),%0A                                 filename=%22baad_data.csv%22)%0A        engine.insert_data_from_file(engine.format_filename(%22baad_data.csv%22))%0A%0A        # creating methods from baad_methods.csv%0A        engine.auto_create_table(Table(%22methods%22, cleanup=Cleanup(correct_invalid_value, nulls=%5B'NA'%5D)),%0A                                 filename=%22baad_methods.csv%22)%0A        engine.insert_data_from_file(engine.format_filename(%22baad_methods.csv%22))%0A%0ASCRIPT = main()

add baad data from Ecological Archives E096-128-D1