First create a table mysource.tbl specifying the source position. This can be done with the command
Midas 001> write/radec_table mysource RA=5,40,22.5 DEC=-69,20,2.4Now perform the transformation to galactic coordinates.
Midas 002> transform/equ_ecl_gal mysource gal_mysourceThe result is written to the column :LII in the table gal_mysource.tbl for the galactic longitude and to the column :BII for the galactic latitude. Read the galactic longitude :LII and the galactic latitude :BII
Midas 003> read/tab gal_mysource.tbl :LII :BII Table : gal_mysource.tbl Sequence LII BII -------- --------- --------- 1 279.71860 -31.49865 -------- --------- ---------The galactic coordinates of a source in an image can be determined with a coordinate cursor. The command
Midas 004> get/coordinates gal 2000.0delivers galactic coordinates of a source for equinox 2000.0 by cursor reading. The galactic longitude and latitude is written to the keywords COODEG and COOSTR.