<commit_before>#!/usr/bin/env python
# encoding: utf-8
"""
prepare.py

Scripts to "prepare" the FLT files for the 3D-HST reduction:

Direct images:
    1) Align to WCS reference
    2) Subtract sky backgrounds
    3) Run multidrizzle to flag cosmic rays
    4) Make mosaics combining pointings for a given field
    
Grism images:
    1) Copy shifts from direct images
    2) Divide by the F140W flat
    3) Subtract sky background
    4) Run multidrizzle to flag cosmic rays
    5) ...
    
$ URL: https://subversion.assembla.com/svn/threedhst_internal/trunk/prepare.py $
$ Author: gbrammer $
$ Date: 2011-05-18 00:37:27 -0500 (Wed, 18 May 2011) $

"""
__version__ = " $ Rev: 2 $"

def COSMOS():
    from threedhst.prep_flt_files import process_3dhst_pair as pair
    import threedhst.prep_flt_files

    os.chdir('/3DHST/Spectra/Work/COSMOS/PREP_FLT')
    ALIGN = '/3DHST/Ancillary/COSMOS/WIRDS/WIRDS_Ks_100028+021230_T0002.fits'
    
    #### Direct images only
    direct=glob.glob('*30_asn.fits')
    gris = glob.glob('*40_asn.fits')
    for i in range(len(direct)):
        pair(direct[i], grism[i], ALIGN_IMAGE = ALIGN, SKIP_GRISM=True)
    
    <commit_msg>Can't put a space after $ in svn:keyword.<commit_after>#!/usr/bin/env python
# encoding: utf-8
"""
prepare.py

Scripts to "prepare" the FLT files for the 3D-HST reduction:

Direct images:
    1) Align to WCS reference
    2) Subtract sky backgrounds
    3) Run multidrizzle to flag cosmic rays
    4) Make mosaics combining pointings for a given field
    
Grism images:
    1) Copy shifts from direct images
    2) Divide by the F140W flat
    3) Subtract sky background
    4) Run multidrizzle to flag cosmic rays
    5) ...
    
$URL$
$Author$
$Date$

"""
__version__ = " $Rev$"

def COSMOS():
    from threedhst.prep_flt_files import process_3dhst_pair as pair
    import threedhst.prep_flt_files

    os.chdir('/3DHST/Spectra/Work/COSMOS/PREP_FLT')
    ALIGN = '/3DHST/Ancillary/COSMOS/WIRDS/WIRDS_Ks_100028+021230_T0002.fits'
    
    #### Direct images only
    direct=glob.glob('*30_asn.fits')
    gris = glob.glob('*40_asn.fits')
    for i in range(len(direct)):
        pair(direct[i], grism[i], ALIGN_IMAGE = ALIGN, SKIP_GRISM=True)
    
    
{'fraction_non_alphanumeric': 0.109107303877367, 'fraction_numerical': 0.044634806131650134, 'mean_word_length': 3.2266666666666666, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2422575', 'n_tokens_mistral': 917, 'n_tokens_neox': 823, 'n_words': 218}