I have 700 files in a single folder. I need to find files that have “h10v03” as part of the name and copy them to a different folder using python.
Heres an example of one of the files: MOD10A1.A2000121.h10v03.005.2007172062725.hdf
I appreciate any help.
Does it need to be python?
A unix shell does that for you quite fine:
In python I would suggest you take a look at os.listdir() and shutil.copy()
EDIT:
some untested code:
with the glob module (untested):