You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,12 +10,13 @@ This package is at a very early state of developpement.
10
10
Here is minimal example for loading GRIB or NetCDF files.
11
11
12
12
```julia
13
+
import CommonDataModel as CDM
13
14
import SomeDatasets # where SomeDatasets is either GRIBDatasets or NCDatasets
14
15
15
16
ds = SomeDatasets.Dataset("file_name")
16
17
17
18
# ntime is the number of time instances
18
-
ntime =ds.dim["time"]
19
+
ntime =CDM.dims(ds)["time"]
19
20
20
21
# create an array-like structure v corresponding to variable temperature
21
22
v = ds["temperature"]
@@ -27,11 +28,14 @@ subdata = v[10:30,30:5:end]
27
28
data = v[:,:]
28
29
29
30
# load a global attribute
30
-
title =ds.attrib["title"]
31
+
title =CDM.attribs(ds)["title"]
31
32
close(ds)
32
33
```
33
34
34
-
Most users would typically import `GRIBDatasets` and `NCDatasets` directly and not `CommonDataModel`. One should import `CommonDataModel` only to extent the functionality of `GRIBDatasets` and `NCDatasets`.
35
+
Most users would typically import [`GRIBDatasets`](https://github.com/JuliaGeo/GRIBDatasets.jl) and [`NCDatasets`](https://github.com/Alexander-Barth/NCDatasets.jl) directly and not `CommonDataModel`. One should import `CommonDataModel` only to extent the functionality of `GRIBDatasets` and `NCDatasets`.
36
+
37
+
As a proof-of-concept, there is also an [`TIFFDatasets`](https://github.com/Alexander-Barth/TIFFDatasets.jl) package for GeoTIFF files.
0 commit comments