@@ -39,7 +39,7 @@ Whether to drop the 'var' dimension this function assumes (read description). If
...
@@ -39,7 +39,7 @@ Whether to drop the 'var' dimension this function assumes (read description). If
Whether to merge the resulting array variables into a single array if possible (default) or not. Otherwise a list with as many arrays as requested variables is returned.
Whether to merge the resulting array variables into a single array if possible (default) or not. Otherwise a list with as many arrays as requested variables is returned.
}
}
\item{expect_all_indices}{
\item{expect_all_indices}{
Whether the function should stop if indices are not provided for all the dimensions of any of the requested variables rather than assuming that all the indices are requested for the unspecified dimensions. By default the later is done.
Whether the function should stop if indices are not provided for all the dimensions of any of the requested variables (TRUE) rather than assuming that all the indices are requested for the unspecified dimensions (FALSE). By default the later is done (FALSE).
}
}
\item{allow_out_of_range}{
\item{allow_out_of_range}{
Whether to allow indices out of range (simply disregard them) or to stop if indices out of range are found.
Whether to allow indices out of range (simply disregard them) or to stop if indices out of range are found.
...
@@ -64,6 +64,26 @@ NcClose(fnc)
...
@@ -64,6 +64,26 @@ NcClose(fnc)
# Check the obtained array matches the original array
# Check the obtained array matches the original array
print(a)
print(a)
print(a_from_file[1, , ])
print(a_from_file[1, , ])
# Example with extra dimensions of length 1
# Creating sample data with singleton dimensions. Only dimensions 'a', 'b' and