Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • startR startR
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 29
    • Issues 29
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 7
    • Merge requests 7
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Earth SciencesEarth Sciences
  • startRstartR
  • Issues
  • #42
Closed
Open
Issue created Dec 09, 2019 by aho@ahoMaintainer

Start(): variable attributes cannot be retrieved if the number of variable is more than one

When Start() retrieves more than one variable, the attributes of the second and following variables cannot be retrieved. If retrieve = TRUE, the first variable attributes is saved. But if retrieve = FALSE, none of the variables is saved.

  repos <- paste0('/esarchive/exp/ecearth/a1tr/cmorfiles/CMIP/EC-Earth-Consortium/EC-Earth3/historical/',
           'r24i1p1f1/Amon/$var$/gr/v20190312/$var$_Amon_EC-Earth3_historical_r24i1p1f1_gr_185001-185012.nc')

  var <- c('tas', 'clt')
  sdate <- '20170101'

  data <- Start(dat = repos,
                var = var, 
                time = 'all',
                lat = 'all',
                lon = 'all', 
                return_vars = list(lat = NULL, lon = NULL),
                synonims = list(lat = c('lat','latitude'),
                                lon = c('lon','longitude')),
                retrieve = TRUE
               )

  dim(data)
  str(data)

It causes problems when trying to get the units from each variable.

Note: May be related to NcVarReader.R. Look for 'var_to_read' in Start.R

Edited Dec 09, 2019 by aho
Assignee
Assign to
Time tracking