gbtidl at the unix prompt. A external plotter window will be launched, and you will see the following on the console you launched it from:
IDL Version 6.1, Solaris (sunos sparc m64). (c) 2004, Research Systems, Inc. Installation number: 15269-1. Licensed for use by: National Radio Astronomy Observatory Starting GBTIDL Display Device : X Visual Class : TrueColor Visual Depth : 24-Bit Color Table Size: 256 Number of Colors: 16777216 Decomposed Color: 0 GBTIDL -> |
io = obj_new('io_sdfits_line')
f = '/users/pmargani/sandbox_trunk/gbtidl/tests/data/TREG_040815.acs.raw.scan60.fits'
help, file_info(f), /str
This will give you the contents of IDL's FILE_INFO data structure. You will be echoed the full path to the file, and some information about that file. In the example below, you will note that the file exists, and is readable and writable (these fields have a value of 1). It is not an executable, is not a directory, and is not a symbolic link (these fields have a value of 0).
GBTIDL -> help, file_info(f), /str
** Structure FILE_INFO, 21 tags, length=72, data length=67:
NAME STRING '/users/pmargani/sandbox_trunk/gbtidl/tests/data/TREG_040815.acs.raw.scan60.f'...
EXISTS BYTE 1
READ BYTE 1
WRITE BYTE 1
EXECUTE BYTE 0
REGULAR BYTE 1
DIRECTORY BYTE 0
BLOCK_SPECIAL BYTE 0
CHARACTER_SPECIAL
BYTE 0
NAMED_PIPE BYTE 0
SETUID BYTE 0
SETGID BYTE 0
SOCKET BYTE 0
STICKY_BIT BYTE 0
SYMLINK BYTE 0
DANGLING_SYMLINK
BYTE 0
MODE LONG 436
ATIME LONG64 1100275462
CTIME LONG64 1099668795
MTIME LONG64 1096305320
SIZE LONG64 823680
|
io object you have defined. The simplest way to do this (there are many ways to use the same io object) is by typing the following command:
io->set_file, f
You will see the following, indicating that this step worked:
GBTIDL -> io->set_file, f MRDFITS: Binary table. 43 columns by 1 rows. index file created. |
io->add_file, f method: the index file will be validated and the program will ensure that it is in sync with the real data. From this point forward, you will be able to use the io object to search, select and plot your data.
| Topic IDLDataIOTutorial . { Edit | Attach | Ref-By | Printable | Diffs | r1.2 | > | r1.1 | More } |
| Revision r1.2 - 01 Dec 2004 - 13:05 GMT - PaulMarganian |
Content copyright © 1999-2007 by the contributing authors. All material on this collaboration platform is the property of the contributing authors. |