Menu

#76 digifits fails to create file when output name is specified

version_1.0
closed-fixed
None
5
2019-11-14
2019-11-13
Ryan Lynch
No

Description: I am trying to use digifits to produce psrfits
search-mode data from data in the GUPPI RAW format. When I use the
the -o command to specify the output name I get an error almost
immediately.

Command: digifits -o ./guppi_58626_J1125+7819_0013 -D 11.217356 -do_dedisp -F 256:D -t 40.96e-6 -p 4 -b 8 -K ../guppi_58626_J1125+7819_0013.0000.raw

Output:

digifits: requested tsamp=4.096e-05 rate=781250
actual tsamp=0 (tscrunch=0)
digifits: input data not detected
digifits: performing coherent dedispersion at 11.2174
digifits: creating 256 by 128 back channel filterbank
digifits: dedispersion filter length=128 (minimum=32) complex samples
digifits: 256 channel dedispersing filterbank requires 128 samples
digifits: blocksize=128 samples or 2.125 MB

Error::stack
dsp::SingleThread::run
dsp::SingleThread::run
Pulsar::Archive::unload
Error::FailedSys
Error::message
failed rename - No such file or directory

Related

Bugs: #76

Discussion

  • Willem van Straten

    clue:

    cd dspsr
    ./greps rename
    

    yields

    Kernel/Formats/fits/FITSOutputFile.C:      if (rename( mangled_output_filename.c_str(), output_filename.c_str()))
    Kernel/Formats/fits/dsp/FITSOutputFile.h:    //! Use a mangled file name for output; rename on file close
    
     
  • Andrew Jameson

    Andrew Jameson - 2019-11-14

    FITSOutputFile uses a mangled filename to when the file is being written, and then renames the file to the correct name once the file writing has completed.

     
  • Andrew Jameson

    Andrew Jameson - 2019-11-14
    • status: open --> closed-fixed
    • assigned_to: Andrew Jameson
     
    • Ryan Lynch

      Ryan Lynch - 2019-11-15

      I tested this on commit d9c25565 and it seems to be working now.

      Thanks!
      Ryan

      On 11/14/19 5:38 PM, Andrew Jameson wrote:

      • status: open --> closed-fixed
      • assigned_to: Andrew Jameson
      • Comment:

      Fixed in commit: 463b36
      https://sourceforge.net/p/dspsr/code/ci/46ebe69f377394371e3c2691c66aa7f675695eec/


      [bugs:#76] https://sourceforge.net/p/dspsr/bugs/76/ digifits fails
      to create file when output name is specified

      Status: closed-fixed
      Group: version_1.0
      Created: Wed Nov 13, 2019 08:49 PM UTC by Ryan Lynch
      Last Updated: Thu Nov 14, 2019 10:37 PM UTC
      Owner: Andrew Jameson

      Description: I am trying to use digifits to produce psrfits
      search-mode data from data in the GUPPI RAW format. When I use the
      the -o command to specify the output name I get an error almost
      immediately.

      Command: |digifits -o ./guppi_58626_J1125+7819_0013 -D 11.217356
      -do_dedisp -F 256:D -t 40.96e-6 -p 4 -b 8 -K
      ../guppi_58626_J1125+7819_0013.0000.raw|

      Output:

      digifits: requested tsamp=4.096e-05 rate=781250
      actual tsamp=0 (tscrunch=0)
      digifits: input data not detected
      digifits: performing coherent dedispersion at 11.2174
      digifits: creating 256 by 128 back channel filterbank
      digifits: dedispersion filter length=128 (minimum=32) complex samples
      digifits: 256 channel dedispersing filterbank requires 128 samples
      digifits: blocksize=128 samples or 2.125 MB
      
      Error::stack
      dsp::SingleThread::run
      dsp::SingleThread::run
      Pulsar::Archive::unload
      Error::FailedSys
      Error::message
      failed rename - No such file or directory
      

      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/dspsr/bugs/76/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

      --
      Ryan Lynch

       

      Related

      Bugs: #76

  • Andrew Jameson

    Andrew Jameson - 2019-11-14

    Fixed in commit: 463b36

     

Log in to post a comment.

MongoDB Logo MongoDB
Gen AI apps are built with MongoDB Atlas
Atlas offers built-in vector search and global availability across 125+ regions. Start building AI apps faster, all in one place.