Skip to content

Problem with trim_raw start time filtering #632

@ksterne

Description

@ksterne

Question

So, in short, when using the -sd -st options with trim_raw should the output file not include records before the time and date specified, even if the values given don't exactly match those in the file records?

Category

  • Usage
  • Troubleshooting
  • Software Design
  • Data related
  • Capabilities
  • Clarity
  • Workflow

Details

So, I'm looking into an issue that @egthomas and I have found on the DDWG where there's a few bpk rawacf files that have an issue of the first record having the date at Jan. 1, 1970. With regular make_fit processing, this record causes the processes to stop since the time/date is before the start of the radar operations from the radar.dat file. The next record in the rawacf file has a good time that doesn't exactly match the timestamp from the filenaming convention, but it's within a minute or so. So, it seems as though if we could remove the first record, the rest of the file can be usable again.

So, I remembered there's a few trimming binaries with rst and looked into the options for trim_raw. See the example below for how I'm using it. So, my first question is: should I be expecting the first record from 1970 to be skipped over and then the data would start at 20240325.2342.02 (the first good record in the file)?

Using the example below on the release/rst-5.1 branch, I'm still seeing the first erroneous record in the output file.

I've looked more into this and maybe have some places where things aren't working, but I want to make sure I'm using the trim_raw program correctly and it's not a case of user error. I can see about providing the bpk rawacf file that is used in the example if someone needs it.

Example

trim_raw  -sd 20240325 -st 20:40 -ed 20240326 -st 0000 20240325.2341.15.bpk.a.rawacf > 20240325.2341.15.bpk.a.rawacf.trimmed

Code

Installation Process

Using the release/rst-5.1 branch to start on an Ubuntu 22 virtual machine

Documentation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions