ArgoCanada / argodata

Download Argo Ocean Float Data
https://argocanada.github.io/argodata
Other
8 stars 3 forks source link

Allow zero attributes for global and variables #10

Closed paleolimbot closed 3 years ago

paleolimbot commented 3 years ago

Fix failures that look like this:

argo_read_info("/mnt/monolith/argo/argo/dac/bodc/1900083/1900083_Rtraj.nc")
Error in names(attrs) <- paste0("att_", attr_names) : 
  'names' attribute [1] must be the same length as the vector [0]
argo_path_vars("/mnt/monolith/argo/argo/dac/bodc/1900083/1900083_Rtraj.nc")
Error in names(x) <- paste0("att_", names(x)) : 
  'names' attribute [1] must be the same length as the vector [0]
paleolimbot commented 3 years ago

Still a thing!

argo_read_info("/mnt/monolith/argo/argo/dac/aoml/2900508/profiles/D2900508_155.nc", quiet = NA) ::: Error in names(attrs) <- paste0("att_", rep_len(attr_names, length(attrs))): 'names' attribute [1] must be the same length as the vector [0]