Skip to content

Commit

Permalink
also transfer ivar files
Browse files Browse the repository at this point in the history
  • Loading branch information
moustakas committed May 27, 2016
1 parent 30fe2d2 commit 2a6a206
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions py/legacyanalysis/get-brick-files.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
from legacypipe.common import LegacySurveyData, wcs_for_brick, ccds_touching_wcs

import numpy as np
from astropy.io import fits
import matplotlib.pyplot as plt

import pdb

def main():
Expand Down Expand Up @@ -57,9 +54,15 @@ def main():
brickfiles.write(skyfiles[ii]+'\n')
for ii in range(nccd):
brickfiles.write(imagefiles[ii]+'\n')
for ii in range(nccd):
brickfiles.write(imagefiles[ii].replace('ooi', 'oow')+'\n')
for ii in range(nccd):
brickfiles.write(imagefiles[ii].replace('ooi', 'ood')+'\n')
brickfiles.close()

#cmd = "rsync -avzPn --files-from='/tmp/brickfiles.txt' /global/cscratch1/sd/desiproc/dr3/ nyx:/destination/path/"
cmd = "rsync -avP --files-from='/tmp/brickfiles.txt' cori:/global/cscratch1/sd/desiproc/dr3/ /global/work/decam/versions/work/"
print('You should run the following command:')
print(' {}'.format(cmd))

if __name__ == "__main__":
main()

0 comments on commit 2a6a206

Please sign in to comment.