Open jklenzing opened 3 years ago
It looks like using the get_original_filenames
function in cdasws will handle this in a much more streamlined way. It won't eliminate the problem, as not all datasets are supported here.
cdasws
was incorporated in #145, solving this for most datasets.
To close, I think that the following lines need to be simplified. https://github.com/pysat/pysatNASA/blob/b0003c1405f2bdb06187643ddf1533c52fc06bb7/pysatNASA/instruments/methods/cdaweb.py#L769-L788
Probably need to incorporate a directory structure as part of supported_tags
so that the layers loop can be removed.
Work on after merge of #200
Some of the target parsing in the cdaweb methods for recognizing file names could be improved.
Alternatively, better incorporation of the official API may replace these routines entirely.