Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-13903

CFITSIO is unable to open fits file when there is a blank character in the path

    XMLWordPrintable

    Details

    • Team:
      Data Access and Database

      Description

      CFITSIO is not able to open a fits file if there is a blank character in the path name. This situation happens when one segment of the dataId contains a blank. For instance some early CFHT data have an OBJECT entry in the fits header which is equal to "D3 (Groth)", when ingesting the image, the blank is kept in the butler directory structure and CFITSIO is returning and error status = 104 when trying to open the file.

        Attachments

          Activity

          Hide
          price Paul Price added a comment -

          Is the correct filename getting to cfitsio? That is, is this a bug in cfitsio or our system?

          Show
          price Paul Price added a comment - Is the correct filename getting to cfitsio? That is, is this a bug in cfitsio or our system?
          Hide
          boutigny Dominique Boutigny added a comment -

          I tried to open the file using the fitsio python module and it returned an error. The same file (with the blank in the path name) can be opened by astropy. So it can be considered as a bug in cfitsio. I don't know what is best: correct cfitsio or try to find a workaround in DM ?

          Show
          boutigny Dominique Boutigny added a comment - I tried to open the file using the fitsio python module and it returned an error. The same file (with the blank in the path name) can be opened by astropy. So it can be considered as a bug in cfitsio. I don't know what is best: correct cfitsio or try to find a workaround in DM ?
          Hide
          tjenness Tim Jenness added a comment -

          I'll try to remember to sanitize filenames after template expansion in gen3 butler.

          Show
          tjenness Tim Jenness added a comment - I'll try to remember to sanitize filenames after template expansion in gen3 butler.
          Hide
          swinbank John Swinbank added a comment -

          Team → DAX since this is a Butler/persistence problem. Fritz Mueller, if you need Pipelines to futz with cfitsio, give us a shout.

          Show
          swinbank John Swinbank added a comment - Team → DAX since this is a Butler/persistence problem. Fritz Mueller , if you need Pipelines to futz with cfitsio, give us a shout.

            People

            Assignee:
            fritzm Fritz Mueller
            Reporter:
            boutigny Dominique Boutigny
            Watchers:
            Dominique Boutigny, John Swinbank, Paul Price, Tim Jenness
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: