#48 ncrcat silently corrupts packed data

closed-fixed
None
7
2011-12-07
2011-09-26
Anonymous
No

When ncrcat is applied to packed files (packed as short with add_offset and scale_factor), the add_offset and scale_factor are blindly copied from the first file. The resulting file can thus contain invalid data, as the scale factors may (and many times, do) differ between files.

As I see it, there are two possible fixes:
1) Implement a warning or better, an error, telling the person to use ncpdq first, or, better:
2) Modify the scale and add factors so that the tool produces valid output.

Thank you for your attention to this.

Discussion

  • Charlie Zender

    Charlie Zender - 2011-09-28

    Thank you for noticing this. I agree with you assessment. I will try to implement your fix #1. Note that the same issue affects ncecat. This is TODO nco1025.

     
  • Charlie Zender

    Charlie Zender - 2011-09-28
    • priority: 5 --> 7
    • assigned_to: nobody --> zender
     
  • Charlie Zender

    Charlie Zender - 2011-12-07

    FYI I just committed the patch to WARN when this MIGHT occur. Please test. Closing this report.

     
  • Charlie Zender

    Charlie Zender - 2011-12-07
    • status: open --> closed
     
  • Charlie Zender

    Charlie Zender - 2011-12-07
    • status: closed --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks