export
Contents: Description, Arguments, Usage, Examples, Related Functions Supported Under Version: >1.69 Current Davinci Version: 2.27 64-bit Safe: No
Description Exports a value to a file. Identical to write.
Arguments and Return Values Arguments: A value, a filename and file type. Return Value: none. A file is written to disk.
Usage Syntax: export(object = VAL, filename = STRING, type = TYPE [, force = 1]) The export() function copies data to a file. The value of type specifies the type of file written, and is one of:
If the force keyword is included, then any existing file of the same name is overwritten. Without this keyword, the write is aborted if the filename already exists. Notes: The standard graphics formats (GIF, TIFF, JPEG, PNG, BMP, PPM), all expect either 1 or 3 band, byte images. A 3-band image is interpreted to be a red band, a green band and a blue band. The PGM and GRD formats can not handle multiplane data. The ERS format produces two files, one named "path", containing the raw raster data, and another named "path.ers", containing the ERS header. This is the standard for ERS files.
Examples dv> a 345x200x10 array of float, bsq format [2,760,000 bytes] dv> export(a,"exported_data.cub",type=vicar,force=1) |
DavinciWiki Mini-Nav Bar Contents
Contact Developers
All other topics
Recent Core Changes Modified On: 03-27-2006 |