Subchapters:
|
The structuresYou can create a sub-array containing those stars: IDL> my_stars =
catalog[index] You can also sort your catalog according to one of the tags. Let's define first the index table of the sorted my_stars catalog, according to the magnitude: IDL> sort_index =
sort(my_stars.mag) Like for the where condition, the returned index is not the sorted table, but the index of the elements. You can now print the sorted sub-catalog using a format similar to the Fortran one: IDL>
print,my_stars(sort_index), $ |
IDL courses C. Morisset © 2004 IA/UNAM V 2.2 |