4 delete executable files option 1 deletes all object

Info icon This preview shows pages 12–14. Sign up to view the full content.

View Full Document Right Arrow Icon
4 - Delete executable files. Option 1 deletes all object files (.o) under the MIDAS release directory (upto 20% of MIDAS size) but they do not compromise MIDAS performance. It’s the safest option. Option 2 deletes all object and source files (.o .c and .for) under the MIDAS release directory (upto 45% of MIDAS size). They are not needed for MIDAS performance, however you will not be able to install new patches without sources. You still can compile and link your own MIDAS code. Option 3, like Option 2, removes also all static library files (.a) (upto 55% of MIDAS size). Since MIDAS uses shared libraries the static ones are not required for development with MIDAS. Option 4, removes only executables files (.exe) for the optional package categories: ap- plic, stdred and contrib. The core of MIDAS remains, you only remove packages you do not need anymore. Source files remain so executables could be regenerated if necessary. If what you really want is to reduce your MIDAS installation to the minimum but still operational expresion, you could also use our cleanmidas script used to generate the only binaries releases of MIDAS (it is like Option 3 plus other unnecessary files). You use the script in this way: % cd /midas/11SEP % ./system/unix/cleanmidas 2.13 FITS Data Decompression on the Fly Compressed FITS files on disk can also be accessed with the MIDAS command intape/fits (indisk/fits) . Compressed FITS files are recognized by extra extensions(e.g .z or .gz ) to their names. If intape/fits matches a filename with one of its expected compressed extensions, the file will be decompressed with the command indicated for such extension, e.g. gunzip ). The decompression of the FITS file is done on-the-fly, that means that the decompress command is spawned in a piped mode, sending the decompressed data directly to the input of the intape command. This improves speed access and reduces disk space because it does not create temporary files. The decompression code uses, by default, a built-in table of compressed extensions and decompress commands as indicated in the following table: 10
Image of page 12

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Built-in table: Extension Command .gz zcat .z gunzip -c The algorithm to apply the decompression is: If the file exists an the filename matches on the compressed extensions the file will be decompressed. If the file does not exist, the first file with a filename+extension found in the same directory will be decompressed. In any other case the file will be opened if it exists or an error will be returned if it does not exist. Whenever a decompress command is executed it will also be displayed in the standard output. Example: In a directory with no myfits.mt file but where a myfits.mt.gz file exists, MIDAS will execute something like "zcat myfits.mt.gz | INTAPE/FITS" Midas 001 > $ls myfits* myfits.mt.gz Midas 002 > INTAPE/FITS 1 xxx myfits.mt zcat myfits.mt.gz Image xxx0001 ...
Image of page 13
Image of page 14
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern