
read.ncdf(trjfile, headonly = FALSE, verbose = TRUE, time = FALSE,
first = NULL, last = NULL, stride = 1, cell = FALSE,
at.sel = NULL)
first
and last
have the
time unit ps; Otherwise the unit is the frame number.last
time or frame number; If NULL or
equal to -1, read until the end of the file(s).stride
frame(s)headonly
is FALSE return cell
information only. Otherwise, return header or coordinates.read.dcd
, write.ncdf
,
read.pdb
, write.pdb
,
atom.select
##-- Read example trajectory file
trtfile <- system.file("examples/hivp.dcd", package="bio3d")
trj <- read.dcd(trtfile)
## Write to netCDF format
write.ncdf(trj, "newtrj.nc")
## Read trj
trj <- read.ncdf("newtrj.nc")
Run the code above in your browser using DataLab