Skip to content

Allow generating variables wanted from a list of h5 paths #504

@andypbarrett

Description

@andypbarrett

I'm trying to subset ATL03 granules for a list of variables that I have as a list of H5 paths

['gt1l/heights/delta_time',
 'gt1l/heights/dist_ph_across',
 'gt1l/heights/dist_ph_along',
 'gt1l/heights/h_ph',
 'gt1l/heights/lat_ph',
 'gt1l/heights/lon_ph',
 'gt1l/heights/pce_mframe_cnt',
 'gt1l/heights/ph_id_channel',
 'gt1l/heights/ph_id_pulse',
 'gt1l/heights/quality_ph',
 'gt1l/heights/signal_conf_ph',
 'gt1l/geolocation/delta_time',
 'gt1l/geolocation/ph_index_beg',
 'gt1l/geolocation/podppd_flag',
 'gt1l/geolocation/segment_dist_x',
 'gt1l/geolocation/segment_id',
 'gt1l/geolocation/segment_length',
 'gt1l/geolocation/segment_ph_cnt',
 'gt1l/geolocation/sigma_across',
 'gt1l/geolocation/sigma_along',
 'gt1l/geolocation/sigma_h',
 'gt1l/geolocation/surf_type',
 'gt1l/geolocation/velocity_sc']

However, I can not find an option in Query.order_vars.append to do this. I would expect to be able to do something like;

region_a.order_vars.append(var_list=['gt1l/heights/delta_time', 'gt1l/heights/dist_ph_across', 'gt1l/heights/dist_ph_along',...])

Am I missing something?

I've tried

region_a.order_vars.append(region_a.order_vars.parse_var_list(variable_list))

But this creates a long list of variables that I did not specify.

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