cgse 2023.38.0__py3-none-any.whl → 2024.1.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- README.md +27 -0
- bump.py +85 -0
- cgse-2024.1.4.dist-info/METADATA +38 -0
- cgse-2024.1.4.dist-info/RECORD +5 -0
- {cgse-2023.38.0.dist-info → cgse-2024.1.4.dist-info}/WHEEL +1 -2
- cgse-2023.38.0.dist-info/COPYING +0 -674
- cgse-2023.38.0.dist-info/COPYING.LESSER +0 -165
- cgse-2023.38.0.dist-info/METADATA +0 -144
- cgse-2023.38.0.dist-info/RECORD +0 -649
- cgse-2023.38.0.dist-info/entry_points.txt +0 -75
- cgse-2023.38.0.dist-info/top_level.txt +0 -2
- egse/__init__.py +0 -12
- egse/__main__.py +0 -32
- egse/aeu/aeu.py +0 -5235
- egse/aeu/aeu_awg.yaml +0 -265
- egse/aeu/aeu_crio.yaml +0 -273
- egse/aeu/aeu_cs.py +0 -626
- egse/aeu/aeu_devif.py +0 -321
- egse/aeu/aeu_main_ui.py +0 -912
- egse/aeu/aeu_metrics.py +0 -131
- egse/aeu/aeu_protocol.py +0 -463
- egse/aeu/aeu_psu.yaml +0 -204
- egse/aeu/aeu_ui.py +0 -873
- egse/aeu/arbdata/FccdRead.arb +0 -2
- egse/aeu/arbdata/FccdRead_min_points.arb +0 -2
- egse/aeu/arbdata/HeaterSync_FccdRead.arb +0 -2
- egse/aeu/arbdata/HeaterSync_ccdRead25.arb +0 -2
- egse/aeu/arbdata/HeaterSync_ccdRead31_25.arb +0 -2
- egse/aeu/arbdata/HeaterSync_ccdRead37_50.arb +0 -2
- egse/aeu/arbdata/HeaterSync_ccdRead43_75.arb +0 -2
- egse/aeu/arbdata/HeaterSync_ccdRead50.arb +0 -2
- egse/aeu/arbdata/Heater_FccdRead_min_points.arb +0 -2
- egse/aeu/arbdata/ccdRead25.arb +0 -2
- egse/aeu/arbdata/ccdRead25_150ms.arb +0 -2
- egse/aeu/arbdata/ccdRead31_25.arb +0 -2
- egse/aeu/arbdata/ccdRead31_25_150ms.arb +0 -2
- egse/aeu/arbdata/ccdRead37_50.arb +0 -2
- egse/aeu/arbdata/ccdRead37_50_150ms.arb +0 -2
- egse/aeu/arbdata/ccdRead43_75.arb +0 -2
- egse/aeu/arbdata/ccdRead43_75_150ms.arb +0 -2
- egse/aeu/arbdata/ccdRead50.arb +0 -2
- egse/aeu/arbdata/ccdRead50_150ms.arb +0 -2
- egse/alert/__init__.py +0 -1049
- egse/alert/alertman.yaml +0 -37
- egse/alert/alertman_cs.py +0 -234
- egse/alert/alertman_ui.py +0 -603
- egse/alert/gsm/beaglebone.py +0 -138
- egse/alert/gsm/beaglebone.yaml +0 -51
- egse/alert/gsm/beaglebone_cs.py +0 -108
- egse/alert/gsm/beaglebone_devif.py +0 -130
- egse/alert/gsm/beaglebone_protocol.py +0 -48
- egse/bits.py +0 -318
- egse/camera.py +0 -44
- egse/collimator/__init__.py +0 -0
- egse/collimator/fcul/__init__.py +0 -0
- egse/collimator/fcul/ogse.py +0 -1077
- egse/collimator/fcul/ogse.yaml +0 -14
- egse/collimator/fcul/ogse_cs.py +0 -154
- egse/collimator/fcul/ogse_devif.py +0 -358
- egse/collimator/fcul/ogse_protocol.py +0 -129
- egse/collimator/fcul/ogse_sim.py +0 -431
- egse/collimator/fcul/ogse_ui.py +0 -1108
- egse/command.py +0 -699
- egse/config.py +0 -410
- egse/confman/__init__.py +0 -1015
- egse/confman/confman.yaml +0 -67
- egse/confman/confman_cs.py +0 -239
- egse/confman/confman_ui.py +0 -381
- egse/confman/setup_ui.py +0 -565
- egse/control.py +0 -442
- egse/coordinates/__init__.py +0 -531
- egse/coordinates/avoidance.py +0 -103
- egse/coordinates/cslmodel.py +0 -127
- egse/coordinates/laser_tracker_to_dict.py +0 -120
- egse/coordinates/point.py +0 -707
- egse/coordinates/pyplot.py +0 -195
- egse/coordinates/referenceFrame.py +0 -1279
- egse/coordinates/refmodel.py +0 -737
- egse/coordinates/rotationMatrix.py +0 -85
- egse/coordinates/transform3d_addon.py +0 -419
- egse/csl/__init__.py +0 -50
- egse/csl/commanding.py +0 -78
- egse/csl/icons/hexapod-connected-selected.svg +0 -30
- egse/csl/icons/hexapod-connected.svg +0 -30
- egse/csl/icons/hexapod-homing-selected.svg +0 -68
- egse/csl/icons/hexapod-homing.svg +0 -68
- egse/csl/icons/hexapod-retract-selected.svg +0 -56
- egse/csl/icons/hexapod-retract.svg +0 -51
- egse/csl/icons/hexapod-zero-selected.svg +0 -56
- egse/csl/icons/hexapod-zero.svg +0 -56
- egse/csl/icons/logo-puna.svg +0 -92
- egse/csl/icons/stop.svg +0 -1
- egse/csl/initialisation.py +0 -102
- egse/csl/mech_pos_settings.yaml +0 -18
- egse/das.py +0 -1247
- egse/das.yaml +0 -7
- egse/data/conf/SETUP_CSL_00000_170620_150000.yaml +0 -5
- egse/data/conf/SETUP_CSL_00001_170620_151010.yaml +0 -69
- egse/data/conf/SETUP_CSL_00002_170620_151020.yaml +0 -69
- egse/data/conf/SETUP_CSL_00003_170620_151030.yaml +0 -69
- egse/data/conf/SETUP_CSL_00004_170620_151040.yaml +0 -69
- egse/data/conf/SETUP_CSL_00005_170620_151050.yaml +0 -69
- egse/data/conf/SETUP_CSL_00006_170620_151060.yaml +0 -69
- egse/data/conf/SETUP_CSL_00007_170620_151070.yaml +0 -69
- egse/data/conf/SETUP_CSL_00008_170620_151080.yaml +0 -75
- egse/data/conf/SETUP_CSL_00010_210308_083016.yaml +0 -138
- egse/data/conf/SETUP_INTA_00000_170620_150000.yaml +0 -4
- egse/data/conf/SETUP_SRON_00000_170620_150000.yaml +0 -4
- egse/decorators.py +0 -415
- egse/device.py +0 -269
- egse/dpu/__init__.py +0 -2681
- egse/dpu/ccd_ui.py +0 -508
- egse/dpu/dpu.py +0 -786
- egse/dpu/dpu.yaml +0 -153
- egse/dpu/dpu_cs.py +0 -272
- egse/dpu/dpu_ui.py +0 -668
- egse/dpu/fitsgen.py +0 -2077
- egse/dpu/fitsgen_test.py +0 -752
- egse/dpu/fitsgen_ui.py +0 -399
- egse/dpu/hdf5_model.py +0 -332
- egse/dpu/hdf5_ui.py +0 -277
- egse/dpu/hdf5_viewer.py +0 -506
- egse/dpu/hk_ui.py +0 -468
- egse/dpu_commands.py +0 -81
- egse/dsi/constants.py +0 -220
- egse/dsi/esl.py +0 -870
- egse/dsi/rmap.py +0 -1042
- egse/dsi/rmapci.py +0 -37
- egse/dsi/spw.py +0 -154
- egse/dsi/spw_state.py +0 -29
- egse/dummy.py +0 -258
- egse/dyndummy.py +0 -179
- egse/env.py +0 -278
- egse/exceptions.py +0 -88
- egse/fdir/__init__.py +0 -28
- egse/fdir/fdir_manager.py +0 -85
- egse/fdir/fdir_manager.yaml +0 -51
- egse/fdir/fdir_manager_controller.py +0 -228
- egse/fdir/fdir_manager_cs.py +0 -164
- egse/fdir/fdir_manager_interface.py +0 -25
- egse/fdir/fdir_remote.py +0 -73
- egse/fdir/fdir_remote.yaml +0 -37
- egse/fdir/fdir_remote_controller.py +0 -50
- egse/fdir/fdir_remote_cs.py +0 -97
- egse/fdir/fdir_remote_interface.py +0 -14
- egse/fdir/fdir_remote_popup.py +0 -31
- egse/fee/__init__.py +0 -114
- egse/fee/f_fee_register.yaml +0 -43
- egse/fee/fee.py +0 -631
- egse/fee/feesim.py +0 -750
- egse/fee/n_fee_hk.py +0 -761
- egse/fee/nfee.py +0 -187
- egse/filterwheel/__init__.py +0 -4
- egse/filterwheel/eksma/__init__.py +0 -24
- egse/filterwheel/eksma/fw8smc4.py +0 -661
- egse/filterwheel/eksma/fw8smc4.yaml +0 -121
- egse/filterwheel/eksma/fw8smc4_cs.py +0 -144
- egse/filterwheel/eksma/fw8smc4_devif.py +0 -473
- egse/filterwheel/eksma/fw8smc4_protocol.py +0 -81
- egse/filterwheel/eksma/fw8smc4_ui.py +0 -940
- egse/filterwheel/eksma/fw8smc5.py +0 -111
- egse/filterwheel/eksma/fw8smc5.yaml +0 -105
- egse/filterwheel/eksma/fw8smc5_controller.py +0 -307
- egse/filterwheel/eksma/fw8smc5_cs.py +0 -141
- egse/filterwheel/eksma/fw8smc5_interface.py +0 -65
- egse/filterwheel/eksma/fw8smc5_simulator.py +0 -29
- egse/filterwheel/eksma/fw8smc5_ui.py +0 -1068
- egse/filterwheel/eksma/testpythonfw.py +0 -215
- egse/fov/__init__.py +0 -65
- egse/fov/fov_hk.py +0 -712
- egse/fov/fov_ui.py +0 -861
- egse/fov/fov_ui_controller.py +0 -140
- egse/fov/fov_ui_model.py +0 -200
- egse/fov/fov_ui_view.py +0 -345
- egse/gimbal/__init__.py +0 -32
- egse/gimbal/symetrie/__init__.py +0 -26
- egse/gimbal/symetrie/alpha.py +0 -586
- egse/gimbal/symetrie/generic_gimbal_ui.py +0 -1521
- egse/gimbal/symetrie/gimbal.py +0 -877
- egse/gimbal/symetrie/gimbal.yaml +0 -168
- egse/gimbal/symetrie/gimbal_cs.py +0 -183
- egse/gimbal/symetrie/gimbal_protocol.py +0 -135
- egse/gimbal/symetrie/gimbal_ui.py +0 -361
- egse/gimbal/symetrie/pmac.py +0 -1006
- egse/gimbal/symetrie/pmac_regex.py +0 -83
- egse/graph.py +0 -132
- egse/gui/__init__.py +0 -47
- egse/gui/buttons.py +0 -378
- egse/gui/focalplane.py +0 -1281
- egse/gui/formatter.py +0 -10
- egse/gui/led.py +0 -162
- egse/gui/limitswitch.py +0 -143
- egse/gui/mechanisms.py +0 -588
- egse/gui/states.py +0 -148
- egse/gui/stripchart.py +0 -729
- egse/gui/switch.py +0 -112
- egse/h5.py +0 -274
- egse/help/__init__.py +0 -0
- egse/help/help_ui.py +0 -126
- egse/hexapod/__init__.py +0 -32
- egse/hexapod/symetrie/__init__.py +0 -138
- egse/hexapod/symetrie/alpha.py +0 -874
- egse/hexapod/symetrie/dynalpha.py +0 -1387
- egse/hexapod/symetrie/hexapod_ui.py +0 -1516
- egse/hexapod/symetrie/pmac.py +0 -1010
- egse/hexapod/symetrie/pmac_regex.py +0 -83
- egse/hexapod/symetrie/puna.py +0 -1167
- egse/hexapod/symetrie/puna.yaml +0 -193
- egse/hexapod/symetrie/puna_cs.py +0 -196
- egse/hexapod/symetrie/puna_protocol.py +0 -131
- egse/hexapod/symetrie/puna_ui.py +0 -434
- egse/hexapod/symetrie/punaplus.py +0 -107
- egse/hexapod/symetrie/zonda.py +0 -872
- egse/hexapod/symetrie/zonda.yaml +0 -337
- egse/hexapod/symetrie/zonda_cs.py +0 -172
- egse/hexapod/symetrie/zonda_devif.py +0 -415
- egse/hexapod/symetrie/zonda_protocol.py +0 -119
- egse/hexapod/symetrie/zonda_ui.py +0 -449
- egse/hk.py +0 -765
- egse/icons/aeu-cs-start.svg +0 -117
- egse/icons/aeu-cs-stop.svg +0 -118
- egse/icons/aeu-cs.svg +0 -107
- egse/icons/aeu_cs-started.svg +0 -112
- egse/icons/aeu_cs-stopped.svg +0 -112
- egse/icons/aeu_cs.svg +0 -55
- egse/icons/alert.svg +0 -1
- egse/icons/arrow-double-left.png +0 -0
- egse/icons/arrow-double-right.png +0 -0
- egse/icons/arrow-up.svg +0 -11
- egse/icons/backward.svg +0 -1
- egse/icons/busy.svg +0 -1
- egse/icons/cleaning.svg +0 -115
- egse/icons/color-scheme.svg +0 -1
- egse/icons/cs-connected-alert.svg +0 -91
- egse/icons/cs-connected-disabled.svg +0 -43
- egse/icons/cs-connected.svg +0 -89
- egse/icons/cs-not-connected.svg +0 -44
- egse/icons/double-left-arrow.svg +0 -1
- egse/icons/double-right-arrow.svg +0 -1
- egse/icons/erase-disabled.svg +0 -19
- egse/icons/erase.svg +0 -59
- egse/icons/fitsgen-start.svg +0 -47
- egse/icons/fitsgen-stop.svg +0 -48
- egse/icons/fitsgen.svg +0 -1
- egse/icons/forward.svg +0 -1
- egse/icons/fov-hk-start.svg +0 -33
- egse/icons/fov-hk-stop.svg +0 -37
- egse/icons/fov-hk.svg +0 -1
- egse/icons/front-desk.svg +0 -1
- egse/icons/home-actioned.svg +0 -15
- egse/icons/home-disabled.svg +0 -15
- egse/icons/home.svg +0 -13
- egse/icons/info.svg +0 -1
- egse/icons/invalid.png +0 -0
- egse/icons/led-green.svg +0 -20
- egse/icons/led-grey.svg +0 -20
- egse/icons/led-orange.svg +0 -20
- egse/icons/led-red.svg +0 -20
- egse/icons/led-square-green.svg +0 -134
- egse/icons/led-square-grey.svg +0 -134
- egse/icons/led-square-orange.svg +0 -134
- egse/icons/led-square-red.svg +0 -134
- egse/icons/limit-switch-all-green.svg +0 -115
- egse/icons/limit-switch-all-red.svg +0 -117
- egse/icons/limit-switch-el+.svg +0 -116
- egse/icons/limit-switch-el-.svg +0 -117
- egse/icons/location-marker.svg +0 -1
- egse/icons/logo-dpu.svg +0 -48
- egse/icons/logo-gimbal.svg +0 -112
- egse/icons/logo-huber.svg +0 -23
- egse/icons/logo-ogse.svg +0 -31
- egse/icons/logo-puna.svg +0 -92
- egse/icons/logo-tcs.svg +0 -29
- egse/icons/logo-zonda.svg +0 -66
- egse/icons/maximize.svg +0 -1
- egse/icons/meter.svg +0 -1
- egse/icons/more.svg +0 -45
- egse/icons/n-fee-hk-start.svg +0 -24
- egse/icons/n-fee-hk-stop.svg +0 -25
- egse/icons/n-fee-hk.svg +0 -83
- egse/icons/observing-off.svg +0 -46
- egse/icons/observing-on.svg +0 -46
- egse/icons/open-document-hdf5.png +0 -0
- egse/icons/open-document-hdf5.svg +0 -21
- egse/icons/ops-mode.svg +0 -1
- egse/icons/play-green.svg +0 -17
- egse/icons/plugged-disabled.svg +0 -27
- egse/icons/plugged.svg +0 -21
- egse/icons/pm_ui.svg +0 -1
- egse/icons/power-button-green.svg +0 -27
- egse/icons/power-button-red.svg +0 -27
- egse/icons/power-button.svg +0 -27
- egse/icons/radar.svg +0 -1
- egse/icons/radioactive.svg +0 -2
- egse/icons/reload.svg +0 -1
- egse/icons/remote-control-off.svg +0 -28
- egse/icons/remote-control-on.svg +0 -28
- egse/icons/repeat-blue.svg +0 -15
- egse/icons/repeat.svg +0 -1
- egse/icons/settings.svg +0 -1
- egse/icons/shrink.svg +0 -1
- egse/icons/shutter.svg +0 -1
- egse/icons/sign-off.svg +0 -1
- egse/icons/sign-on.svg +0 -1
- egse/icons/sim-mode.svg +0 -1
- egse/icons/small-buttons-go.svg +0 -20
- egse/icons/small-buttons-minus.svg +0 -51
- egse/icons/small-buttons-plus.svg +0 -51
- egse/icons/sponge.svg +0 -220
- egse/icons/start-button-disabled.svg +0 -84
- egse/icons/start-button.svg +0 -50
- egse/icons/stop-button-disabled.svg +0 -84
- egse/icons/stop-button.svg +0 -50
- egse/icons/stop-red.svg +0 -17
- egse/icons/stop.svg +0 -1
- egse/icons/switch-disabled-square.svg +0 -87
- egse/icons/switch-disabled.svg +0 -15
- egse/icons/switch-off-square.svg +0 -87
- egse/icons/switch-off.svg +0 -72
- egse/icons/switch-on-square.svg +0 -87
- egse/icons/switch-on.svg +0 -61
- egse/icons/temperature-control.svg +0 -44
- egse/icons/th_ui_logo.svg +0 -1
- egse/icons/unplugged.svg +0 -23
- egse/icons/unvalid.png +0 -0
- egse/icons/user-interface.svg +0 -1
- egse/icons/vacuum.svg +0 -1
- egse/icons/valid.png +0 -0
- egse/icons/zoom-to-pixel-dark.svg +0 -64
- egse/icons/zoom-to-pixel-white.svg +0 -36
- egse/images/big-rotation-stage.png +0 -0
- egse/images/connected-100.png +0 -0
- egse/images/cross.svg +0 -6
- egse/images/disconnected-100.png +0 -0
- egse/images/gui-icon.png +0 -0
- egse/images/home.svg +0 -6
- egse/images/info-icon.png +0 -0
- egse/images/led-black.svg +0 -89
- egse/images/led-green.svg +0 -85
- egse/images/led-orange.svg +0 -85
- egse/images/led-red.svg +0 -85
- egse/images/load-icon.png +0 -0
- egse/images/load-setup.png +0 -0
- egse/images/load.png +0 -0
- egse/images/pause.png +0 -0
- egse/images/play-button.svg +0 -8
- egse/images/play.png +0 -0
- egse/images/process-status.png +0 -0
- egse/images/restart.png +0 -0
- egse/images/search.png +0 -0
- egse/images/sma.png +0 -0
- egse/images/start.png +0 -0
- egse/images/stop-button.svg +0 -8
- egse/images/stop.png +0 -0
- egse/images/switch-off.svg +0 -48
- egse/images/switch-on.svg +0 -48
- egse/images/undo.png +0 -0
- egse/images/update-button.svg +0 -11
- egse/imageviewer/exposureselection.py +0 -475
- egse/imageviewer/imageviewer.py +0 -198
- egse/imageviewer/matchfocalplane.py +0 -179
- egse/imageviewer/subfieldposition.py +0 -133
- egse/lampcontrol/__init__.py +0 -4
- egse/lampcontrol/beaglebone/beaglebone.py +0 -178
- egse/lampcontrol/beaglebone/beaglebone.yaml +0 -62
- egse/lampcontrol/beaglebone/beaglebone_cs.py +0 -106
- egse/lampcontrol/beaglebone/beaglebone_devif.py +0 -150
- egse/lampcontrol/beaglebone/beaglebone_protocol.py +0 -73
- egse/lampcontrol/energetiq/__init__.py +0 -22
- egse/lampcontrol/energetiq/eq99.yaml +0 -98
- egse/lampcontrol/energetiq/lampEQ99.py +0 -283
- egse/lampcontrol/energetiq/lampEQ99_cs.py +0 -128
- egse/lampcontrol/energetiq/lampEQ99_devif.py +0 -158
- egse/lampcontrol/energetiq/lampEQ99_encode_decode_errors.py +0 -73
- egse/lampcontrol/energetiq/lampEQ99_protocol.py +0 -69
- egse/lampcontrol/energetiq/lampEQ99_ui.py +0 -465
- egse/lib/CentOS-7/EtherSpaceLink_v34_86.dylib +0 -0
- egse/lib/CentOS-8/ESL-RMAP_v34_86.dylib +0 -0
- egse/lib/CentOS-8/EtherSpaceLink_v34_86.dylib +0 -0
- egse/lib/Debian/ESL-RMAP_v34_86.dylib +0 -0
- egse/lib/Debian/EtherSpaceLink_v34_86.dylib +0 -0
- egse/lib/Debian/libetherspacelink_v35_21.dylib +0 -0
- egse/lib/Linux/ESL-RMAP_v34_86.dylib +0 -0
- egse/lib/Linux/EtherSpaceLink_v34_86.dylib +0 -0
- egse/lib/Ubuntu-20/ESL-RMAP_v34_86.dylib +0 -0
- egse/lib/Ubuntu-20/EtherSpaceLink_v34_86.dylib +0 -0
- egse/lib/gssw/python3-gssw_2.2.3+31f63c9f-1_all.deb +0 -0
- egse/lib/macOS/ESL-RMAP_v34_86.dylib +0 -0
- egse/lib/macOS/EtherSpaceLink_v34_86.dylib +0 -0
- egse/lib/ximc/__pycache__/pyximc.cpython-38 2.pyc +0 -0
- egse/lib/ximc/__pycache__/pyximc.cpython-38.pyc +0 -0
- egse/lib/ximc/libximc.framework/Frameworks/libbindy.dylib +0 -0
- egse/lib/ximc/libximc.framework/Frameworks/libxiwrapper.dylib +0 -0
- egse/lib/ximc/libximc.framework/Headers/ximc.h +0 -5510
- egse/lib/ximc/libximc.framework/Resources/Info.plist +0 -42
- egse/lib/ximc/libximc.framework/Resources/keyfile.sqlite +0 -0
- egse/lib/ximc/libximc.framework/libbindy.so +0 -0
- egse/lib/ximc/libximc.framework/libximc +0 -0
- egse/lib/ximc/libximc.framework/libximc.so +0 -0
- egse/lib/ximc/libximc.framework/libximc.so.7.0.0 +0 -0
- egse/lib/ximc/libximc.framework/libxiwrapper.so +0 -0
- egse/lib/ximc/pyximc.py +0 -922
- egse/listener.py +0 -73
- egse/logger/__init__.py +0 -243
- egse/logger/log_cs.py +0 -321
- egse/metrics.py +0 -98
- egse/mixin.py +0 -464
- egse/monitoring.py +0 -95
- egse/ni/alarms/__init__.py +0 -26
- egse/ni/alarms/cdaq9375.py +0 -300
- egse/ni/alarms/cdaq9375.yaml +0 -89
- egse/ni/alarms/cdaq9375_cs.py +0 -130
- egse/ni/alarms/cdaq9375_devif.py +0 -183
- egse/ni/alarms/cdaq9375_protocol.py +0 -48
- egse/obs_inspection.py +0 -163
- egse/observer.py +0 -41
- egse/obsid.py +0 -163
- egse/powermeter/__init__.py +0 -0
- egse/powermeter/ni/__init__.py +0 -38
- egse/powermeter/ni/cdaq9184.py +0 -224
- egse/powermeter/ni/cdaq9184.yaml +0 -73
- egse/powermeter/ni/cdaq9184_cs.py +0 -130
- egse/powermeter/ni/cdaq9184_devif.py +0 -201
- egse/powermeter/ni/cdaq9184_protocol.py +0 -48
- egse/powermeter/ni/cdaq9184_ui.py +0 -544
- egse/powermeter/thorlabs/__init__.py +0 -25
- egse/powermeter/thorlabs/pm100a.py +0 -380
- egse/powermeter/thorlabs/pm100a.yaml +0 -132
- egse/powermeter/thorlabs/pm100a_cs.py +0 -136
- egse/powermeter/thorlabs/pm100a_devif.py +0 -127
- egse/powermeter/thorlabs/pm100a_protocol.py +0 -80
- egse/powermeter/thorlabs/pm100a_ui.py +0 -725
- egse/process.py +0 -451
- egse/procman/__init__.py +0 -811
- egse/procman/cannot_start_process_popup.py +0 -43
- egse/procman/procman.yaml +0 -49
- egse/procman/procman_cs.py +0 -201
- egse/procman/procman_ui.py +0 -2081
- egse/protocol.py +0 -603
- egse/proxy.py +0 -522
- egse/randomwalk.py +0 -140
- egse/reg.py +0 -585
- egse/reload.py +0 -122
- egse/reprocess.py +0 -675
- egse/resource.py +0 -333
- egse/rst.py +0 -135
- egse/search.py +0 -182
- egse/serialdevice.py +0 -190
- egse/services.py +0 -212
- egse/services.yaml +0 -51
- egse/settings.py +0 -379
- egse/settings.yaml +0 -980
- egse/setup.py +0 -1180
- egse/shutter/__init__.py +0 -0
- egse/shutter/thorlabs/__init__.py +0 -19
- egse/shutter/thorlabs/ksc101.py +0 -205
- egse/shutter/thorlabs/ksc101.yaml +0 -105
- egse/shutter/thorlabs/ksc101_cs.py +0 -136
- egse/shutter/thorlabs/ksc101_devif.py +0 -201
- egse/shutter/thorlabs/ksc101_protocol.py +0 -69
- egse/shutter/thorlabs/ksc101_ui.py +0 -548
- egse/shutter/thorlabs/sc10.py +0 -82
- egse/shutter/thorlabs/sc10.yaml +0 -52
- egse/shutter/thorlabs/sc10_controller.py +0 -81
- egse/shutter/thorlabs/sc10_cs.py +0 -108
- egse/shutter/thorlabs/sc10_interface.py +0 -25
- egse/shutter/thorlabs/sc10_simulator.py +0 -30
- egse/simulator.py +0 -41
- egse/slack.py +0 -61
- egse/socketdevice.py +0 -218
- egse/sockets.py +0 -218
- egse/spw.py +0 -1479
- egse/stages/__init__.py +0 -12
- egse/stages/aerotech/ensemble.py +0 -247
- egse/stages/aerotech/ensemble.yaml +0 -205
- egse/stages/aerotech/ensemble_controller.py +0 -275
- egse/stages/aerotech/ensemble_cs.py +0 -110
- egse/stages/aerotech/ensemble_interface.py +0 -132
- egse/stages/aerotech/ensemble_parameters.py +0 -433
- egse/stages/aerotech/ensemble_simulator.py +0 -27
- egse/stages/aerotech/mgse_sim.py +0 -193
- egse/stages/arun/smd3.py +0 -111
- egse/stages/arun/smd3.yaml +0 -68
- egse/stages/arun/smd3_controller.py +0 -472
- egse/stages/arun/smd3_cs.py +0 -112
- egse/stages/arun/smd3_interface.py +0 -53
- egse/stages/arun/smd3_simulator.py +0 -27
- egse/stages/arun/smd3_stop.py +0 -16
- egse/stages/huber/__init__.py +0 -49
- egse/stages/huber/smc9300.py +0 -904
- egse/stages/huber/smc9300.yaml +0 -63
- egse/stages/huber/smc9300_cs.py +0 -178
- egse/stages/huber/smc9300_devif.py +0 -345
- egse/stages/huber/smc9300_protocol.py +0 -111
- egse/stages/huber/smc9300_sim.py +0 -547
- egse/stages/huber/smc9300_ui.py +0 -973
- egse/state.py +0 -173
- egse/statemachine.py +0 -274
- egse/storage/__init__.py +0 -1004
- egse/storage/persistence.py +0 -2295
- egse/storage/storage.yaml +0 -72
- egse/storage/storage_cs.py +0 -214
- egse/styles/dark.qss +0 -343
- egse/styles/default.qss +0 -48
- egse/synoptics/__init__.py +0 -412
- egse/synoptics/syn.yaml +0 -9
- egse/synoptics/syn_cs.py +0 -195
- egse/system.py +0 -1408
- egse/tcs/__init__.py +0 -14
- egse/tcs/tcs.py +0 -874
- egse/tcs/tcs.yaml +0 -14
- egse/tcs/tcs_cs.py +0 -202
- egse/tcs/tcs_devif.py +0 -292
- egse/tcs/tcs_protocol.py +0 -177
- egse/tcs/tcs_sim.py +0 -177
- egse/tcs/tcs_ui.py +0 -543
- egse/tdms.py +0 -171
- egse/tempcontrol/__init__.py +0 -23
- egse/tempcontrol/agilent/agilent34970.py +0 -109
- egse/tempcontrol/agilent/agilent34970.yaml +0 -44
- egse/tempcontrol/agilent/agilent34970_cs.py +0 -116
- egse/tempcontrol/agilent/agilent34970_devif.py +0 -182
- egse/tempcontrol/agilent/agilent34970_protocol.py +0 -99
- egse/tempcontrol/agilent/agilent34972.py +0 -111
- egse/tempcontrol/agilent/agilent34972.yaml +0 -44
- egse/tempcontrol/agilent/agilent34972_cs.py +0 -117
- egse/tempcontrol/agilent/agilent34972_devif.py +0 -189
- egse/tempcontrol/agilent/agilent34972_protocol.py +0 -101
- egse/tempcontrol/beaglebone/beaglebone.py +0 -342
- egse/tempcontrol/beaglebone/beaglebone.yaml +0 -110
- egse/tempcontrol/beaglebone/beaglebone_cs.py +0 -117
- egse/tempcontrol/beaglebone/beaglebone_protocol.py +0 -135
- egse/tempcontrol/beaglebone/beaglebone_ui.py +0 -681
- egse/tempcontrol/digalox/digalox.py +0 -107
- egse/tempcontrol/digalox/digalox.yaml +0 -36
- egse/tempcontrol/digalox/digalox_cs.py +0 -112
- egse/tempcontrol/digalox/digalox_protocol.py +0 -55
- egse/tempcontrol/keithley/__init__.py +0 -33
- egse/tempcontrol/keithley/daq6510.py +0 -662
- egse/tempcontrol/keithley/daq6510.yaml +0 -105
- egse/tempcontrol/keithley/daq6510_cs.py +0 -163
- egse/tempcontrol/keithley/daq6510_devif.py +0 -343
- egse/tempcontrol/keithley/daq6510_protocol.py +0 -78
- egse/tempcontrol/keithley/daq6510_sim.py +0 -186
- egse/tempcontrol/lakeshore/__init__.py +0 -33
- egse/tempcontrol/lakeshore/lsci.py +0 -361
- egse/tempcontrol/lakeshore/lsci.yaml +0 -162
- egse/tempcontrol/lakeshore/lsci_cs.py +0 -174
- egse/tempcontrol/lakeshore/lsci_devif.py +0 -292
- egse/tempcontrol/lakeshore/lsci_protocol.py +0 -73
- egse/tempcontrol/lakeshore/lsci_ui.py +0 -389
- egse/tempcontrol/ni/__init__.py +0 -0
- egse/tempcontrol/spid/spid.py +0 -109
- egse/tempcontrol/spid/spid.yaml +0 -81
- egse/tempcontrol/spid/spid_controller.py +0 -279
- egse/tempcontrol/spid/spid_cs.py +0 -136
- egse/tempcontrol/spid/spid_protocol.py +0 -107
- egse/tempcontrol/spid/spid_ui.py +0 -727
- egse/tempcontrol/srs/__init__.py +0 -22
- egse/tempcontrol/srs/ptc10.py +0 -875
- egse/tempcontrol/srs/ptc10.yaml +0 -227
- egse/tempcontrol/srs/ptc10_cs.py +0 -128
- egse/tempcontrol/srs/ptc10_devif.py +0 -118
- egse/tempcontrol/srs/ptc10_protocol.py +0 -42
- egse/tempcontrol/srs/ptc10_ui.py +0 -906
- egse/ups/apc/apc.py +0 -236
- egse/ups/apc/apc.yaml +0 -45
- egse/ups/apc/apc_cs.py +0 -101
- egse/ups/apc/apc_protocol.py +0 -125
- egse/user.yaml +0 -7
- egse/vacuum/beaglebone/beaglebone.py +0 -149
- egse/vacuum/beaglebone/beaglebone.yaml +0 -44
- egse/vacuum/beaglebone/beaglebone_cs.py +0 -108
- egse/vacuum/beaglebone/beaglebone_devif.py +0 -164
- egse/vacuum/beaglebone/beaglebone_protocol.py +0 -193
- egse/vacuum/beaglebone/beaglebone_ui.py +0 -638
- egse/vacuum/instrutech/igm402.py +0 -92
- egse/vacuum/instrutech/igm402.yaml +0 -90
- egse/vacuum/instrutech/igm402_controller.py +0 -128
- egse/vacuum/instrutech/igm402_cs.py +0 -108
- egse/vacuum/instrutech/igm402_interface.py +0 -49
- egse/vacuum/instrutech/igm402_simulator.py +0 -36
- egse/vacuum/keller/kellerBus.py +0 -256
- egse/vacuum/keller/leo3.py +0 -102
- egse/vacuum/keller/leo3.yaml +0 -38
- egse/vacuum/keller/leo3_controller.py +0 -83
- egse/vacuum/keller/leo3_cs.py +0 -101
- egse/vacuum/keller/leo3_interface.py +0 -33
- egse/vacuum/mks/evision.py +0 -86
- egse/vacuum/mks/evision.yaml +0 -75
- egse/vacuum/mks/evision_cs.py +0 -101
- egse/vacuum/mks/evision_devif.py +0 -316
- egse/vacuum/mks/evision_interface.py +0 -60
- egse/vacuum/mks/evision_simulator.py +0 -24
- egse/vacuum/mks/evision_ui.py +0 -704
- egse/vacuum/pfeiffer/acp40.py +0 -87
- egse/vacuum/pfeiffer/acp40.yaml +0 -60
- egse/vacuum/pfeiffer/acp40_controller.py +0 -117
- egse/vacuum/pfeiffer/acp40_cs.py +0 -109
- egse/vacuum/pfeiffer/acp40_interface.py +0 -40
- egse/vacuum/pfeiffer/acp40_simulator.py +0 -39
- egse/vacuum/pfeiffer/tc400.py +0 -113
- egse/vacuum/pfeiffer/tc400.yaml +0 -83
- egse/vacuum/pfeiffer/tc400_controller.py +0 -140
- egse/vacuum/pfeiffer/tc400_cs.py +0 -109
- egse/vacuum/pfeiffer/tc400_interface.py +0 -70
- egse/vacuum/pfeiffer/tc400_simulator.py +0 -24
- egse/vacuum/pfeiffer/tpg261.py +0 -81
- egse/vacuum/pfeiffer/tpg261.yaml +0 -66
- egse/vacuum/pfeiffer/tpg261_controller.py +0 -150
- egse/vacuum/pfeiffer/tpg261_cs.py +0 -109
- egse/vacuum/pfeiffer/tpg261_interface.py +0 -60
- egse/vacuum/pfeiffer/tpg261_simulator.py +0 -24
- egse/version.py +0 -174
- egse/visitedpositions.py +0 -398
- egse/windowing.py +0 -213
- egse/zmq/__init__.py +0 -28
- egse/zmq/spw.py +0 -160
- egse/zmq_ser.py +0 -41
- scripts/alerts/cold.yaml +0 -278
- scripts/alerts/example_alerts.yaml +0 -54
- scripts/alerts/transition.yaml +0 -14
- scripts/alerts/warm.yaml +0 -49
- scripts/analyse_n_fee_hk_data.py +0 -44
- scripts/check_hdf5_files.py +0 -192
- scripts/check_register_sync.py +0 -47
- scripts/create_hdf5_report.py +0 -295
- scripts/csl_model.py +0 -436
- scripts/csl_restore_setup.py +0 -230
- scripts/export-grafana-dashboards.py +0 -50
- scripts/fdir/cs_recovery/fdir_cs_recovery.py +0 -59
- scripts/fdir/fdir_table.yaml +0 -70
- scripts/fdir/fdir_test_recovery.py +0 -11
- scripts/fdir/hw_recovery/fdir_agilent_hw_recovery.py +0 -73
- scripts/fdir/limit_recovery/fdir_agilent_limit.py +0 -64
- scripts/fdir/limit_recovery/fdir_bb_heater_limit.py +0 -61
- scripts/fdir/limit_recovery/fdir_ensemble_limit.py +0 -33
- scripts/fdir/limit_recovery/fdir_pressure_limit_recovery.py +0 -71
- scripts/fix_csv.py +0 -80
- scripts/n_fee_supply_voltage_calculation.py +0 -92
- scripts/playground.py +0 -30
- scripts/print_hdf5_hk_data.py +0 -68
- scripts/print_register_map.py +0 -43
- scripts/sron/commanding/control_heaters.py +0 -44
- scripts/sron/commanding/pumpdown.py +0 -46
- scripts/sron/commanding/set_pid_setpoint.py +0 -19
- scripts/sron/commanding/shutdown_bbb_heaters.py +0 -10
- scripts/sron/commanding/shutdown_pumps.py +0 -33
- scripts/sron/tm_gen/tm_gen_agilent.py +0 -38
- scripts/sron/tm_gen/tm_gen_heaters.py +0 -4
- scripts/sron/tm_gen/tm_gen_spid.py +0 -13
- scripts/update_operational_cgse.py +0 -268
- scripts/update_operational_cgse_old.py +0 -273
egse/dpu/fitsgen_test.py
DELETED
|
@@ -1,752 +0,0 @@
|
|
|
1
|
-
# import glob
|
|
2
|
-
# import os
|
|
3
|
-
#
|
|
4
|
-
# from egse import h5
|
|
5
|
-
# from egse.dpu.fitsgen import in_data_acquisition_mode
|
|
6
|
-
# import natsort
|
|
7
|
-
#
|
|
8
|
-
# from egse.dpu.hdf5_ui import GroupPropertiesModel
|
|
9
|
-
# from egse.dpu.hdf5_viewer import ndarray_to_str
|
|
10
|
-
# from egse.spw import DataPacket
|
|
11
|
-
# # from camtest import start_observation, end_observation
|
|
12
|
-
# from egse.storage import HDF5
|
|
13
|
-
# from egse.state import GlobalState
|
|
14
|
-
# import rich
|
|
15
|
-
#
|
|
16
|
-
#
|
|
17
|
-
#
|
|
18
|
-
# # # def test_fitsgen():
|
|
19
|
-
# # #
|
|
20
|
-
# from camtest import *
|
|
21
|
-
#
|
|
22
|
-
#
|
|
23
|
-
#
|
|
24
|
-
# setup = GlobalState.setup
|
|
25
|
-
#
|
|
26
|
-
# from camtest.commanding import dpu
|
|
27
|
-
#
|
|
28
|
-
# execute(dpu.set_slicing, num_cycles=2)
|
|
29
|
-
#
|
|
30
|
-
# n_fee_parameters = dict(
|
|
31
|
-
# num_cycles=5,
|
|
32
|
-
# row_start=2000,
|
|
33
|
-
# row_end=3500,
|
|
34
|
-
# rows_final_dump=4510,
|
|
35
|
-
# ccd_order=[2, 2, 2, 2],
|
|
36
|
-
# ccd_side="E",
|
|
37
|
-
# exposure_time=0.276140
|
|
38
|
-
# )
|
|
39
|
-
#
|
|
40
|
-
# execute(dpu.n_cam_partial_int_sync, **n_fee_parameters) # 309
|
|
41
|
-
#
|
|
42
|
-
# from astropy.io import fits
|
|
43
|
-
# filename = "/STER/platodata/SRON/plato-data/obs/02088_SRON_00041/02088_SRON_00041_N-FEE_CCD_20211128_205907_cube_00001.fits" # Doesn't work
|
|
44
|
-
# filename = "/STER/platodata/IAS/data/IAS/obs/00227_IAS/00227_IAS_N-FEE_CCD_00001_20220624_cube.fits" # Does work
|
|
45
|
-
#
|
|
46
|
-
#
|
|
47
|
-
#
|
|
48
|
-
# # filename = "/STER/platodata/IAS/archive/IAS/obs/00698_IAS/00698_IAS_N-FEE_CCD_00002_20220801_cube.fits"
|
|
49
|
-
#
|
|
50
|
-
# # filename = "/Users/sara/work/Instrumentation/Plato/cgse/data/storage/obs/00424_CSL/00424_CSL_N-FEE_CCD_00002_20220603_cube.fits"
|
|
51
|
-
# # filename = "/Users/sara/work/Instrumentation/Plato/cgse/data/storage/obs/00421_SRON/00421_SRON_N-FEE_CCD_00001_20220426_cube.fits"
|
|
52
|
-
# # filename = "/STER/platodata/SRON/plato-data/obs/03054_SRON/03054_SRON_N-FEE_CCD_00107_20220224_cube.fits"
|
|
53
|
-
#
|
|
54
|
-
# filename = "/STER/platodata/IAS/data/IAS/obs/00547_IAS/00547_IAS_N-FEE_CCD_00002_20220720_cube.fits"
|
|
55
|
-
# with fits.open(filename) as hdu:
|
|
56
|
-
# hdu.info()
|
|
57
|
-
# # rich.print(hdu["PRIMARY"].header)
|
|
58
|
-
# #
|
|
59
|
-
# # # start_observation("FITS generation test")
|
|
60
|
-
# # # dpu.n_cam_partial_int_sync(**n_fee_parameters)
|
|
61
|
-
# # # dpu.n_cam_partial_int_sync(**n_fee_parameters)
|
|
62
|
-
# # # end_observation()
|
|
63
|
-
# # #
|
|
64
|
-
# # # from astropy.io import fits
|
|
65
|
-
# # #
|
|
66
|
-
# # # # filename = f"/Users/sara/work/Instrumentation/Plato/cgse/data/storage/obs/{filename}"
|
|
67
|
-
# # # filename = "00314_CSL_00082_N-FEE_CCD_20211005_114146_cube_00001.fits"
|
|
68
|
-
# # # # filename = "00315_CSL_00082_N-FEE_CCD_20211005_114620_00001.fits"
|
|
69
|
-
# # # # filename = "00316_CSL_00082_N-FEE_CCD_20211005_115620_00001.fits"
|
|
70
|
-
# # # # filename = "00320_CSL_00082_N-FEE_CCD_20211005_123444_00001.fits"
|
|
71
|
-
# # # filename = "00323_CSL_00082_N-FEE_CCD_20211005_130719_00001.fits"
|
|
72
|
-
# # # filename = "00323_CSL_00082_N-FEE_CCD_20211005_130719_cube_00001.fits"
|
|
73
|
-
# # #
|
|
74
|
-
# # #
|
|
75
|
-
# # # filename = "00847_CSL_00086_N-FEE_CCD_20211011_133546_cube_00001.fits"
|
|
76
|
-
# # # filename = f"/STER/platodata/CSL/obs/{filename}"
|
|
77
|
-
# # # # filename = f"/Users/sara/work/Instrumentation/Plato/cgse/data/storage/obs/{filename}"
|
|
78
|
-
# # #
|
|
79
|
-
# # # with fits.open(filename) as hdul:
|
|
80
|
-
# # # hdul.info()
|
|
81
|
-
# #
|
|
82
|
-
# #
|
|
83
|
-
# # hdf5_filename = "/Users/sara/847/newfits/00813_CSL_00086_N-FEE_SPW_20211007_085422_00001.hdf5"
|
|
84
|
-
# # hdf5_file = h5.get_file(hdf5_filename)
|
|
85
|
-
# #
|
|
86
|
-
# # for group in h5.groups(hdf5_file):
|
|
87
|
-
# #
|
|
88
|
-
# # if "data" in group.keys():
|
|
89
|
-
# #
|
|
90
|
-
# # print(f"Data: {group.keys()}")
|
|
91
|
-
# #
|
|
92
|
-
# # n_fee_state = group["data"].attrs
|
|
93
|
-
# #
|
|
94
|
-
# # is_in_data_acquisition_mode = in_data_acquisition_mode(n_fee_state)
|
|
95
|
-
# # print(f"In data acquisition mode: {is_in_data_acquisition_mode}")
|
|
96
|
-
# #
|
|
97
|
-
# # data = group["data"]
|
|
98
|
-
# # sorted_datasets = natsort.natsorted(data.items(), key=lambda x: x[0])
|
|
99
|
-
# #
|
|
100
|
-
# # expected_id = 0
|
|
101
|
-
# # for identifier, dataset in sorted_datasets:
|
|
102
|
-
# # # print(f"Identifier: {identifier}")
|
|
103
|
-
# # if int(identifier) != expected_id:
|
|
104
|
-
# # print(f"Identifier order problem: {identifier} vs {expected_id}")
|
|
105
|
-
# # expected_id += 1
|
|
106
|
-
# # # spw_packet = SpaceWirePacket.create_packet(h5.get_data(dataset))
|
|
107
|
-
# # # persistence.create({f"SpW packet {identifier}": spw_packet})
|
|
108
|
-
# #
|
|
109
|
-
# # hdf5_file.close()
|
|
110
|
-
# #
|
|
111
|
-
# #
|
|
112
|
-
# # from egse.dpu.fitsgen import create_fits_from_hdf5
|
|
113
|
-
# #
|
|
114
|
-
# # # 2441: 20220126_SRON_N-FEE_SPW_03025.hdf5’ ⟶ ‘20220126_SRON_N-FEE_SPW_03557.hdf5
|
|
115
|
-
# #
|
|
116
|
-
# # hdf5_filenames = []
|
|
117
|
-
# # location = "/STER/platodata/SRON/plato-data/daily/20220126"
|
|
118
|
-
# #
|
|
119
|
-
# # for hdf5_index in range(3025, 3557+1):
|
|
120
|
-
# #
|
|
121
|
-
# # hdf5_filenames.append(f"{location}/20220126_SRON_N-FEE_SPW_{hdf5_index:05d}.hdf5")
|
|
122
|
-
# #
|
|
123
|
-
# # create_fits_from_hdf5(hdf5_filenames)
|
|
124
|
-
# #
|
|
125
|
-
# #
|
|
126
|
-
# # # 2423: ‘20220125_SRON_N-FEE_SPW_01087.hdf5’ ⟶ ‘20220125_SRON_N-FEE_SPW_02401.hdf5’
|
|
127
|
-
# #
|
|
128
|
-
# # hdf5_filenames = []
|
|
129
|
-
# # location = "/STER/platodata/SRON/plato-data/daily/20220125"
|
|
130
|
-
# #
|
|
131
|
-
# # for hdf5_index in range(1087, 2401+1):
|
|
132
|
-
# #
|
|
133
|
-
# # hdf5_filenames.append(f"{location}/20220125_SRON_N-FEE_SPW_{hdf5_index:05d}.hdf5")
|
|
134
|
-
# #
|
|
135
|
-
# # create_fits_from_hdf5(hdf5_filenames)
|
|
136
|
-
# #
|
|
137
|
-
# #
|
|
138
|
-
# #
|
|
139
|
-
# #
|
|
140
|
-
# # # 2442: ‘20220126_SRON_N-FEE_SPW_03698.hdf5’ ⟶ ‘20220126_SRON_N-FEE_SPW_05106.hdf5’
|
|
141
|
-
# #
|
|
142
|
-
# # hdf5_filenames = []
|
|
143
|
-
# # location = "/STER/platodata/SRON/plato-data/daily/20220126"
|
|
144
|
-
# #
|
|
145
|
-
# # for hdf5_index in range(3698, 5106+1):
|
|
146
|
-
# #
|
|
147
|
-
# # hdf5_filenames.append(f"{location}/20220126_SRON_N-FEE_SPW_{hdf5_index:05d}.hdf5")
|
|
148
|
-
# #
|
|
149
|
-
# # create_fits_from_hdf5(hdf5_filenames)
|
|
150
|
-
# #
|
|
151
|
-
# # # 2408: ‘20220124_SRON_N-FEE_SPW_00146.hdf5’ ⟶ ‘20220124_SRON_N-FEE_SPW_00292.hdf5’
|
|
152
|
-
# # # (the last file is corrupt!)
|
|
153
|
-
# #
|
|
154
|
-
# # hdf5_filenames = []
|
|
155
|
-
# # location = "/STER/platodata/SRON/plato-data/daily/20220124"
|
|
156
|
-
# #
|
|
157
|
-
# # for hdf5_index in range(146, 292+1):
|
|
158
|
-
# #
|
|
159
|
-
# # hdf5_filenames.append(f"{location}/20220124_SRON_N-FEE_SPW_{hdf5_index:05d}.hdf5")
|
|
160
|
-
# #
|
|
161
|
-
# # create_fits_from_hdf5(hdf5_filenames)
|
|
162
|
-
# #
|
|
163
|
-
# #
|
|
164
|
-
# # filename = "/Users/sara/work/Instrumentation/Plato/cgse/data/storage/daily/20220126/20220126_CSL_N-FEE_SPW_00186.hdf5"
|
|
165
|
-
# # hdf5_file = h5.get_file(filename, mode="r")
|
|
166
|
-
# #
|
|
167
|
-
# # for group in h5.groups(hdf5_file):
|
|
168
|
-
# #
|
|
169
|
-
# # if "data" in group.keys():
|
|
170
|
-
# #
|
|
171
|
-
# # print(group["data"].attrs["sensor_sel"])
|
|
172
|
-
# #
|
|
173
|
-
# # hdf5_file.close()
|
|
174
|
-
# #
|
|
175
|
-
# # hdf5_filename = "/Users/sara/work/Instrumentation/Plato/cgse/data/storage/daily/20220128/20220128_CSL_N-FEE_SPW_00771.hdf5"
|
|
176
|
-
# # hdf5_file = h5.get_file(hdf5_filename, mode="r")
|
|
177
|
-
# # if "obsid" in hdf5_file:
|
|
178
|
-
# # obsid = hdf5_file["obsid"][()].decode()
|
|
179
|
-
# # hdf5_file.close()
|
|
180
|
-
# #
|
|
181
|
-
# #
|
|
182
|
-
# #
|
|
183
|
-
# # # from camtest import *
|
|
184
|
-
# # # from egse.dpu.fitsgen import create_fits_from_hdf5
|
|
185
|
-
# # #
|
|
186
|
-
# # # setup = load_setup
|
|
187
|
-
# # #
|
|
188
|
-
# # # # 2614: ‘20220201_SRON_N-FEE_SPW_20949.hdf5’ ⟶ ‘20220201_SRON_N-FEE_SPW_20965.hdf5’
|
|
189
|
-
# # # # (the last file is corrupt!)
|
|
190
|
-
# # #
|
|
191
|
-
# # # hdf5_filenames = []
|
|
192
|
-
# # # location = "/STER/platodata/SRON/plato-data/daily/20220201"
|
|
193
|
-
# # #
|
|
194
|
-
# # # for hdf5_index in range(20949, 20965+1):
|
|
195
|
-
# # #
|
|
196
|
-
# # # hdf5_filenames.append(f"{location}/20220201_SRON_N-FEE_SPW_{hdf5_index:05d}.hdf5")
|
|
197
|
-
# # #
|
|
198
|
-
# # # create_fits_from_hdf5(hdf5_filenames)
|
|
199
|
-
# # #
|
|
200
|
-
# # #
|
|
201
|
-
# # # #########
|
|
202
|
-
# # #
|
|
203
|
-
# # # from camtest import *
|
|
204
|
-
# # # from egse.dpu.fitsgen import create_fits_from_hdf5
|
|
205
|
-
# # # import os
|
|
206
|
-
# # #
|
|
207
|
-
# # # setup = load_setup()
|
|
208
|
-
# #
|
|
209
|
-
# # os.environ["PLATO_DATA_STORAGE_LOCATION"] = "/STER/platodata/SRON/plato-data"
|
|
210
|
-
# #
|
|
211
|
-
# # # 2612: ‘20220201_SRON_N-FEE_SPW_20840.hdf5’ ⟶ ‘20220201_SRON_N-FEE_SPW_20855.hdf5’
|
|
212
|
-
# # # (the last file is corrupt!)
|
|
213
|
-
# #
|
|
214
|
-
# # hdf5_filenames = []
|
|
215
|
-
# # location = "/STER/platodata/SRON/plato-data/daily/20220201"
|
|
216
|
-
# #
|
|
217
|
-
# # for hdf5_index in range(20840, 20855+1):
|
|
218
|
-
# #
|
|
219
|
-
# # hdf5_filenames.append(f"{location}/20220201_SRON_N-FEE_SPW_{hdf5_index:05d}.hdf5")
|
|
220
|
-
# #
|
|
221
|
-
# # create_fits_from_hdf5(hdf5_filenames)
|
|
222
|
-
# #
|
|
223
|
-
# #
|
|
224
|
-
# # # 2615: ‘20220201_SRON_N-FEE_SPW_20982.hdf5’ ⟶ ‘20220201_SRON_N-FEE_SPW_21094.hdf5’
|
|
225
|
-
# # # (the last file is corrupt!)
|
|
226
|
-
# #
|
|
227
|
-
# # hdf5_filenames = []
|
|
228
|
-
# # location = "/STER/platodata/SRON/plato-data/daily/20220201"
|
|
229
|
-
# #
|
|
230
|
-
# # for hdf5_index in range(20982, 21094+1):
|
|
231
|
-
# #
|
|
232
|
-
# # hdf5_filenames.append(f"{location}/20220201_SRON_N-FEE_SPW_{hdf5_index:05d}.hdf5")
|
|
233
|
-
# #
|
|
234
|
-
# # create_fits_from_hdf5(hdf5_filenames)
|
|
235
|
-
# #
|
|
236
|
-
# #
|
|
237
|
-
# # # 2620: ‘20220202_SRON_N-FEE_SPW_01102.hdf5’ ⟶ ‘20220202_SRON_N-FEE_SPW_02074.hdf5’
|
|
238
|
-
# # # (the last file is corrupt!)
|
|
239
|
-
# #
|
|
240
|
-
# # hdf5_filenames = []
|
|
241
|
-
# # location = "/STER/platodata/SRON/plato-data/daily/20220202"
|
|
242
|
-
# #
|
|
243
|
-
# # for hdf5_index in range(1102, 2074+1):
|
|
244
|
-
# #
|
|
245
|
-
# # hdf5_filenames.append(f"{location}/20220202_SRON_N-FEE_SPW_{hdf5_index:05d}.hdf5")
|
|
246
|
-
# #
|
|
247
|
-
# # create_fits_from_hdf5(hdf5_filenames)
|
|
248
|
-
# #
|
|
249
|
-
# #
|
|
250
|
-
# #
|
|
251
|
-
# #
|
|
252
|
-
# #
|
|
253
|
-
# #
|
|
254
|
-
# # # 2623: ‘20220202_SRON_N-FEE_SPW_02207.hdf5’ ⟶ ‘20220202_SRON_N-FEE_SPW_02766.hdf5’
|
|
255
|
-
# # # (the last file is corrupt!)
|
|
256
|
-
# #
|
|
257
|
-
# # hdf5_filenames = []
|
|
258
|
-
# # location = "/STER/platodata/SRON/plato-data/daily/20220202"
|
|
259
|
-
# #
|
|
260
|
-
# # for hdf5_index in range(2207, 2766+1):
|
|
261
|
-
# #
|
|
262
|
-
# # hdf5_filenames.append(f"{location}/20220202_SRON_N-FEE_SPW_{hdf5_index:05d}.hdf5")
|
|
263
|
-
# #
|
|
264
|
-
# # create_fits_from_hdf5(hdf5_filenames)
|
|
265
|
-
# #
|
|
266
|
-
# #
|
|
267
|
-
# # from egse.dpu.fitsgen import get_hdf5_filenames_for_obsid
|
|
268
|
-
# #
|
|
269
|
-
# # os.environ["PLATO_DATA_STORAGE_LOCATION"] = "/STER/platodata/SRON/plato-data"
|
|
270
|
-
# # # for_obsid("02620_SRON")
|
|
271
|
-
# #
|
|
272
|
-
# # hdf5_filenames = get_hdf5_filenames_for_obsid("02620_SRON", data_dir="/STER/platodata/SRON/plato-data")
|
|
273
|
-
# # create_fits_from_hdf5(hdf5_filenames)
|
|
274
|
-
# #
|
|
275
|
-
# # filename = "/STER/platodata/SRON/plato-data/obs/02607_SRON/02607_SRON_N-FEE_CCD_00002_20220201_cube.fits"
|
|
276
|
-
# #
|
|
277
|
-
# # from astropy.io import fits
|
|
278
|
-
# # filename = "/STER/platodata/SRON/plato-data/obs/02607_SRON/02607_SRON_N-FEE_CCD_00002_20220201_cube.fits"
|
|
279
|
-
# #
|
|
280
|
-
# # filename = "/Users/sara/work/Instrumentation/Plato/cgse/data/storage/SRON_00043_02156/SRON_00043_02156_N-FEE_CCD_20211201_cube_00001.fits"
|
|
281
|
-
# # from astropy.wcs import WCS
|
|
282
|
-
# # f = fits.open(filename)
|
|
283
|
-
# #
|
|
284
|
-
# #
|
|
285
|
-
# # h = f[2].header
|
|
286
|
-
# # # h["CTYPE3"] = "VOPT"
|
|
287
|
-
# # # h.pop("CUNIT3")
|
|
288
|
-
# # w = WCS(h, f)
|
|
289
|
-
# #
|
|
290
|
-
# # #
|
|
291
|
-
# # # w = WCS(f[1].header)
|
|
292
|
-
# # # w = WCS(f[2].header, fix=True)
|
|
293
|
-
# #
|
|
294
|
-
# # h.pop("CRPIX3")
|
|
295
|
-
# # h.pop("CRVAL3")
|
|
296
|
-
# #
|
|
297
|
-
# #
|
|
298
|
-
# # h.pop("PS3_0") # "WCS-TAB_3_E"
|
|
299
|
-
# # h.pop("PS3_1") # "WCS-TIME"
|
|
300
|
-
# # h.pop("CTYPE3") # "TIME-TAB"
|
|
301
|
-
# #
|
|
302
|
-
# # h["PS3_0a"] = "WCS-TAB_3_E"
|
|
303
|
-
# # h["PS3_1a"] = "TIME"
|
|
304
|
-
# # # h["CTYPE3"] = "TIME-TAB"
|
|
305
|
-
# #
|
|
306
|
-
# # w = WCS(h, f)
|
|
307
|
-
# # w.pixel_to_world_values(0,-3852,2)
|
|
308
|
-
# # f.close()
|
|
309
|
-
# #
|
|
310
|
-
# #
|
|
311
|
-
# #
|
|
312
|
-
# # # 2623: ‘20220202_SRON_N-FEE_SPW_02207.hdf5’ ⟶ ‘20220202_SRON_N-FEE_SPW_03284.hdf5’
|
|
313
|
-
# # # (the last file is corrupt!)
|
|
314
|
-
# #
|
|
315
|
-
# # hdf5_filenames = []
|
|
316
|
-
# #
|
|
317
|
-
# # location = "/STER/platodata/SRON/plato-data/daily/20220202"
|
|
318
|
-
# #
|
|
319
|
-
# # for hdf5_index in range(2723, 3284+1):
|
|
320
|
-
# #
|
|
321
|
-
# # hdf5_filenames.append(f"{location}/20220202_SRON_N-FEE_SPW_{hdf5_index:05d}.hdf5")
|
|
322
|
-
# #
|
|
323
|
-
# # create_fits_from_hdf5(hdf5_filenames)
|
|
324
|
-
# #
|
|
325
|
-
# # time_axis = [0., 6.24216413, 12.50460601]
|
|
326
|
-
# # index_axis = [0, 1, 2]
|
|
327
|
-
# # index_column = fits.Column("INDEX", format="E", array=index_axis)
|
|
328
|
-
# # time_column = fits.Column("TIME", format="F", array=time_axis)
|
|
329
|
-
# #
|
|
330
|
-
# # coldefs = fits.ColDefs([index_column, time_column])
|
|
331
|
-
# # hdu = fits.BinTableHDU.from_columns(coldefs)
|
|
332
|
-
# #
|
|
333
|
-
# #
|
|
334
|
-
# # time_table = fits.BinTableHDU.from_columns([time_column], nrows=0)
|
|
335
|
-
# # time_table.header["EXTNAME"] = f"WCS-TAB_{3}_{'E'}"
|
|
336
|
-
# #
|
|
337
|
-
# # time_table.data
|
|
338
|
-
# #
|
|
339
|
-
# #
|
|
340
|
-
# # from rich.progress import track
|
|
341
|
-
# # import time
|
|
342
|
-
# # for index in track(range(10), description=f"Checking {10} files"):
|
|
343
|
-
# # print("Test")
|
|
344
|
-
# # # time.sleep(3)
|
|
345
|
-
# #
|
|
346
|
-
# #
|
|
347
|
-
# # filename = "/Users/sara/test-16bit.fits"
|
|
348
|
-
# #
|
|
349
|
-
# # primary_hdu = fits.PrimaryHDU()
|
|
350
|
-
# # primary_hdu.writeto(filename)
|
|
351
|
-
# #
|
|
352
|
-
# # import numpy as np
|
|
353
|
-
# # image = np.array([[0, 65535], [0, 65535]], dtype=np.uint16)
|
|
354
|
-
# # image_header = fits.Header()
|
|
355
|
-
# # image_header["SIMPLE"] = "T"
|
|
356
|
-
# # image_header["BITPIX"] = 16
|
|
357
|
-
# # image_header["BZERO"] = 32768
|
|
358
|
-
# # fits.append(filename, image, image_header)
|
|
359
|
-
# # fits.append(filename, image, image_header)
|
|
360
|
-
# # with fits.open(filename) as f:
|
|
361
|
-
# # f.info()
|
|
362
|
-
# #
|
|
363
|
-
# # print((f[1].data))
|
|
364
|
-
# # print(f[1].header)
|
|
365
|
-
# #
|
|
366
|
-
# # f = fits.open(filename)
|
|
367
|
-
# #
|
|
368
|
-
# # stripped_filename = "/Users/sara/tab-fits3.fits"
|
|
369
|
-
# #
|
|
370
|
-
# # primary_hdu = f[0].writeto(stripped_filename)
|
|
371
|
-
# # data = f[2].data[:2]
|
|
372
|
-
# # header = f[2].header
|
|
373
|
-
# # header["NAXIS1"] = 2
|
|
374
|
-
# # fits.append(stripped_filename, data, header)
|
|
375
|
-
# #
|
|
376
|
-
# # time_axis = np.array([0.1, 6.24216413])
|
|
377
|
-
# # time_column = fits.Column("TIME", format="F", array=time_axis)
|
|
378
|
-
# # time_table = fits.BinTableHDU.from_columns([time_column])
|
|
379
|
-
# # time_table.header["EXTNAME"] = "WCS-TAB_3_E"
|
|
380
|
-
# # fits.append(stripped_filename, time_table.data, time_table.header)
|
|
381
|
-
# #
|
|
382
|
-
# # f.close()
|
|
383
|
-
# # f = fits.open(stripped_filename)
|
|
384
|
-
# # f.info()
|
|
385
|
-
# #
|
|
386
|
-
# # w = WCS(f[1].header)
|
|
387
|
-
# #
|
|
388
|
-
# # f.close()
|
|
389
|
-
# # # fits.append(stripped_filename, f[2].data, f[2].header)
|
|
390
|
-
# # # fits.append(stripped_filename, f[1].data, f[1].header)
|
|
391
|
-
# #
|
|
392
|
-
# # hdul = fits.open(stripped_filename)
|
|
393
|
-
# # wcs = WCS(hdul[1].header)
|
|
394
|
-
# #
|
|
395
|
-
# # header = f[2].header
|
|
396
|
-
# # # header.pop("PS3_0")
|
|
397
|
-
# # header.pop("CTYPE3")
|
|
398
|
-
# # wcs = WCS(header, naxis=2)
|
|
399
|
-
# #
|
|
400
|
-
# #
|
|
401
|
-
# #
|
|
402
|
-
# # hdf5_filenames = []
|
|
403
|
-
# # location = "/STER/platodata/SRON/plato-data/daily/20220211"
|
|
404
|
-
# #
|
|
405
|
-
# # for hdf5_index in range(16409, 17595+1):
|
|
406
|
-
# #
|
|
407
|
-
# # hdf5_filenames.append(f"{location}/20220211_SRON_N-FEE_SPW_{hdf5_index:05d}.hdf5")
|
|
408
|
-
# #
|
|
409
|
-
# # # create_fits_from_hdf5(hdf5_filenames, setup=setup)
|
|
410
|
-
# #
|
|
411
|
-
# #
|
|
412
|
-
# # from egse.visitedpositions import visit_field_angles
|
|
413
|
-
# # import numpy as np
|
|
414
|
-
# #
|
|
415
|
-
# # vtheta = np.array([1.,3.,7.,10.,13.,16., 16.5,17.,17.5,17.7,17.9, 18.,18.2,18.4,18.6,18.8, 18.88,18.95,19.0])
|
|
416
|
-
# # vphi = np.array([-135, 135, 45, -45])
|
|
417
|
-
# #
|
|
418
|
-
# # for theta in vtheta:
|
|
419
|
-
# # for phi in vphi[0:1]:
|
|
420
|
-
# # visit_field_angles(theta, phi)
|
|
421
|
-
# #
|
|
422
|
-
# #
|
|
423
|
-
# # filename = "/STER/platodata/SRON/plato-data/obs/03024_SRON/03024_SRON_N-FEE_CCD_00001_20220223_cube.fits"
|
|
424
|
-
# #
|
|
425
|
-
# #
|
|
426
|
-
# # with fits.open(filename) as f:
|
|
427
|
-
# # f.info()
|
|
428
|
-
# #
|
|
429
|
-
# #
|
|
430
|
-
# # # Normal dark
|
|
431
|
-
# #
|
|
432
|
-
# # filename_sat = "/STER/platodata/SRON/plato-data/obs/03054_SRON/03054_SRON_N-FEE_CCD_00003_20220224_cube.fits"
|
|
433
|
-
# #
|
|
434
|
-
# # with fits.open(filename_sat) as f:
|
|
435
|
-
# # f.info()
|
|
436
|
-
# #
|
|
437
|
-
# # filename_sat1 = "/STER/platodata/SRON/plato-data/obs/03054_SRON/03054_SRON_N-FEE_CCD_00078_20220224_cube.fits"
|
|
438
|
-
# # filename_sat2 = "/STER/platodata/SRON/plato-data/obs/03054_SRON/03054_SRON_N-FEE_CCD_00079_20220224_cube.fits"
|
|
439
|
-
# # filename_sat3 = "/STER/platodata/SRON/plato-data/obs/03054_SRON/03054_SRON_N-FEE_CCD_00080_20220224_cube.fits"
|
|
440
|
-
# #
|
|
441
|
-
# # with fits.open(filename_sat1) as f:
|
|
442
|
-
# # f.info()
|
|
443
|
-
# #
|
|
444
|
-
# # with fits.open(filename_sat2) as f:
|
|
445
|
-
# # f.info()
|
|
446
|
-
# #
|
|
447
|
-
# # with fits.open(filename_sat3) as f:
|
|
448
|
-
# # f.info()
|
|
449
|
-
# from egse.fee import fee_side
|
|
450
|
-
# import numpy as np
|
|
451
|
-
# from astropy.io import fits
|
|
452
|
-
#
|
|
453
|
-
# from egse.system import time_since_epoch_1958
|
|
454
|
-
#
|
|
455
|
-
# fits_filename = "/STER/platodata/SRON/plato-data/obs/02915_SRON/02915_SRON_N-FEE_CCD_00001_20220211_cube.fits"
|
|
456
|
-
# fits_file = fits.open(fits_filename)
|
|
457
|
-
#
|
|
458
|
-
# absolute_time = {}
|
|
459
|
-
# # start_time = time_since_epoch_1958(fits_file["PRIMARY"].header["DATE-OBS"]) # TODO
|
|
460
|
-
# start_time = 0
|
|
461
|
-
#
|
|
462
|
-
# for ccd_number in range(1, 5):
|
|
463
|
-
#
|
|
464
|
-
# for ccd_side in fee_side:
|
|
465
|
-
#
|
|
466
|
-
# try:
|
|
467
|
-
# absolute_time[f"{ccd_number}{ccd_side.name[0]}"] = \
|
|
468
|
-
# np.array(fits_file[f"WCS-TAB_{ccd_number}_{fee_side(ccd_side).name[0]}"].data["TIME"]) + start_time
|
|
469
|
-
# except KeyError:
|
|
470
|
-
# pass
|
|
471
|
-
#
|
|
472
|
-
# # Lost data should be replaced by dummy frame (with NaNs)
|
|
473
|
-
#
|
|
474
|
-
#
|
|
475
|
-
# # Duration: time between subsequent readouts of the same side of the same CCD
|
|
476
|
-
# # TODO What should we do with the last or only frame?
|
|
477
|
-
#
|
|
478
|
-
# filename = "/STER/platodata/SRON/plato-data/obs/03054_SRON/03054_SRON_N-FEE_CCD_00107_20220224_cube.fits"
|
|
479
|
-
# fits_file = fits.open(filename)
|
|
480
|
-
# fits_file.info()
|
|
481
|
-
# data = fits_file[12].data
|
|
482
|
-
# print(np.min(data), np.max(data))
|
|
483
|
-
# fits_file.close()
|
|
484
|
-
#
|
|
485
|
-
#
|
|
486
|
-
# from egse.fee.n_fee_hk import get_calibrated_ccd_temperatures
|
|
487
|
-
# from egse.settings import Settings
|
|
488
|
-
# from egse.setup import NavigableDict
|
|
489
|
-
#
|
|
490
|
-
# sensor_cal_filename = "/Users/sara/work/Instrumentation/Plato/softwareDevelopment/plato-cgse-conf/data/nfee_sensor_calibration_em_v3.yaml"
|
|
491
|
-
# sensor_cal = NavigableDict(Settings.load(filename=sensor_cal_filename))#, add_local_settings=False))
|
|
492
|
-
#
|
|
493
|
-
# # 09.02.22 18:15
|
|
494
|
-
#
|
|
495
|
-
# current_data = {
|
|
496
|
-
# "NFEE_T_CCD2_RAW": 3338,
|
|
497
|
-
# "NFEE_T_CCD3_RAW": 3297,
|
|
498
|
-
# "NFEE_T_CCD4_RAW": 3283,
|
|
499
|
-
# "NFEE_T_CCD1_RAW": 3337
|
|
500
|
-
# }
|
|
501
|
-
#
|
|
502
|
-
# calibrated_ccd_temperatures = get_calibrated_ccd_temperatures(current_data, sensor_cal)
|
|
503
|
-
# print(f"Calibrated temperatures for 09.02.22 18:15 (degCelsius):")
|
|
504
|
-
# for key, item in calibrated_ccd_temperatures.items():
|
|
505
|
-
# print(f"- {key}: {item}")
|
|
506
|
-
#
|
|
507
|
-
#
|
|
508
|
-
# # 07.02.22 17:00
|
|
509
|
-
#
|
|
510
|
-
# current_data = {
|
|
511
|
-
# "NFEE_T_CCD2_RAW": 3526,
|
|
512
|
-
# "NFEE_T_CCD3_RAW": 3482,
|
|
513
|
-
# "NFEE_T_CCD4_RAW": 3469,
|
|
514
|
-
# "NFEE_T_CCD1_RAW": 3525
|
|
515
|
-
# }
|
|
516
|
-
#
|
|
517
|
-
# calibrated_ccd_temperatures = get_calibrated_ccd_temperatures(current_data, sensor_cal)
|
|
518
|
-
# print(f"Calibrated temperatures for 07.02.22 17:00 (degCelsius):")
|
|
519
|
-
# for key, item in calibrated_ccd_temperatures.items():
|
|
520
|
-
# print(f"- {key}: {item}")
|
|
521
|
-
#
|
|
522
|
-
# # 03.02.22 19:20
|
|
523
|
-
#
|
|
524
|
-
# current_data = {
|
|
525
|
-
# "NFEE_T_CCD2_RAW": 3709,
|
|
526
|
-
# "NFEE_T_CCD3_RAW": 3669,
|
|
527
|
-
# "NFEE_T_CCD4_RAW": 3648,
|
|
528
|
-
# "NFEE_T_CCD1_RAW": 3706
|
|
529
|
-
# }
|
|
530
|
-
#
|
|
531
|
-
# calibrated_ccd_temperatures = get_calibrated_ccd_temperatures(current_data, sensor_cal)
|
|
532
|
-
# print(f"Calibrated temperatures for 03.02.22 19:20 (degCelsius):")
|
|
533
|
-
# for key, item in calibrated_ccd_temperatures.items():
|
|
534
|
-
# print(f"- {key}: {item}")
|
|
535
|
-
#
|
|
536
|
-
# # filename1 = "/Users/sara/Downloads/20220607_IAS_N-FEE_SPW_00036.hdf5"
|
|
537
|
-
# # filename2 = "/Users/sara/Downloads/20220607_IAS_N-FEE_SPW_00037.hdf5"
|
|
538
|
-
# # filename3 = "/Users/sara/Downloads/20220607_IAS_N-FEE_SPW_00038.hdf5"
|
|
539
|
-
# # filename4 = "/Users/sara/Downloads/20220607_IAS_N-FEE_SPW_00039.hdf5"
|
|
540
|
-
#
|
|
541
|
-
# filename1 = "/STER/platodata/IAS/archive/IAS/daily/20220420/20220420_IAS_N-FEE_SPW_00119.hdf5"
|
|
542
|
-
# filename2 = "/STER/platodata/IAS/archive/IAS/daily/20220420/20220420_IAS_N-FEE_SPW_00120.hdf5"
|
|
543
|
-
# filename3 = "/STER/platodata/IAS/archive/IAS/daily/20220420/20220420_IAS_N-FEE_SPW_00121.hdf5"
|
|
544
|
-
# # filename2 = "/Users/sara/Downloads/20220607_IAS_N-FEE_SPW_00037.hdf5"
|
|
545
|
-
# # filename3 = "/Users/sara/Downloads/20220607_IAS_N-FEE_SPW_00038.hdf5"
|
|
546
|
-
# # filename4 = "/Users/sara/Downloads/20220607_IAS_N-FEE_SPW_00039.hdf5"
|
|
547
|
-
# #
|
|
548
|
-
# # # filename1 = "/STER/platodata/IAS/data/IAS/daily20220607_IAS_N-FEE_SPW_00036.hdf5"
|
|
549
|
-
# # # filename2 = "/STER/platodata/IAS/data/IAS/daily/20220607_IAS_N-FEE_SPW_00037.hdf5"
|
|
550
|
-
# #
|
|
551
|
-
# # hdf5_filenames = [filename1, filename2, filename3, filename4]
|
|
552
|
-
# # from camtest import load_setup
|
|
553
|
-
# # from egse.dpu.fitsgen import *
|
|
554
|
-
# # setup = load_setup(53)
|
|
555
|
-
# #
|
|
556
|
-
# # create_fits_from_hdf5(hdf5_filenames, setup=setup)
|
|
557
|
-
# # add_synoptics(obsid)
|
|
558
|
-
# #
|
|
559
|
-
# # fits_filename = "/Users/sara/work/Instrumentation/Plato/cgse/data/storage/obs/IAS_00067/IAS_00067_N-FEE_CCD_00004_20220607_cube.fits"
|
|
560
|
-
#
|
|
561
|
-
# from camtest import *
|
|
562
|
-
# from egse.dpu.fitsgen import *
|
|
563
|
-
# setup = GlobalState.setup
|
|
564
|
-
# location = "/STER/platodata/IAS/archive/IAS/"
|
|
565
|
-
# # f"{obsid:05d}"
|
|
566
|
-
#
|
|
567
|
-
# obsid = "00171_IAS"
|
|
568
|
-
# for_obsid(obsid, location=location)
|
|
569
|
-
#
|
|
570
|
-
# # hdf5_filenames = get_hdf5_filenames_for_obsid(obsid, data_dir=location)
|
|
571
|
-
# # setup = get_setup_for_obsid(obsid, data_dir=location)
|
|
572
|
-
# #
|
|
573
|
-
# # create_fits_from_hdf5(hdf5_filenames, location=location, setup=setup)
|
|
574
|
-
# # add_synoptics(obsid, data_dir=location)
|
|
575
|
-
#
|
|
576
|
-
# #
|
|
577
|
-
# # from persistqueue import Queue
|
|
578
|
-
# # hdf5_filename_queue = Queue("/Users/sara/hdf5_queue")
|
|
579
|
-
#
|
|
580
|
-
# # hdf5_filename = hdf5_filename_queue.get()[0]
|
|
581
|
-
#
|
|
582
|
-
# from camtest import GlobalState
|
|
583
|
-
# from egse.setup import submit_setup
|
|
584
|
-
#
|
|
585
|
-
# setup = GlobalState.setup
|
|
586
|
-
#
|
|
587
|
-
# ccd_id = {"0b00": "CCD3", "0b01": "CCD4", "0b10": "CCD1", "0b11": "CCD2"}
|
|
588
|
-
# ccd_numbering = {
|
|
589
|
-
# "CCD_BIN_TO_ID": [3, 4, 1, 2],
|
|
590
|
-
# "CCD_BIN_TO_IDX": [2, 3, 0, 1],
|
|
591
|
-
# "CCD_ID_TO_BIN": [0, "0b10", "0b11", "0b00", "0b01"],
|
|
592
|
-
# "CCD_IDX_TO_BIN": ["0b10", "0b11", "0b00", "0b01"],
|
|
593
|
-
# "DEFAULT_CCD_READOUT_ORDER": "0b01001110",
|
|
594
|
-
# "CCD_ID": ccd_id
|
|
595
|
-
# }
|
|
596
|
-
#
|
|
597
|
-
# setup.camera.fee.calibration = "yaml//../../common/n-fee/nfee_sensor_calibration_em_v3.yaml"
|
|
598
|
-
# setup.camera.fee["register_map"] = "yaml//../../common/n-fee/nfee_register_em_v2.yaml"
|
|
599
|
-
# setup.camera.fee["hk_map"] = "yaml//../../common/n-fee/nfee_hk_em_v2.yaml"
|
|
600
|
-
# setup.camera.fee["ccd_numbering"] = ccd_numbering
|
|
601
|
-
#
|
|
602
|
-
# setup = submit_setup(setup, "Updated CCD numbering for EM")
|
|
603
|
-
#
|
|
604
|
-
#
|
|
605
|
-
#
|
|
606
|
-
# l = ["0", "0b10", "0b11", "0b00", "0b01"]
|
|
607
|
-
# # l = [1, 2, 3, 4]
|
|
608
|
-
# if isinstance(l, list):
|
|
609
|
-
# line = "["
|
|
610
|
-
# for el in l:
|
|
611
|
-
# # if isinstance(el, str) and el.startswith("0b"):
|
|
612
|
-
# # line = f"{line}{el}, "
|
|
613
|
-
# # print(line)
|
|
614
|
-
# # else:
|
|
615
|
-
# line = f"{line}{el}, "
|
|
616
|
-
# line = f"{line[:-2]}]"
|
|
617
|
-
# print(line)
|
|
618
|
-
#
|
|
619
|
-
#
|
|
620
|
-
# from camtest import GlobalState
|
|
621
|
-
# setup = GlobalState.setup
|
|
622
|
-
# print(setup)
|
|
623
|
-
# gse = dict(setup.gse)
|
|
624
|
-
# gse.pop("tcs")
|
|
625
|
-
# setup.gse = gse
|
|
626
|
-
# print(setup.gse.tcs)
|
|
627
|
-
#
|
|
628
|
-
# setup = submit_setup(setup, "Removed TCS block")
|
|
629
|
-
#
|
|
630
|
-
#
|
|
631
|
-
#
|
|
632
|
-
#
|
|
633
|
-
#
|
|
634
|
-
#
|
|
635
|
-
# from camtest import GlobalState
|
|
636
|
-
# from egse.setup import submit_setup
|
|
637
|
-
#
|
|
638
|
-
# setup = GlobalState.setup
|
|
639
|
-
#
|
|
640
|
-
#
|
|
641
|
-
# print(setup.gse.aeu.awg2)
|
|
642
|
-
#
|
|
643
|
-
# print(setup.gse.aeu.awg2.calibration.n_cam_sync_data)
|
|
644
|
-
#
|
|
645
|
-
# setup.gse.aeu.awg2.calibration.n_cam_sync_data.A = "SyncData//(A | 25.00 | ArbDataFile//(N_CCD_READ_25) | ArbDataFile//(SVM_SYNC_CCD_READ_25) | 0.006667)"
|
|
646
|
-
# setup.gse.aeu.awg2.calibration.n_cam_sync_data.B = "SyncData//(B | 31.25 | ArbDataFile//(N_CCD_READ_31_25) | ArbDataFile//(SVM_SYNC_CCD_READ_31_25) | 0.016)"
|
|
647
|
-
# setup.gse.aeu.awg2.calibration.n_cam_sync_data.C = "SyncData//(C | 37.50 | ArbDataFile//(N_CCD_READ_37_50) | ArbDataFile//(SVM_SYNC_CCD_READ_37_50) | 0.006667)"
|
|
648
|
-
# setup.gse.aeu.awg2.calibration.n_cam_sync_data.D = "SyncData//(D | 43.75 | ArbDataFile//(N_CCD_READ_43_75) | ArbDataFile//(SVM_SYNC_CCD_READ_43_75) | 0.0114286)"
|
|
649
|
-
# setup.gse.aeu.awg2.calibration.n_cam_sync_data.E = "SyncData//(E | 50.00 | ArbDataFile//(N_CCD_READ_50) | ArbDataFile//(SVM_SYNC_CCD_READ_50) | 0.006667)"
|
|
650
|
-
#
|
|
651
|
-
# print(setup.gse.aeu.awg2.calibration.n_cam_sync_data)
|
|
652
|
-
#
|
|
653
|
-
# setup = submit_setup(setup, "Using short sync pulses of 200ms (instead of 150ms)")
|
|
654
|
-
#
|
|
655
|
-
#
|
|
656
|
-
#
|
|
657
|
-
# from egse.dpu.fitsgen import get_hdf5_filenames_for_obsid
|
|
658
|
-
# from egse.state import GlobalState
|
|
659
|
-
# from egse import h5
|
|
660
|
-
# from rich.console import Console
|
|
661
|
-
# from rich.table import Table
|
|
662
|
-
#
|
|
663
|
-
# obsid = "00170_IAS"
|
|
664
|
-
# obs_hdf5_files = get_hdf5_filenames_for_obsid(obsid, "/STER/platodata/IAS/data/IAS")
|
|
665
|
-
# ccd_bin_to_id = GlobalState.setup.camera.fee.ccd_numbering.CCD_BIN_TO_ID
|
|
666
|
-
#
|
|
667
|
-
# table = Table(title=f"Report for obsid {obsid}")
|
|
668
|
-
# table.add_column("HDF5 file")
|
|
669
|
-
# table.add_column("Group", no_wrap=True)
|
|
670
|
-
# table.add_column("CCD number", no_wrap=True)
|
|
671
|
-
# table.add_column("CCD side", no_wrap=True)
|
|
672
|
-
# table.add_column("Command", no_wrap=False)
|
|
673
|
-
#
|
|
674
|
-
# for hdf5_filename in obs_hdf5_files:
|
|
675
|
-
#
|
|
676
|
-
# try:
|
|
677
|
-
# with h5.get_file(hdf5_filename, mode="r", locking=False) as hdf5_file:
|
|
678
|
-
# hdf5_index = int(hdf5_filename.split("_")[-1].split(".")[0])
|
|
679
|
-
# print(hdf5_index)
|
|
680
|
-
#
|
|
681
|
-
# for index in range(0, 4):
|
|
682
|
-
# try:
|
|
683
|
-
# group = hdf5_file[str(index)]
|
|
684
|
-
#
|
|
685
|
-
# # Data
|
|
686
|
-
#
|
|
687
|
-
# has_e_side = False
|
|
688
|
-
# has_f_side = False
|
|
689
|
-
#
|
|
690
|
-
# try:
|
|
691
|
-
# data = group["data"]
|
|
692
|
-
#
|
|
693
|
-
#
|
|
694
|
-
# for packet_index in range(2):
|
|
695
|
-
# packet_type = DataPacket(data[str(packet_index)]).type
|
|
696
|
-
# ccd_number = ccd_bin_to_id[packet_type.ccd_number]
|
|
697
|
-
# ccd_side = packet_type.ccd_side
|
|
698
|
-
# if ccd_side == 1:
|
|
699
|
-
# has_e_side = True
|
|
700
|
-
# else:
|
|
701
|
-
# has_f_side = True
|
|
702
|
-
# if has_e_side and has_f_side:
|
|
703
|
-
# table.add_row(str(hdf5_index), str(index), str(ccd_number), "both", "")
|
|
704
|
-
# elif has_e_side:
|
|
705
|
-
# table.add_row(str(hdf5_index), str(index), str(ccd_number), "E", "")
|
|
706
|
-
# elif has_f_side:
|
|
707
|
-
# table.add_row(str(hdf5_index), str(index), str(ccd_number), "F", "")
|
|
708
|
-
# except KeyError:
|
|
709
|
-
# pass # No data
|
|
710
|
-
#
|
|
711
|
-
# # Command
|
|
712
|
-
#
|
|
713
|
-
# try:
|
|
714
|
-
# commands = group["commands"]
|
|
715
|
-
#
|
|
716
|
-
# for command_index in range(len(commands)):
|
|
717
|
-
# command = commands[str(command_index)][()]
|
|
718
|
-
# table.add_row(str(hdf5_index), str(index), "", "", f"{command_index}: {command}")
|
|
719
|
-
# except KeyError:
|
|
720
|
-
# pass # No commands sent
|
|
721
|
-
#
|
|
722
|
-
# except KeyError:
|
|
723
|
-
# pass # Internal sync
|
|
724
|
-
# except OSError as exc:
|
|
725
|
-
# print("OS error")
|
|
726
|
-
# except RuntimeError as exc:
|
|
727
|
-
# print("Runtime error")
|
|
728
|
-
# table.add_row(None, None, None, None)
|
|
729
|
-
#
|
|
730
|
-
# console = Console(width=300)
|
|
731
|
-
# console.print(table)
|
|
732
|
-
#
|
|
733
|
-
#
|
|
734
|
-
#
|
|
735
|
-
# from rich.console import Console
|
|
736
|
-
# from rich.table import Table
|
|
737
|
-
# from rich.progress import Progress, track, TextColumn, BarColumn, DownloadColumn, TransferSpeedColumn, \
|
|
738
|
-
# TimeRemainingColumn, SpinnerColumn, TimeElapsedColumn
|
|
739
|
-
# import time
|
|
740
|
-
#
|
|
741
|
-
# console = Console(record=True)
|
|
742
|
-
# with Progress(
|
|
743
|
-
# SpinnerColumn(),
|
|
744
|
-
# # *Progress.get_default_columns(),
|
|
745
|
-
# # TimeElapsedColumn(),
|
|
746
|
-
# console=console,
|
|
747
|
-
# transient=False,
|
|
748
|
-
# ) as progress:
|
|
749
|
-
# task1 = progress.add_task("[red]Downloading", total=10)
|
|
750
|
-
# while not progress.finished:
|
|
751
|
-
# progress.update(task1, advance=1)
|
|
752
|
-
# time.sleep(0.5)
|