Description Usage Arguments Details Value Author(s) See Also Examples
This logical function returns TRUE
if the input volume is structured
as a minc1 (netcdf) or minc2 (hdf5) volume. Else, FALSE
is returned.
1 | rmincUtil.isMinc(filename)
|
filename |
Minc filename. |
This routine calls the rmincUtil.isMinc1
and rmincUtil.isMinc2
functions to do
the minc checking.
TRUE
is returned for minc volumes, FALSE
for everything else.
Jim Nikelski nikelski@bic.mni.mcgill.ca
rmincUtil.isMinc1
rmincUtil.isMinc2
rmincUtil.asMinc2
rmincUtil.isReadable
1 2 3 4 5 6 7 8 9 10 | ## Not run:
# check for minc
myFile <- file.path(volDir, "icbm_avg_152_t1_tal_lin.mnc")
if ( rmincUtil.isMinc(myFile) ) {
myFile <- rmincUtil.asMinc2(myFile) # could be minc1, so call converter
myFileInfo <- mincIO.readMincInfo(myFile) # read the mincInfo for this volume
print(myFileInfo) # ... and print it
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.