Unlimited DimensionFollowing is how you would do this:
FORTRAN: The last parameter or dimension of the highest rank value (dim(rank)) is assigned the value SD_UNLIMITED.
File name: sdunl.hdf
Variable Name = data1
Index = 0
Type= 16-bit signed integer
Ref. = 2
Rank = 2
Number of attributes = 0
Dim0: Name=fakeDim0
Size = UNLIMITED (currently 11)
Type = number-type not set
Number of attributes = 0
Dim1: Name=fakeDim1
Size = 5
Type = number-type not set
Number of attributes = 0
Data :
1 2 3 4 5
2 3 4 5 6
3 4 5 6 7
4 5 6 7 8
5 6 7 8 9
6 7 8 9 10
7 8 9 10 11
8 9 10 11 12
9 10 11 12 13
10 11 12 13 14
1 2 3 4 5
If we had not appended data to this file, the Unlimited Dimension size would
be 10, rather than 11, and the last line ("1 2 3 4 5") would not be there.