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
  • Issues
  • #132
Closed
Open
Issue created Sep 22, 2023 by Eva Rifà@erifarovMaintainer

CST_SaveExp needed developments

I open this issue since @nperez has detected some developments needed in CST_SaveExp:

    • There is at least one element in the metadata on the NetCDF that is not saved properly. That is $lats_range (lons_range) that it is a vector of two values. It only appears 1 in the output:

In the object we have

[...]
$metadata
$metadata$region$lats_range
[1] "20" "80"

But in the saved NetCDF we see:

        int region(region) ;
                region:name = "NAO region" ;
                region:lats_range = "20" ;
    • Some warnings appear but they are not necessary regarding spatial coordinates:
> CST_SaveExp(data = nao$hcst,
+           destination = file_dest, 
+           dat_dim = NULL, sdate_dim = 'syear', 
+           ftime_dim = 'time', var_dim = NULL, 
+           memb_dim = 'ensemble')
Warning messages:
1: In SaveExp(data = data$data, destination = destination, Dates = data$attrs$Dates,  :
  Spatial coordinates not found.
2: In SaveExp(data = data$data, destination = destination, Dates = data$attrs$Dates,  :
  Parameter 'startdates' should be a character string containing the start dates in the format 'yyyy-mm-dd', 'yyyymmdd', 'yyyymm', 'POSIXct' or 'Dates' class. Files will be named with Dates instead.
    • See if the following development could be inculded:

Multiple dimensions of length 1

dim(nao$obs$data)
  region    syear ensemble      dat      var     sday    sweek     time 
       1       24        1        1        1        1        1        1 

nao$hcst$data <- .drop_indices_dims(nao$hcst$data)

Here there is a function to drop the dimensions.

Eva

Edited Sep 26, 2023 by Eva Rifà
Assignee
Assign to
Time tracking