Skip to content

Commit 8d06776

Browse files
committed
badge
1 parent 00734b3 commit 8d06776

File tree

1 file changed

+37
-36
lines changed

1 file changed

+37
-36
lines changed

Readme.md

Lines changed: 37 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![DOI](https://zenodo.org/badge/273830124.svg)](https://zenodo.org/badge/latestdoi/273830124)
44
[![View matlab-hdf5 on File Exchange](https://www.mathworks.com/matlabcentral/images/matlab-file-exchange.svg)](https://www.mathworks.com/matlabcentral/fileexchange/78673-matlab-hdf5)
5-
[![Build Status](https://dev.azure.com/mhirsch0512/matlab-hdf5/_apis/build/status/geospace-code.matlab-hdf5?branchName=master)](https://dev.azure.com/mhirsch0512/matlab-hdf5/_build/latest?definitionId=18&branchName=master)
5+
[![MATLAB on GitHub-Hosted Runner](https://github.com/geospace-code/matlab-hdf5/actions/workflows/ci_matlab.yml/badge.svg)](https://github.com/geospace-code/matlab-hdf5/actions/workflows/ci_matlab.yml)
66

77
These HDF5 and NetCDF4 functions should be built into Matlab itself, but since they're not yet, we provide them.
88

@@ -24,65 +24,66 @@ runtests('hdf5nc')
2424

2525
### HDF5
2626

27-
Matlab R2020b uses HDF5 1.8.12.
27+
Matlab R2021a uses HDF5 1.8.12.
2828

2929
```matlab
3030
[major,minor,rel] = H5.get_libversion()
3131
```
3232

33+
Check that a dataset exists in file:
3334

34-
* Check that a dataset exists in file:
35-
36-
```matlab
37-
h5exists(filename, dataset_name)
38-
```
35+
```matlab
36+
h5exists(filename, dataset_name)
37+
```
3938

40-
* Save a variable to a dataset. If dataset exists, the existing dataset shape must match the variable.
39+
Save a variable to a dataset.
40+
If dataset exists, the existing dataset shape must match the variable.
4141

42-
```matlab
43-
h5save(filename, dataset_name, dataset)
44-
```
42+
```matlab
43+
h5save(filename, dataset_name, dataset)
44+
```
4545

46-
* Get the dataset size (shape)
46+
Get the dataset size (shape)
4747

48-
```matlab
49-
h5size(filename, dataset_name)
50-
```
48+
```matlab
49+
h5size(filename, dataset_name)
50+
```
5151

52-
* Get the names of all datasets in a file
52+
Get the names of all datasets in a file
5353

54-
```matlab
55-
h5variables(filename)
56-
```
54+
```matlab
55+
h5variables(filename)
56+
```
5757

5858
### NetCDF4
5959

60-
Matlab R2020b uses NetCDF4 4.7.3.
60+
Matlab R2021a uses NetCDF4 4.7.3.
6161

6262
```matlab
6363
netcdf.inqLibVers
6464
```
6565

66-
* Check that a variable exists in file:
66+
Check that a variable exists in file:
6767

68-
```matlab
69-
ncexists(filename, variable_name)
70-
```
68+
```matlab
69+
ncexists(filename, variable_name)
70+
```
7171

72-
* Save a variable to a dataset. If dataset exists, the existing dataset shape must match the variable.
72+
Save a variable to a dataset.
73+
If dataset exists, the existing dataset shape must match the variable.
7374

74-
```matlab
75-
ncsave(filename, variable_name, variable)
76-
```
75+
```matlab
76+
ncsave(filename, variable_name, variable)
77+
```
7778

78-
* Get the dataset size (shape)
79+
Get the dataset size (shape)
7980

80-
```matlab
81-
ncsize(filename, variable_name)
82-
```
81+
```matlab
82+
ncsize(filename, variable_name)
83+
```
8384

84-
* Get the names of all datasets in a file
85+
Get the names of all datasets in a file
8586

86-
```matlab
87-
ncvariables(filename)
88-
```
87+
```matlab
88+
ncvariables(filename)
89+
```

0 commit comments

Comments
 (0)