home *** CD-ROM | disk | FTP | other *** search
/ gondwana.ecr.mu.oz.au/pub/ / Graphics.tar / Graphics / graphics.formats / hdf / NCSA_HDF / HDF.Appendix.D.ascii.Z / HDF.Appendix.D.ascii
Encoding:
Text File  |  1991-09-24  |  2.3 KB  |  58 lines

  1. D.1NCSA HDF Calling Interfaces and Utilities
  2.  
  3. Public HDF Directories on NCSA ComputersD.1
  4.  
  5. National Center for Supercomputing Applications
  6.  
  7. November 1989
  8.  
  9.  
  10.  
  11. November 1989
  12.  
  13.  
  14.  
  15.  
  16. Appendix  DPublic HDF Directories on NCSA Computers
  17.  
  18.  
  19.  
  20.  
  21. There are public HDF directories on several machines at NCSA. In each supported HDF directory you will find the following:
  22.  
  23. ÑA README file that gives further information about the software and how to use it (Be sure to read this file before using the software, because it may contain important information about recent changes to the software.)
  24.  
  25. ÑThe subdirectory lib/ with the library file libdf.a, which contains the high-level routines described in this manual for working with raster image sets and scientific datasets, as well as the lower-level general purpose routines for building and manipulating HDF routines of any type
  26.  
  27. ÑThe subdirectory bin/ with the executable utility programs
  28.  
  29. ÑThe subdirectory src/, which contains the source code for the latest supported version of all programs
  30.  
  31. ÑThe subdirectory include/, which contains the header files listed in Appendix B of this manual
  32.  
  33. ÑThe subdirectory examples/, which contains one or more sample programs that use HDF
  34.  
  35. The HDF public directories are currently accessible on the CRAY2, CRAY X-MP, Alliant FX/8 (medusa), Alliant FX/80 (replicant), and NCSA Sun systems. The pathnames of these directories are listed in Table D.1.
  36.  
  37. Table D.1Pathnames of NCSA HDF Directories
  38. NCSA ComputerDirectory Path
  39. CRAY-2/usr/lib
  40. CRAY X-MP/usr/lib
  41. Alliant FX/80 (replicant)/usr/hdf/lib
  42. Sun systems/soft/hdf/lib
  43. SGI systems/rels/shared/soft/hdf
  44.  
  45.  
  46. In order to compile a program that uses one of the NCSA HDF library routines, you need to link the library to your program when you compile or link your program. For example, suppose you have a program called myprog.f written in FORTRAN for the CRAY-2 system. If myprog.f contains calls to HDF routines, you can link libdf.a to your program when you compile it by entering:
  47.  
  48. FORTRAN:
  49. cf77 myprog.f -o myprog -ldf 
  50.  
  51. where myprog is the name of the executable program.
  52.  
  53. As another example, suppose you have a program called myprog.c written in C for one of the Sun systems. If myprog.c contains calls to HDF routines, you can link libdf.a to your program when you compile it by entering:
  54.  
  55. C:
  56. cc  myprog.c -o myprog /soft/hdf/lib/libdf.a 
  57.  
  58.