Skip to content

overriding/adding new metadata variables #18

Description

@aaarendt

In working with NSIDC downloaded data I came across two metadata variables (Parameter Codes and Pit Comments) that were not yet mapped.

As I understand, the ExtendableVariables class only applies to override of the primary variables? (I initially tried adding the two new variables to the overrides.yaml file but this did not work).

My current workaround is:

from insitupy.campaigns.snowex import SnowExProfileData
from insitupy.variables import 
from insitupy.campaigns.snowex.snowex_profile_data_collection import SnowExProfileDataCollection

fname = "fake_data.csv"
my_data = SnowExProfileDataCollection.from_csv(
    fname, allow_map_failure=True,
     metadata_variable_files=SnowExProfileData.DEFAULT_METADATA_VARIABLE_FILES + ["./override_metadata.yaml"],
)

This is totally fine, but wanted to be sure there wasn't a more elegant approach!

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