ArgoCanada / argopandas

A pandas.DataFrame-based interface to Argo ocean float data
https://ArgoCanada.github.io/argopandas/
5 stars 1 forks source link

`argo.info()` probably needs to ignore index values on concat #15

Open paleolimbot opened 3 years ago

paleolimbot commented 3 years ago
profiles_dac = pd.concat([
    argo.float(6904117).bio_prof,
    argo.float(6904117).prof
])
dest_dir = 'profiles'

profiles_dac['dest_file'] = [os.path.join(dest_dir, os.path.basename(f)) for f in profiles_dac['file']]
profiles_dac['url'] = [argo.url('dac/' + f) for f in profiles_dac['file']]

profiles_dl = profiles_dac[[not os.path.exists(f) for f in profiles_dac['dest_file']]]
download_async(zip(profiles_dl['url'], profiles_dl['dest_file']))

profiles = pd.DataFrame({'file': profiles_dac['dest_file']})
argo.path.info(profiles)