## -*- R -*-
citHeader("To cite 'RFmerge' in publications use:")

year <- sub(".*(2[[:digit:]]{3})-.*", "\\1", meta$Date, perl = TRUE)
vers <- paste("R package version", meta$Version)

citEntry(
         entry="Article",
         title= "RF-MEP: a novel Random Forest method for merging gridded precipitation products and ground-based measurements",
         journal="Remote Sensing of Environment",
         author="Baez-Villanueva, O. M. and Zambrano-Bigiarini, M. and Beck, H. and McNamara, I. and Ribbe, L. and Nauditt, A. and Birkel, C. and Verbist, K. and Giraldo-Osorio, J.D. and Thinh, N.X.",
         volume= "239",
         number="",
         pages="111610",
         year="2020",
         note="",
         doi="10.1016/j.rse.2019.111606",
         url="https://authors.elsevier.com/c/1aKrd7qzSnJWL",
         textVersion="Baez-Villanueva, O. M.; Zambrano-Bigiarini, M.; Beck, H.; McNamara, I.; Ribbe, L.; Nauditt, A.; Birkel, C.; Verbist, K.; Giraldo-Osorio, J.D.; Thinh, N.X. (2019). RF-MEP: a novel Random Forest method for merging gridded precipitation products and ground-based measurements, Remote Sensing of Environment, (accepted).",
         key = "BaezVillanueva+al2020-RFmerge_article"
         )

citEntry(entry	= "Manual",
	 title	= "RFmerge: Merging of Satellite Datasets with Ground Observations using Random Forests",
	 author = c(person("Mauricio Zambrano-Bigiarini", email = "mzb.devel@gmail.com", role=c("aut", "cre", "cph")), 
                    person("Oscar M. Baez-Villanueva", email = "obaezvil@th-koeln.de", role=c("aut", "cph")), 
                    person("Juan Giraldo-Osorio", email = "j.giraldoo@javeriana.edu.co", role=c("ctb")) 
                   ),
	 year = year,
	 note = paste(vers, ". doi:10.5281/zenodo.3581515"),
         url = "https://CRAN.R-project.org/package=RFmerge",
	 textVersion = paste(
	               "Zambrano-Bigiarini, M.; Baez-Villanueva O.M.; Giraldo-Osorio, J. (", year, "). ",
                       "RFmerge: Merging of Satellite Datasets with Ground Observations using Random Forests. ",
                        vers, 
                       ". URL https://cran.r-project.org/package=RFmerge",
                       ". DOI:10.5281/zenodo.3581515",
                       ".", sep=""),
         key = "Zambrano-Bigiarini+al2020-RFmerge_pkg"
	 )

#citFooter("We have invested a lot of time and effort in creating hydroPSO, please cite it if you use it !")

