Skip to content

pycovjson-convert unable to read multiple variables on CLI #29

@lewismc

Description

@lewismc

When I invoke the following all is good

lmcgibbn@LMC-056430 ~/Desktop $ pycovjson-convert -i osu_cioss_weekly_msla_geovel_2012_v1.nc.gz.nc -o osu_cioss_weekly_msla_geovel_2012_v1.nc.gz.nc.covjson -v sea_surface_height_above_sea_level
Error occured: Variable "sea_surface_height_above_sea_level" has no axis attribute
Error occured: Variable "sea_surface_height_above_sea_level" has no axis attribute
Converting....
Completed in:  0.03203699999999998 seconds.

however, when I attempt to invoke with multiple parameters it appears that the CLI is not built such that the parameters are interpreted correctly

mcgibbn@LMC-056430 ~/Desktop $ pycovjson-convert -i osu_cioss_weekly_msla_geovel_2012_v1.nc.gz.nc -o osu_cioss_weekly_msla_geovel_2012_v1.nc.gz.nc.covjson -v sea_surface_height_above_sea_level surface_geostrophic_northward_sea_water_velocity

How do I pass multiple variables ? The code suggests that I should be able to pass a List of variables however this is never interpreted from the CLI. I read the covjson specification and one MAY write multiple parameters. Can you clarify the position here @RileyWilliams and then I'll go ahead and submit a PR to resolve.

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