PecanProject / pecan

The Predictive Ecosystem Analyzer (PEcAn) is an integrated ecological bioinformatics toolbox.
www.pecanproject.org
Other
202 stars 234 forks source link

error in get.trait.data: 'duplicate row names not allowed' #278

Closed dlebauer closed 9 years ago

dlebauer commented 9 years ago

with the settings file tully.salix-sachalinensis.xml,

download.file(url = "http://goo.gl/UGPnjS", 
    destfile = "foo.xml", method = 'wget', extra = '--no-check-certificate')
settings <- read.settings("foo.xml")
settings$pfts <- get.trait.data(pfts = settings$pfts, 
                                  modeltype = "BIOCRO", 
                                  dbfiles = settings$run$dbfiles, 
                                  database = settings$database$bety, 
                                  forceupdate = "TRUE") 

Gives the error:

Error in row.names<-.data.frame(*tmp*, value = value) : duplicate 'row.names' are not allowed In addition: Warning message: non-unique values when setting 'row.names': ‘c2n_leaf’, ‘chi_leaf’, ‘cuticular_cond’, ‘extinction_coefficient_diffuse’, ‘growth_respiration_coefficient’, ‘Jmax’, ‘leaf_respiration_rate_m2’, ‘SLA’, ‘stomatal_slope.BB’, ‘Vcmax’

dlebauer commented 9 years ago

This error occurred because I had misspelled the pft name, and was preceeded with an error

Error in logger.severe("Did not find a pft with name ", settings$pfts[i]$pft$name) : Did not find a pft with name salix-purpurea