next up previous
Next: ...Read a WCS Calibration from a Dataset
Up: How To...
Previous: ...Structure an AST Program

...Build an AST Program  

Before building any AST program, you may want to issue the UNIX command:

ast_dev

which will set up links to the AST include files in your current directory. Then, to build a simple AST program that doesn't use graphics, use:

f77 program.f -L/star/lib `ast_link` -o program

To build a program which uses PGPLOT for graphics, use:

f77 program.f -L/star/lib `ast_link -pgplot` -o program

For more details about accessing AST include files, see [*] and the description of the ``ast_dev'' command in [*]. For more details about linking programs, see [*] and the description of the ``ast_link'' command in [*].



next up previous
Next: ...Read a WCS Calibration from a Dataset
Up: How To...
Previous: ...Structure an AST Program

AST A Library for Handling World Coordinate Systems in Astronomy
Starlink User Note 210
R.F. Warren-Smith & D.S. Berry
30th April 2003
E-mail:ussc@star.rl.ac.uk

Copyright (C) 2003 Central Laboratory of the Research Councils