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
  • Merge requests
  • !85

Bugfix for first file missing case. The error happened when retrieving metadata.

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged aho requested to merge develop-first_file_missing into master Jul 13, 2020
  • Overview 3
  • Commits 7
  • Pipelines 0
  • Changes 6

Hi @nperez

This fix is for issue #58 (closed). When the first file is missing, Start() couldn't retrieve the data even the following files exist. The error happened when Start() retrieves metadata from the first file, which does not exist. I don't consider it as a bug because according to the definition of parameter 'metadata_dims',

Start() by default returns the auxiliary data read for only the first file of each source (or data set) in the pattern dimension. Of course it may be better to change the sentence to 'only the first existing file' and improve this situation, but I found it difficult. Therefore, I made the following modification:

  1. When the first file is missing and 'metadata_dims' is not specified, Start() still retrieves the data but does not retrieve the metadata of the variables (that is, for example, the metadata of 'tas' won't be retrieved, while 'lon' and 'lat' etc. can still be retrieved).
  2. Start() returns a warning saying that the metadata is not found, and suggests checking the first file or specifying 'metadata_dims'.

With this enhancement, Start() won't fail when the first file is missing.

Please let me know if there is anything unclear for you. Thanks!

Cheers,
An-Chi

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: develop-first_file_missing