Repository navigation
Support for KPF noise analysis tool #32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
610e58e
added config for KPF file, custom loading function, notebook with plots
Yashvi-Sharma 9eff459
KPF noise tool initial exploration
Yashvi-Sharma 0ea84a2
added and tested raveled welch
Yashvi-Sharma d6f5551
fixed lazy_run watch mode bugs related to stopping the thread, readin…
Yashvi-Sharma 087928e
minor fix
Yashvi-Sharma 29fab3d
Moved noise PSD task from walkman to eregion
Yashvi-Sharma eb1c3c9
Moved noise task tests from walkman to eregion
Yashvi-Sharma 73a3a9f
PR feedback incorporated, changed ext-id to ext-names in config
Yashvi-Sharma File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,106 @@ | ||
| description: KPF detectors (2 CCDs with 2 outputs each and 1 CCD with 1 output) | ||
| detector_type: CCD | ||
| detector_output_class: CCDOutput | ||
|
|
||
| objects: | ||
| - name: 'green' | ||
| class: DetImage | ||
| header_index: 0 | ||
| filename_format: '*.fits*' | ||
| properties: | ||
| x_size: 4188 | ||
| y_size: 4110 | ||
| pixel_size: 0.015 # mm | ||
| outputs: | ||
| - id: 'amp1' | ||
| ext_id: "GREEN_AMP1" # FITS extension ID | ||
| ext_slice: [!slice [0, 4110], !slice [0, 2094]] | ||
| data_slice: [!slice [0, 4110], !slice [0, 2094]] | ||
| serial_prescan: !slice [0, 4] # 4 pix | ||
| serial_overscan: !slice [2044, 2094] # 50 pix | ||
| parallel_prescan: !slice [0, 0] # 0 pix | ||
| parallel_overscan: !slice [4080, 4110] # 30 pix | ||
| readout_pixel: [0, 0] | ||
| parallel_axis: 'y' | ||
| gain: 5.2 # from header | ||
| - id: 'amp2' | ||
| ext_id: "GREEN_AMP2" | ||
| ext_slice: [!slice [0, 4110], !slice [0, 2094]] | ||
| data_slice: [ !slice [0, 4110], !slice [2094, 4188]] | ||
| serial_prescan: !slice [4187, 4183] # 4 pix | ||
| serial_overscan: !slice [2143, 2093] # 50 pix | ||
| parallel_prescan: !slice [0, 0] # 0 pix | ||
| parallel_overscan: !slice [4080, 4110] # 30 pix | ||
| readout_pixel: [0, 4187] | ||
| parallel_axis: 'y' | ||
| gain: 5.32 # electrons/ADU | ||
| focal_plane_position: | ||
| x_cen: 0.0 # mm | ||
| y_cen: 0.0 # mm | ||
| angle: 0.0 # degrees | ||
| flip_x: false | ||
| flip_y: false | ||
|
|
||
| - name: 'red' | ||
| class: DetImage | ||
| header_index: 0 | ||
| filename_format: '*.fits*' | ||
| properties: | ||
| x_size: 4188 | ||
| y_size: 4110 | ||
| pixel_size: 0.015 # mm | ||
| outputs: | ||
| - id: 'amp1' | ||
| ext_id: "RED_AMP1" # FITS extension ID | ||
| ext_slice: [!slice [0, 4110], !slice [0, 2094]] | ||
| data_slice: [!slice [0, 4110], !slice [0, 2094]] | ||
| serial_prescan: !slice [0, 4] # 4 pix | ||
| serial_overscan: !slice [2044, 2094] # 50 pix | ||
| parallel_prescan: !slice [0, 0] # 0 pix | ||
| parallel_overscan: !slice [4080, 4110] # 30 pix | ||
| readout_pixel: [0, 0] | ||
| parallel_axis: 'y' | ||
| gain: 5.0 # from header | ||
| - id: 'amp2' | ||
| ext_id: "RED_AMP2" | ||
| ext_slice: [!slice [0, 4110], !slice [0, 2094]] | ||
| data_slice: [ !slice [0, 4110], !slice [2094, 4188]] | ||
| serial_prescan: !slice [4187, 4183] # 4 pix | ||
| serial_overscan: !slice [2143, 2093] # 50 pix | ||
| parallel_prescan: !slice [0, 0] # 0 pix | ||
| parallel_overscan: !slice [4080, 4110] # 30 pix | ||
| readout_pixel: [0, 4187] | ||
| parallel_axis: 'y' | ||
| gain: 5.3 # electrons/ADU | ||
| focal_plane_position: | ||
| x_cen: 0.0 # mm | ||
| y_cen: 0.0 # mm | ||
| angle: 0.0 # degrees | ||
| flip_x: false | ||
| flip_y: false | ||
|
|
||
| - name: 'cahk' | ||
| class: DetImage | ||
| header_index: 0 | ||
| filename_format: '*.fits*' | ||
| properties: | ||
| x_size: 1024 | ||
| y_size: 255 | ||
| pixel_size: 0.026 # mm | ||
| outputs: | ||
| - id: 'amp1' | ||
| ext_id: "CA_HK" # FITS extension ID | ||
| ext_slice: [!slice [0, 255], !slice [0, 1024]] | ||
| data_slice: [!slice [0, 255], !slice [0, 1024]] | ||
| serial_prescan: !slice [0, 0] | ||
| serial_overscan: !slice [1023, 1023] | ||
| parallel_prescan: !slice [0, 0] | ||
| parallel_overscan: !slice [254, 254] | ||
| readout_pixel: [0, 0] | ||
| parallel_axis: 'y' | ||
| focal_plane_position: | ||
| x_cen: 0.0 # mm | ||
| y_cen: 0.0 # mm | ||
| angle: 0.0 # degrees | ||
| flip_x: false | ||
| flip_y: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might be good to add try/except in case file changes happen within that directory
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see where try/except would go here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One way
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh you meant file changing by file getting deleted or renamed...it would be quite unrealistic if something like that happens in the milliseconds between scan and this block. If something else makes getmtime fail the try-except will hide it at the moment