File tree 2 files changed +11
-8
lines changed
2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -420,7 +420,7 @@ def _read_roman(self, filters=None):
420
420
except ImportError :
421
421
raise ImportError ("Need pandas to read Roman ST throughputs." )
422
422
423
- _fn = 'WFIRST_WIMWSM_throughput_data_190531.xlsm '
423
+ _fn = 'Roman_effarea_20201130.xlsx '
424
424
425
425
A = np .pi * (0.5 * 2.4 )** 2
426
426
@@ -430,11 +430,14 @@ def _read_roman(self, filters=None):
430
430
if fn != _fn :
431
431
continue
432
432
433
- df = pd .read_excel (self .path + '/' + _fn , sheet_name = 'EffectiveArea' ,
434
- header = 18 )
433
+ df = pd .read_excel (self .path + '/' + _fn ,
434
+ sheet_name = 'Roman_effarea_20201130' ,
435
+ header = 1 )
435
436
436
- cols = df .columns
437
- x = df ['microns' ].to_numpy ()
437
+ _cols = df .columns
438
+ cols = [col .strip () for col in _cols ]
439
+
440
+ x = df ['Wave' ].to_numpy ()
438
441
439
442
for col in cols :
440
443
if col [0 ] != 'F' :
@@ -444,7 +447,7 @@ def _read_roman(self, filters=None):
444
447
cent = float (col [1 ] + '.' + col [2 :])
445
448
446
449
# This is an effective area. Take T = A_eff / (pi * 1.2**2)
447
- y = df [col ].to_numpy () / A
450
+ y = df [' ' + col ].to_numpy () / A
448
451
y [x > 2 ] = 0 # spurious spike at ~2.6 microns
449
452
450
453
data [pre ] = self ._get_filter_prop (np .array (x ), np .array (y ), cent )
Original file line number Diff line number Diff line change 61
61
'080924ch1trans_full.txt' ,
62
62
'080924ch2trans_full.txt' ,
63
63
None ],
64
- 'roman' : ['https://roman.gsfc.nasa.gov/science/201907 /' ,
65
- 'WFIRST_WIMWSM_throughput_data_190531.xlsm ' ,
64
+ 'roman' : ['https://roman.gsfc.nasa.gov/science/RRI /' ,
65
+ 'Roman_effarea_20201130.xlsx ' ,
66
66
None ],
67
67
#'wfc': ['http://www.stsci.edu/hst/acs/analysis/throughputs/tables',
68
68
# 'wfc_F435W.dat',
You can’t perform that action at this time.
0 commit comments