JuliaAstro / FITSIO.jl

Flexible Image Transport System (FITS) file support for Julia
http://juliaastro.org/FITSIO.jl/
MIT License
55 stars 29 forks source link

How to read a folder that contains fits file? #162

Closed assia855 closed 3 years ago

assia855 commented 3 years ago

ERROR: LoadError: CFITSIO has encountered an error while processing SyntheticData/inta.fits. Error code 104: could not open the named file Detailed error message follows: failed to find or open the following file: (ffopen) SyntheticData/inta.fits

I'm trying to read a file full of Fits file using the following code: DISK = get(Array,read(FitsImage,"SyntheticData/inta*.fits")), but it doesn't seems that it works.Any better idea to get it done please.

emmt commented 3 years ago

You cannot (for now) read multiple files in FITSIO or in EasyFITS. This is not an error but rather a feature request. You may consider looking at the Glob package for getting a list of file names matching a pattern.

assia855 commented 3 years ago

Thank you Professor, Actually I end up using Glob. It works for me now.