create_input_json.py 5.22 KB
Newer Older
jonas's avatar
jonas committed
1
2
import json

3
4
5
6
7
8
"""

#April 2020

# CAN also do the L1 files - but must set bit_convert_scale to false, and scale data to False for the flat fields, and presumably same for the input data

jonas's avatar
jonas committed
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
science_april = ['solo_L0_phi-hrt-ilam_20200420T141752_V202004221450C_0024160030000.fits',
'solo_L0_phi-hrt-ilam_20200420T142022_V202004221451C_0024160031000.fits',
'solo_L0_phi-hrt-ilam_20200420T142252_V202004221452C_0024160032000.fits',
'solo_L0_phi-hrt-ilam_20200420T142522_V202004221457C_0024160033000.fits',
'solo_L0_phi-hrt-ilam_20200420T142752_V202004221511C_0024160034000.fits',
'solo_L0_phi-hrt-ilam_20200420T143023_V202004221517C_0024160035000.fits', 
'solo_L0_phi-hrt-ilam_20200420T143253_V202004221518C_0024160036000.fits',
'solo_L0_phi-hrt-ilam_20200420T143523_V202004221522C_0024160037000.fits', 
'solo_L0_phi-hrt-ilam_20200420T143753_V202004231605C_0024160038000.fits',
'solo_L0_phi-hrt-ilam_20200420T144023_V202004231605C_0024160039000.fits']

flatfield_fits_filename = '/data/slam/home/sinjan/fits_files/april_avgd_2020_flat.fits' #solo_L0_phi-hrt-flat_0667134081_V202103221851C_0162201100.fits'

darkfield_fits_filename = '../fits_files/solo_L0_phi-fdt-ilam_20200228T155100_V202002281636_0022210004_000.fits'

science_april = ['/data/slam/home/sinjan/fits_files/' + i for i in science_april]

input_dict = {
  'data_f': science_april,
  'flat_f' : flatfield_fits_filename,
  'dark_f' : darkfield_fits_filename
}

32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
json.dump(input_dict, open(f"./input_jsons/april_2020.txt", "w"))

"""

"""
#April 2020 L1

# CAN also do the L1 files - but must set bit_convert_scale to false, and scale data to False for the flat fields, and presumably same for the input data

science_april = ['solo_L1_phi-hrt-ilam_20200420T141802_V202107221036C_0024160030.fits',
'solo_L1_phi-hrt-ilam_20200420T142032_V202107221036C_0024160031.fits',
'solo_L1_phi-hrt-ilam_20200420T142302_V202107221036C_0024160032.fits',
'solo_L1_phi-hrt-ilam_20200420T142532_V202107221037C_0024160033.fits',
'solo_L1_phi-hrt-ilam_20200420T142803_V202107221037C_0024160034.fits',
'solo_L1_phi-hrt-ilam_20200420T143033_V202107221037C_0024160035.fits',
'solo_L1_phi-hrt-ilam_20200420T143303_V202107221037C_0024160036.fits',
'solo_L1_phi-hrt-ilam_20200420T143533_V202107221037C_0024160037.fits',
'solo_L1_phi-hrt-ilam_20200420T143803_V202107221037C_0024160038.fits',
'solo_L1_phi-hrt-ilam_20200420T144033_V202107221038C_0024160039.fits']

flatfield_fits_filename = '/data/slam/home/sinjan/fits_files/april_avgd_2020_flat.fits' #solo_L0_phi-hrt-flat_0667134081_V202103221851C_0162201100.fits'

darkfield_fits_filename = '../fits_files/solo_L0_phi-fdt-ilam_20200228T155100_V202002281636_0022210004_000.fits'

science_april = ['/data/slam/home/sinjan/fits_files/' + i for i in science_april]

input_dict = {
  'data_f': science_april,
  'flat_f' : flatfield_fits_filename,
  'dark_f' : darkfield_fits_filename
}

json.dump(input_dict, open(f"./input_jsons/april_2020_L1.txt", "w"))
"""

"""
#Nov 17 2020 L1

# CAN also do the L1 files - but must set bit_convert_scale to false, and scale data to False for the flat fields, and presumably same for the input data

jonas's avatar
jonas committed
72
science_nov = ['solo_L1_phi-hrt-ilam_20201117T170209_V202108301639C_0051170001.fits']#['solo_L1_phi-hrt-ilam_20201117T170209_V202107060747C_0051170001.fits']
73
74
75
76
77

flatfield_fits_filename = '/data/slam/home/sinjan/fits_files/april_avgd_2020_flat.fits' #solo_L0_phi-hrt-flat_0667134081_V202103221851C_0162201100.fits'

darkfield_fits_filename = '../fits_files/solo_L0_phi-fdt-ilam_20200228T155100_V202002281636_0022210004_000.fits'

78
science_nov = ['/data/slam/home/sinjan/fits_files/' + i for i in science_nov]
79
80
81
82
83
84
85
86
87
88

input_dict = {
  'data_f': science_nov,
  'flat_f' : flatfield_fits_filename,
  'dark_f' : darkfield_fits_filename
}

json.dump(input_dict, open(f"./input_jsons/nov_2020_L1.txt", "w"))
"""

jonas's avatar
jonas committed
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112

#Nov 17 2020 L1 Feb Flats

# CAN also do the L1 files - but must set bit_convert_scale to false, and scale data to False for the flat fields, and presumably same for the input data

science_nov = ['solo_L1_phi-hrt-ilam_20201117T170209_V202107060747C_0051170001.fits']

flatfield_fits_filename = '/data/slam/home/sinjan/fits_files/solo_L0_phi-hrt-flat_0667134081_V202103221851C_0162201100.fits' #solo_L0_phi-hrt-flat_0667134081_V202103221851C_0162201100.fits'

darkfield_fits_filename = '../fits_files/solo_L0_phi-fdt-ilam_20200228T155100_V202002281636_0022210004_000.fits'

science_nov = ['/data/slam/home/sinjan/fits_files/' + i for i in science_nov]

input_dict = {
  'data_f': science_nov,
  'flat_f' : flatfield_fits_filename,
  'dark_f' : darkfield_fits_filename
}

json.dump(input_dict, open(f"./input_jsons/nov_2020_L1_feb_flats.txt", "w"))



"""
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
#Feb 2021 L1


science_feb = ['solo_L1_phi-hrt-ilam_20210223T170002_V202107221048C_0142230201.fits']

flatfield_fits_filename = '/data/slam/home/sinjan/fits_files/solo_L0_phi-hrt-flat_0667134081_V202103221851C_0162201100.fits' #solo_L0_phi-hrt-flat_0667134081_V202103221851C_0162201100.fits'

darkfield_fits_filename = '../fits_files/solo_L0_phi-fdt-ilam_20200228T155100_V202002281636_0022210004_000.fits'

science_feb = ['/data/slam/home/sinjan/fits_files/' + i for i in science_feb]

input_dict = {
  'data_f': science_feb,
  'flat_f' : flatfield_fits_filename,
  'dark_f' : darkfield_fits_filename
}

jonas's avatar
jonas committed
130
131
132
json.dump(input_dict, open(f"./input_jsons/feb_2k_2021_L1.txt", "w"))

"""