CP FROM ASCII - Copy ASCII text file to SPIDER file

(7/13/00)

PURPOSE

Copies an ASCII text file into an SPIDER image file. Either formatted or free-format input can be used for image values.   Example.

SEE ALSO

CP FROM ASCII [Copy ASCII text file to SPIDER file]
CP FROM EMI [Copy EMISPEC format file to SPIDER file]
CP FROM MRC [Copy MRC file to SPIDER file]
CP FROM NIK [Copy Nikon Coolscan format file to SPIDER file]
CP FROM PDB [Copy PDB file to SPIDER format]
CP FROM RAW [Copy Raw Image to SPIDER file]
CP FROM TERM [Copy Terminal input to SPIDER image/volume]
CP FROM TIFF [Copy TIFF format file to SPIDER file]
CP FROM VAX [Copy VAX SPIDER file to a Unix SPIDER file]
CP TO ASCII [Copy SPIDER file to ASCII text format]
CP TO BRIX [Copy SPIDER volume to BRIX file for "O" input]
CP TO MRC [Copy SPIDER files To MRC format files]
CP TO OPEND [Copy SPIDER file To Opposite Byte Endian]
CP TO POST [Copy SPIDER image to a POSTscript image]
CP TO RAW [Copy SPIDER file to a 8-bit raw image]
CP TO TIFF [Copy SPIDER file to a TIFF format]

USAGE

.OPERATION: CP FROM ASCII

.EDITABLE IMAGE INPUT FILE: PIC001
[Enter name of text file to be copied.]

.ARE NX, NY AND NZ IN FIRST LINE OF FILE? N
[If answer is "Y", then the first line of the file must contain dimensions: NX, NY and NZ.

Otherwise, SPIDER will ask the following question:

.NX, NY, & NZ: 32, 32, 1
[Give image/volume dimensions: NX, NY and NZ.]

.FORMAT DESCRIPTION (OR <CR> FOR *): (6X,1X,1G12.5)
[Enter format for each line of the image data from the text file. Format must start and end with ()'s. The sample format used here will read image values from the first register in a document file, but you must remove any comments from the document file.]

.OUTPUT FILE: PIC002
[Enter name of SPIDER output file.]

NOTES

  1. Free-format input (*) can be used so that any normal number representation is acceptable for the image values, e.g.
    3 5.1 -6.889 -1.089E-01
    The image lines in the input file contain the image values separated by blanks or commas.

SUBROUTINES

COPYF

CALLER

COPY1