Subchapters:
|
The structuresYou can handle a data base of, saying, stars, defining for each star for
example a name, a right ascension, a declination and a magnitude. IDL> aaa = {etoile, name: 'Star1', ra: 10.0, dec: 20.5, mag : 10.6} Where etoile is the name of this newly defined structure followed by the different tags and initial values for each. You can have a look on aaa: IDL> help,aaa If you want to know more about the structure, add the keyword /str to the help command: IDL> help,aaa,/str You can access one or all the tags of the structure etoile by: IDL> print, aaa.ra |
IDL courses C. Morisset © 2004 IA/UNAM V 2.2 |