Skip to content

Commit 02eb21d

Browse files
authored
Expose the dim id (#21)
* expose the dim id * Fix the dimenstions ID function name
1 parent 489c942 commit 02eb21d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

netcdf/dimensions.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,8 @@ func (ds Dataset) Dim(name string) (d Dim, err error) {
5555
d = Dim{ds, id}
5656
return
5757
}
58+
59+
// ID returns the id of the dimension.
60+
func (dim Dim) ID() int {
61+
return int(dim.id)
62+
}

0 commit comments

Comments
 (0)