Skip to content

Rosette Summary file name #204

@upsonp

Description

@upsonp

I've come across an issue with yet again how DFO does things. I'm processing BTL/ROS files from what we call a 'fix station' and the files have next to no metadata. The BTL file processes fine, but when I try to use ctd.read.from_summary() I get an error on line 451 name = _basename(fname)[1]

The files don't have a * FileName = xxxx line so there is no file name.

The ctd.read.from_btl() function solves this on lines 278-280 with:

    if "name" not in metadata:
        name = _basename(fname)[1]
        metadata["name"] = str(name)

I'd like to do the same thing for the ctd.read.from_cnv() function, called by the ctd.read.from_summary() function if it's not an issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions