skip to content
 
Compton Gamma-Ray Observatory Science Support Center

Transferring OSSE SDB Files via WWW

The Nature of SDB Files

In the VMS world, files are slightly more complex than in the Unix world. IGORE SDB files contain information on their file structure that is not always preserved through FTP transfers. This can generate a number of odd errors when trying to use these SDB files in IGORE.

How to fix the problem

The primary assumption for this fix method is that you have transferred an SDB file via a WWW browser or FTP. The transfer MUST be performed in binary mode. The basic steps for this process are listed below.

If you are downloading FITSified SDB files (in the Low-Level Archive)
  1. Download the file through FTP or your browser in BINARY mode. Your browser must be set to save to your local disk.


  2. If you have downloaded to a Unix machine, you need to transfer the file to VMS. In the process, change the .Z extension on the Unix file to _Z in VMS.


  3. Uncompress the FITS file with the VMS Uncompress utility.

    UNCOMPRESS fitsfilename

    This should leave a .FITS file in your directory.


  4. Now restore the VMS file attributes with SETFILE.

    SETFILE fitsfilename 1 0 2880 0


  5. Convert from FITS format to SDB format via FITS2SDB utility.

    FITS2SDB fitsfilename sdbfilename

    This is a computationally intensive task and will generally take a long time.


  6. Now you can unleash IGORE on your SDB files! (sound of maniacal laughter)
If you are downloading raw SDB files (in the High-Level Archive)
  1. Download the file through FTP or your browser in BINARY mode. Your browser must be set to save to your local disk.

  2. Reset the file attributes.

    SETFILE sdbfilename 2 0 8212 2

  3. Now you can unleash IGORE on your SDB files! (sound of maniacal laughter)

If SDB2FITS or SETFILE is not in your IGORE distribution

You can download the SETFILE and SDB2FITS (which includes FITS2SDB) packages to your VMS system where you are running IGORE. Uncompress and Untar the files, then run the MAKE program in the distribution. SETFILE requires a C compiler be available on your VMS system; SDB2FITS requires both a C and FORTRAN compiler.


If you have a question about CGRO, please contact us via the Feedback form.

This page was last modified on Monday, 01-Aug-2005 13:42:43 EDT.

NASA Astrophysics

  • Questions/Comments/Feedback
  • Find helper applications like Adobe Acrobat
  • Learn about black holes, astronomy & more!
  • A service of the Astrophysics Science Division at NASA/ GSFC

    NASA Science Official: Neil Gehrels
    Responsible NASA Official: Phil Newman
    Web Curator: J.D. Myers
    Privacy Policy and Important Notices.