Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

Commit e1d24b73 authored by DUVERNE Pierre-Alexandre's avatar DUVERNE Pierre-Alexandre
Browse files

Delete sanstitre0.py

parent 15f5c320
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Apr 30 19:41:25 2021
@author: duverne, IJClab, Orsay, duverne@protonmail.com
"""
import glob
from muphoten.utils import list_files
import shutil
kped = '/media/duverne/DISQUE ESSB/AT2018cow/kepd/r_tempo/'
lt_r = '/media/duverne/DISQUE ESSB/AT2018cow/LT/tempo/'
lt_i = '/media/duverne/DISQUE ESSB/AT2018cow/LT/tempo_i/'
tch_i = '/home/duverne/gmadet/TCH_sub/i_band/'
tch_r = '/home/duverne/gmadet/TCH_sub/r_band/'
l_kped = glob.glob(kped+'*/*/*', recursive=True)
l_lt_r = glob.glob(lt_r+'*/*/*', recursive=True)
l_lt_i = glob.glob(lt_i+'*/*/*', recursive=True)
l_tch_i = glob.glob(tch_i+'*/*/*', recursive=True)
l_tch_r = glob.glob(tch_r+'*/*/*', recursive=True)
def keep_sub(list_file):
list_file=[file for file in list_file if 'unconv' not in file and '0_sub' in file and 'mask' not in file]
# list_file=[file for file in list_file if 'ATLAS' in file]
return list_file
l_kped = keep_sub(l_kped)
l_lt_r = keep_sub(l_lt_r)
l_lt_i = keep_sub(l_lt_i)
l_tch_i = keep_sub(l_tch_i)
l_tch_r = keep_sub(l_tch_r)
# for im in l_kped:
# name='sub_'+im.split('/')[-3]+'.fits'
# # print(name)
# filePath = shutil.copy(im,
# '/media/duverne/DISQUE ESSB/AT2018cow/kepd/r_band/'+name)
# for im in l_lt_i:
# name='sub_'+im.split('/')[-3]+'.fits'
# print(name)
# filePath = shutil.copy(im,
# '/media/duverne/DISQUE ESSB/AT2018cow/LT/i_sdss/'+name)
# for im in l_lt_r:
# name='sub_'+im.split('/')[-3]+'.fits'
# print(name)
# filePath = shutil.copy(im,
# '/media/duverne/DISQUE ESSB/AT2018cow/LT/r_sdss/'+name)
for im in l_tch_i:
name='sub_'+im.split('/')[-3]+'.fit'
print(name)
filePath = shutil.copy(im,
'/media/duverne/DISQUE ESSB/AT2018cow/TCH/TCH_i/'+name)
for im in l_tch_r:
name='sub_'+im.split('/')[-3]+'.fit'
print(name)
filePath = shutil.copy(im,
'/media/duverne/DISQUE ESSB/AT2018cow/TCH/TCH_r/'+name)
# l_lt_r = dlen()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment