Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • CSTools CSTools
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 28
    • Issues 28
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • External
  • CSToolsCSTools
  • Merge requests
  • !149

Add character strings in element Datasets and in coords

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Eva Rifà requested to merge develop-datasets_as_s2dv_cube into master Mar 17, 2023
  • Overview 0
  • Commits 1
  • Pipelines 1
  • Changes 3

Related with issue #117 (closed).

  • Add character strings for vector coordinates datasets and in element $Datasets
  • Update sample data with this.

Example:

> str(lonlat_prec)
List of 4
 $ data  : num [1, 1:6, 1:3, 1:31, 1:4, 1:4] 1.20e-08 5.65e-09 0.00 8.48e-09 2.61e-08 ...
  ..- attr(*, "dimensions")= chr [1:6] "dataset" "member" "sdate" "ftime" ...
 $ dims  : Named int [1:6] 1 6 3 31 4 4
  ..- attr(*, "names")= chr [1:6] "dataset" "member" "sdate" "ftime" ...
 $ coords:List of 6
  ..$ dataset: chr "exp1"
  .. ..- attr(*, "indices")= logi FALSE
  ..$ member : int [1:6] 1 2 3 4 5 6
  .. ..- attr(*, "indices")= logi TRUE
  ..$ sdate  : chr [1:3] "20101101" "20111101" "20121101"
  .. ..- attr(*, "indices")= logi FALSE
  ..$ ftime  : int [1:31] 1 2 3 4 5 6 7 8 9 10 ...
  .. ..- attr(*, "indices")= logi TRUE
  ..$ lat    : num [1:4(1d)] 47 46 45 44
  .. ..- attr(*, "cdo_grid_name")= chr "r360x181"
  .. ..- attr(*, "first_lat")= num [1(1d)] 44
  .. ..- attr(*, "last_lat")= num [1(1d)] 47
  .. ..- attr(*, "projection")= chr "none"
  .. ..- attr(*, "indices")= logi FALSE
  ..$ lon    : num [1:4(1d)] 6 7 8 9
  .. ..- attr(*, "cdo_grid_name")= chr "r360x181"
  .. ..- attr(*, "data_across_gw")= logi FALSE
  .. ..- attr(*, "array_across_gw")= logi FALSE
  .. ..- attr(*, "first_lon")= num 6
  .. ..- attr(*, "last_lon")= num 9
  .. ..- attr(*, "projection")= chr "none"
  .. ..- attr(*, "indices")= logi FALSE
 $ attrs :List of 7
  ..$ Variable       :List of 2
  .. ..$ varName : chr "prlr"
  .. ..$ metadata:List of 3
  .. .. ..$ prlr:List of 7
  .. .. .. ..$ verification_time  : chr "none"
  .. .. ..$ lon : num [1:4(1d)] 6 7 8 9
  .. .. ..$ lat : num [1:4(1d)] 47 46 45 44
  ..$ Datasets       : chr "exp1"
  ..$ Dates          : POSIXct[1:93], format: "2011-03-01" "2011-03-02" ...
  ..$ when           : POSIXct[1:1], format: "2023-03-17 17:25:24"
  ..$ source_files   : chr [1:3] "/esarchive/exp/ecmwf/system5c3s/daily_mean/prlr_s0-24h/prlr_20101101.nc" "/esarchive/exp/ecmwf/system5c3s/daily_mean/prlr_s0-24h/prlr_20111101.nc" "/esarchive/exp/ecmwf/system5c3s/daily_mean/prlr_s0-24h/prlr_20121101.nc"
  ..$ not_found_files: NULL
  ..$ load_parameters:List of 28
 - attr(*, "class")= chr "s2dv_cube"
Edited Mar 17, 2023 by Eva Rifà
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: develop-datasets_as_s2dv_cube