File tree 3 files changed +721
-12
lines changed
schema/sdss5db/targetdb/data_table/cadence
3 files changed +721
-12
lines changed Original file line number Diff line number Diff line change 1
1
from roboscheduler .cadence import CadenceList
2
2
3
+ output = ""
4
+
5
+ for i in range (2 ,41 ):
6
+ output += f"[bright_mc_{ i } x1_v2]\n label_root = bright_mc_{ i } x1\n "
7
+ output += f"label_version = _v2\n nepochs = { i } \n "
8
+ output += f"skybrightness = { ' ' .join (['1.00' for j in range (i )])} \n "
9
+ output += f"instrument = { ' ' .join (['BOSS' for j in range (i )])} \n "
10
+ output += f"delta = { ' ' .join (['0.00' for j in range (i )])} \n "
11
+ output += f"delta_min = { ' ' .join (['0.00' for j in range (i )])} \n "
12
+ output += f"delta_max = { ' ' .join (['0.00' for j in range (i )])} \n "
13
+ output += f"nexp = { ' ' .join (['1' for j in range (i )])} \n "
14
+ output += f"max_length = { ' ' .join (['0.50' for j in range (i )])} \n "
15
+ output += f"obsmode_pk = { ' ' .join (['bright_mc' for j in range (i )])} \n "
16
+ output += f"min_moon_sep = { ' ' .join (['15' for j in range (i )])} \n "
17
+ output += f"min_deltav_ks91 = { ' ' .join (['-3' for j in range (i )])} \n "
18
+ output += f"min_twilight_ang = { ' ' .join (['8' for j in range (i )])} \n "
19
+ output += f"max_airmass = { ' ' .join (['2' for j in range (i )])} \n \n "
20
+
21
+ with open ("bright_mc_ext.cfg" , "w" ) as cfg_file :
22
+ print (output , file = cfg_file )
23
+
3
24
clist = CadenceList ()
4
25
clist .fromcfg ("bright_mc_ext.cfg" )
5
26
You can’t perform that action at this time.
0 commit comments