Summary: | Fits Open fails for files with parenthesis in path or name | ||
---|---|---|---|
Product: | [Applications] kstars | Reporter: | schwim <schwim> |
Component: | general | Assignee: | Jasem Mutlaq <mutlaqja> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | git | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/kstars/f79a51cb1883eb2e222f7e0afe13fc4acc5ad56a | Version Fixed In: | 2.9.3 |
Description
schwim
2018-02-06 17:26:21 UTC
It seems you can't have filenames with brackets or parentheses since they have special meanings in the FITS extended file syntax. More information here: https://heasarc.gsfc.nasa.gov/docs/software/fitsio/filters.html Not sure if we can have a workaround for this. (In reply to Jasem Mutlaq from comment #1) > It seems you can't have filenames with brackets or parentheses since they > have special meanings in the FITS extended file syntax. > > More information here: > https://heasarc.gsfc.nasa.gov/docs/software/fitsio/filters.html > > Not sure if we can have a workaround for this. Confirmed that files with brackets cause the same problem. The workaround above does not work appear to work on OSX due to how the OSX software handles links. I see the CFITSIO docs specify fits_open_diskfile as a possible solution where such characters are used. Not sure if this would help: https://heasarc.gsfc.nasa.gov/docs/software/fitsio/c/c_user/node35.html KStars uses fits_open_image not fits_open_file.. so if fits_open_diskfile is used, we need to move manually to image HDU which can be done. Will see if this can be implemented later on. Git commit f79a51cb1883eb2e222f7e0afe13fc4acc5ad56a by Jasem Mutlaq. Committed on 09/02/2018 at 10:01. Pushed by mutlaqja into branch 'master'. Use fits_open_diskfile to enable reading filename that may contain paranthesis and brackets. FIXED-IN:2.9.3 M +22 -1 kstars/ekos/align/align.cpp M +33 -1 kstars/fitsviewer/fitsdata.cpp M +16 -0 kstars/indi/indiccd.cpp https://commits.kde.org/kstars/f79a51cb1883eb2e222f7e0afe13fc4acc5ad56a |