cd_air
Purpose:
This program will change the directory of the reslice target in
the designated .air 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.air-file
new-directory
- where the following definitions apply:
- .air-file
- the name of the .air file
- new-directory
- the name of the directory that now contains the reslice
file specified in the .air file.
(scanair can be used to identify the
name of the reslice file specified in a given .air file).
Comments:
- The standard file is not updated, so if you subsequently use
invert_air, you will need to use
this program again on the inverted .air file (assuming that the
standard file was moved as well).
- As a safety measure, the name of the old reslice directory is
stored in the .air file comment line where it can be accessed
using scanair. Note that a second
application of this program will lose the original reslice
directory completely.
- Move the reslice file before you update the .air 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
- '.air_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 .air 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 scanair 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 .air 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_air
rather than this program (matrix dimensions and voxel sizes
still must match) to minimize the chances of losing track of
which file is which.
- '.air_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 .air 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: '.air_file' now targets a
nonexistent reslice file: '___'
- The directory that you specified does not currently contain
a file with the name designated in the .air file as the reslice
file.
- Move the reslice file to the designated directory or:
- Use scanair 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 scanair 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)