stcorp / harp

Data harmonization toolset for scientific earth observation data
http://stcorp.github.io/harp/doc/html/index.html
BSD 3-Clause "New" or "Revised" License
55 stars 18 forks source link

Extend input for harp.import_product to .pth files #269

Closed StevenCompernolle closed 1 year ago

StevenCompernolle commented 2 years ago

Currently harp.import_product allows for a filename, list of filenames, a globbing (glob.glob()) pattern, or a list of globbing patterns.

In analogy to the commandline harpmerge, it would be handy if a .pth file (or list of .pth files) would also be allowed.

Of course, with some extra coding within python, one could first import the .pth file and convert to a list of filenames, and then put this as input to harp.import_product. But it would be easier if the harp python interface could directly do this.

svniemeijer commented 2 years ago

Good idea. We will add it to the list.

svniemeijer commented 1 year ago

Implemented in fec035a60186e6baeae026ffec6aaa56a0652a8d