deepskystacker / DSS

DeepSkyStacker
Other
946 stars 94 forks source link

Write output FITS files in compressed format. #18

Open perdrix52 opened 6 years ago

perdrix52 commented 6 years ago

When specifying the name of the output FITS file to be created at run time, the user can indicate that images should be written in tile-compressed format by enclosing the compression parameters in square brackets following the root disk file name. Here are some examples of the extended file name syntax for specifying tile-compressed output images:

myfile.fit[compress]  - use the default compression algorithm (Rice)
                        and the default tile size (row by row)

myfile.fit[compress GZIP] - use the specified compression algorithm;
myfile.fit[compress Rice]    (only the first letter of the algorithm 
myfile.fit[compress PLIO]     name is required)
myfile.fit[compress HCOMPRESS]

myfile.fit[compress R 100,100]   - use 100 x 100 pixel tile size
myfile.fit[compress R 100,100;2] - as above, and use noisebits = 2
perdrix52 commented 6 years ago

I tried to do this but it didn't work - just wrote a file with [compress] at the end of the fileid. So clearly it's not quite that simple.

David