| 1 |
This directory contains utility scripts that were used to modify WFC3 |
| 2 |
test cases from Bruzual to Pickles models. |
| 3 |
|
| 4 |
Only the replace.csh script should be necessary to apply these |
| 5 |
changes again. The files in its foreach loop might need to be updated |
| 6 |
to select only the files of interest. |
| 7 |
|
| 8 |
The procedure used to develop this script is as follows: |
| 9 |
|
| 10 |
|
| 11 |
Substitutions were made on the basis of spectral type described in the |
| 12 |
bzspectype.ascii table (taken from /grp/hst/cdbs/grid/bz77). In some |
| 13 |
cases, exact matches to the spectral |
| 14 |
type were available in the pickles_spectype.txt table (extracted from |
| 15 |
the /grp/hst/cdbs/grid/pickles/AA_README file). |
| 16 |
|
| 17 |
When this was not the case, a list of candidates that matched the |
| 18 |
basic spectral type (OBAFGKM) were extracted and printed out for |
| 19 |
review (candidates.txt). Howard Bushouse selected one of the |
| 20 |
candidates in each case, and this hand-selected substitution was |
| 21 |
recorded in the dictionary 'subs' in match.py. |
| 22 |
|
| 23 |
This python module contains the following functions: |
| 24 |
|
| 25 |
run(): construct and return dictionaries of bz and pickles |
| 26 |
gencand(nomatch,pickles): generate the candidate review list |
| 27 |
replace(bz,pickles): perform the matching and write a file containing |
| 28 |
replacement commands for sed (replace.txt) |
| 29 |
|
| 30 |
The shell script replace.csh was then hand-edited from replace.txt to |
| 31 |
include a loop over the relevant filenames, and run to make the |
| 32 |
filename substitutions. |
| 33 |
|
| 34 |
An additional loop was run interactively in the shell to replace the |
| 35 |
grid/bz77 directory string with the grid/pickles/dat_uvk/ string. |
| 36 |
The replace.csh was subsequently edited to include this step. |
| 37 |
|
| 38 |
|
| 39 |
V. Laidler, 22-23 Sep 2008 |
| 40 |
|
| 41 |
|