cd_warp
Purpose:
This program will change the directory of the reslice target in
the designated .warp filewhile
leaving the actual file name unchanged. This utility is designed to
allow you easily update .air files in the event that you choose to
move your original data to some new directory.
Usage:
cd_air.warp-file
new-directory
- where the following definitions apply:
- .warp-file
- the name of the .warp file
- new-directory
- the name of the directory that now contains the reslice
file specified in the .warp file.
(scan_warp can be used to identify
the name of the reslice file specified in a given .warp file).
Comments:
- The standard file is not updated.
- As a safety measure, the name of the old reslice directory is
stored in the .warp file comment line where it can be accessed
using scan_warp. Note that a second
application of this program will lose the original reslice
directory completely.
- Move the reslice file before you update the .warp file if
possible. This will allow the program to verify the dimensions and
sizes of the reslice file and warn you if the file in the
directory that you have designated has the same name but is not
compatible.
Error messages: (alphabetical)
See also: Generic error messages
- '.warp_file' not modified due to matrix size
discrepancy...
- There is a file in the designated directory with a name
that matches the reslice file stored in the .warp file but the
matrix sizes do not agree. This must be the result of an
accidental or deliberate substitution of one file for another.
- Use scan_warp to find the name
and identifier of the reslice file.
- Use identify to track down the
correct reslice file.
- If your intention was to substitute some other file for the
reslice file and apply the .warp file parameters to it, the
substituted file must have the same matrix dimensions and voxel
size (and should be spatially equivalent). Such substitutions
should be performed using mv_warp
rather than this program (matrix dimensions and voxel sizes
still must match) to minimize the chances of losing track of
which file is which.
- '.warp_file' not modified due to voxel size
discrepancy...
- There is a file in the designated directory with a name
that matches the reslice file stored in the .warp file but the
voxel sizes do not agree. This must be the result of an
accidental or deliberate substitution of one file for another.
See related comments above.
- WARNING: '.warp_file' now targets a
nonexistent reslice file: '___'
- The directory that you specified does not currently contain
a file with the name designated in the .warp file as the
reslice file.
- Move the reslice file to the designated directory or:
- Use scan_warp to read the
.air file comment which contains the name of the reslice
file and directory before you ran this program. This will
allow you to set the reslice file directory back to what it
was by running this program again.
- Use scan_warp to determine
the identifier of the original reslice file and use
identify to track it down if you
have exhausted all other options.
See also:
Modified: December 11,
1996
© 1995-6 Roger P. Woods,
M.D.(rwoods@ucla.edu)