We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddc9290 commit f71c784Copy full SHA for f71c784
src/utils.jl
@@ -17,4 +17,16 @@ function pyconvert_time(time)
17
t0 = convert_time(DateTime, pyt0)
18
dt_f = PyArray((time - pyt0) / pyns; copy=false)
19
return t0 .+ dt_f .* dt_min
20
+end
21
+
22
+"""
23
+ promote_cdf_attributes!(meta)
24
25
+Promotes the nested CDF variable attributes to the top level of the metadata.
26
27
+function promote_cdf_attributes!(meta)
28
+ cdf_attrs = meta["CDF"]["VATT"]
29
+ for (k, v) in cdf_attrs
30
+ meta[k] = v
31
+ end
32
end
0 commit comments