This repository has been archived by the owner on Jul 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #79 from robelgeda/master
Table Generator and Cutout Tool Upgrade
- Loading branch information
Showing
6 changed files
with
1,945 additions
and
621 deletions.
There are no files selected for viewing
This file contains 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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,244 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>MainWindow</class> | ||
<widget class="QMainWindow" name="MainWindow"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>700</width> | ||
<height>470</height> | ||
</rect> | ||
</property> | ||
<property name="minimumSize"> | ||
<size> | ||
<width>700</width> | ||
<height>470</height> | ||
</size> | ||
</property> | ||
<property name="maximumSize"> | ||
<size> | ||
<width>16777215</width> | ||
<height>470</height> | ||
</size> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>MainWindow</string> | ||
</property> | ||
<widget class="QWidget" name="centralwidget"> | ||
<layout class="QGridLayout" name="gridLayout"> | ||
<item row="3" column="1" colspan="4"> | ||
<widget class="QLineEdit" name="image_user_input"> | ||
<property name="toolTip"> | ||
<string><html><head/><body><p><span style=" font-size:12pt;">Path to image to make cutouts from.</span></p></body></html></string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="2" column="5"> | ||
<widget class="QPushButton" name="target_browse_button"> | ||
<property name="toolTip"> | ||
<string><html><head/><body><p><span style=" font-size:12pt;">Browse to add the target catalog file.</span></p></body></html></string> | ||
</property> | ||
<property name="text"> | ||
<string>Browse</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="2" column="1" colspan="4"> | ||
<widget class="QLineEdit" name="target_user_input"> | ||
<property name="toolTip"> | ||
<string><html><head/><body><p><span style=" font-size:12pt;">Path to the target catalog file.</span></p></body></html></string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="3" column="0"> | ||
<widget class="QLabel" name="image_label"> | ||
<property name="text"> | ||
<string> Path to Image:</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="4" column="0"> | ||
<widget class="QLabel" name="save_label"> | ||
<property name="text"> | ||
<string> Save Cutouts At:</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="6" column="1"> | ||
<widget class="QLabel" name="x_label"> | ||
<property name="text"> | ||
<string>X:</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="6" column="3"> | ||
<widget class="QLabel" name="y_label"> | ||
<property name="text"> | ||
<string>Y:</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="8" column="0"> | ||
<widget class="QLabel" name="progress_label"> | ||
<property name="text"> | ||
<string> Progress:</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="4" column="5"> | ||
<widget class="QPushButton" name="change_save_button"> | ||
<property name="toolTip"> | ||
<string><html><head/><body><p><span style=" font-family:'Arial'; font-size:12pt; color:#000000; background-color:transparent;">Change output destination.</span></p></body></html></string> | ||
</property> | ||
<property name="text"> | ||
<string>Change</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="6" column="2"> | ||
<widget class="QLineEdit" name="x_user_input"> | ||
<property name="toolTip"> | ||
<string><html><head/><body><p><span style=" font-family:'Arial'; font-size:12pt; color:#000000; background-color:transparent;">The X dimension size of individual cutouts in arcsec</span></p></body></html></string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="6" column="4"> | ||
<widget class="QLineEdit" name="y_user_input"> | ||
<property name="toolTip"> | ||
<string><html><head/><body><p><span style=" font-family:'Arial'; font-size:12pt; color:#000000; background-color:transparent;">The Y dimension size of individual cutouts in arcsec</span></p></body></html></string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="6" column="0"> | ||
<widget class="QLabel" name="size_label"> | ||
<property name="text"> | ||
<string> Cutout Size in arcsec:</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="3" column="5"> | ||
<widget class="QPushButton" name="image_browse_button"> | ||
<property name="toolTip"> | ||
<string><html><head/><body><p><span style=" font-size:12pt;">Browse to add an image to make cutouts from.</span></p></body></html></string> | ||
</property> | ||
<property name="text"> | ||
<string>Browse</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="4" column="1" colspan="4"> | ||
<widget class="QLineEdit" name="save_path_display"> | ||
<property name="styleSheet"> | ||
<string notr="true">background-color: rgba(255, 255, 255, 0);</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="2" column="0"> | ||
<widget class="QLabel" name="target_label"> | ||
<property name="text"> | ||
<string> Target Catalog File:</string> | ||
</property> | ||
<property name="wordWrap"> | ||
<bool>false</bool> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="0" column="0" colspan="6"> | ||
<widget class="QTextBrowser" name="infoBox"> | ||
<property name="styleSheet"> | ||
<string notr="true">background-color: rgba(255, 255, 255, 203);</string> | ||
</property> | ||
<property name="verticalScrollBarPolicy"> | ||
<enum>Qt::ScrollBarAlwaysOn</enum> | ||
</property> | ||
<property name="lineWrapMode"> | ||
<enum>QTextEdit::WidgetWidth</enum> | ||
</property> | ||
<property name="lineWrapColumnOrWidth"> | ||
<number>585</number> | ||
</property> | ||
<property name="html"> | ||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
<html><head><meta name="qrichtext" content="1" /><style type="text/css"> | ||
p, li { white-space: pre-wrap; } | ||
</style></head><body style=" font-family:'.SF NS Text'; font-size:13pt; font-weight:400; font-style:normal;"> | ||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:14pt; font-weight:600; text-decoration: underline;">General Cutout Tool</span></p> | ||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:12pt;"><br /></p> | ||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'.SF NS Text,sans-serif'; font-size:12pt;">The General Cutout Tool is part of the MOSViz package. This cutout tool generates cutouts of targets using an image and coordinate/orientation information stored in a 'target file'. </span><span style=" font-family:'Calibri,sans-serif'; font-size:12pt;">Descriptions</span><span style=" font-family:'.SF NS Text,sans-serif'; font-size:12pt;"> of inputs, outputs and requirements can be found below. Please visit the MOSViz documentation for further information.</span><span style=" font-size:12pt;"> </span></p> | ||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:12pt;"><br /></p> | ||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:12pt; font-weight:600; text-decoration: underline;">Inputs</span></p> | ||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:12pt; font-weight:600;">Target C</span><span style=" font-family:'.SF NS Text,sans-serif'; font-size:12pt; font-weight:600;">atalog</span><span style=" font-size:12pt; font-weight:600;"> File: </span><span style=" font-size:12pt;">A txt file listing targets and containing the following </span><span style=" font-size:12pt; font-weight:600;">space separated</span><span style=" font-size:12pt;"> columns:</span></p> | ||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:12pt;"> - Target Object Name (underscore for spaces). </span></p> | ||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:12pt;"> - Right Ascension (deg). </span></p> | ||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:12pt;"> - Declination (deg).</span></p> | ||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:12pt;"> - Optional: Cutout PA (deg). For rotation.</span></p> | ||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:12pt;">Begin comment rows with '#'.</span></p> | ||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:12pt;"><br /></p> | ||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:12pt; font-weight:600;">Path to Image:</span><span style=" font-size:12pt;"> An image to make cutouts from. If a target's coordinates are out of range, that target will not be assigned a cutout. A list of skipped files will be saved in a text file at the save destination.</span></p> | ||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:12pt;"><br /></p> | ||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a name="docs-internal-guid-c8f1413b-5cd0-ce16-af7d-b5b1a747d2df"></a><span style=" font-family:'Arial'; font-size:12pt; font-weight:600; color:#000000; background-color:transparent;">C</span><span style=" font-family:'Arial'; font-size:12pt; font-weight:600; color:#000000; background-color:transparent;">utout Size:</span><span style=" font-family:'Arial'; font-size:12pt; color:#000000; background-color:transparent;"> The size of individual cutouts in arcsec</span></p> | ||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Arial'; font-size:12pt; color:#000000;"><br /></p> | ||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Arial'; font-size:12pt; font-weight:600; color:#000000; background-color:transparent;">Save Path (Optional):</span><span style=" font-family:'Arial'; font-size:12pt; color:#000000; background-color:transparent;"> The Cutout Tool saves a subdirectory of cutouts in the same directory as the spectra files by default. You can change the save destination of these items by clicking the &quot;Change&quot; button.</span></p> | ||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Arial'; font-size:12pt; color:#000000;"><br /></p> | ||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Arial'; font-size:12pt; font-weight:600; text-decoration: underline; color:#000000; background-color:transparent;">Outputs</span></p> | ||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Arial'; font-size:12pt; font-weight:600; color:#000000; background-color:transparent;">Cutouts: </span><span style=" font-family:'Arial'; font-size:12pt; color:#000000; background-color:transparent;">A directory containing cutouts. The cutout images will follow the naming scheme:</span></p> | ||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a name="docs-internal-guid-c8f1413b-5cd1-dca8-4611-362810d62030"></a><span style=" font-family:'Arial'; font-size:12pt; font-style:italic; color:#000000; background-color:transparent;">&lt;</span><span style=" font-family:'Arial'; font-size:12pt; font-style:italic; color:#000000; background-color:transparent;">objectName&gt;.fits</span></p> | ||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Arial'; font-size:12pt; color:#000000;"><br /></p> | ||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Arial'; font-size:12pt; font-weight:600; color:#000000;">skipped_cutout_files.txt:</span><span style=" font-family:'Arial'; font-size:12pt; color:#000000;"> If the cutoutout tool skipps a spectral target (out of bounds etc..), a list of skipped spectral files will be saved in the output directory.</span></p> | ||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:12pt;"><br /></p></body></html></string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="8" column="1" colspan="4"> | ||
<widget class="QProgressBar" name="progressBar"> | ||
<property name="value"> | ||
<number>24</number> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="9" column="1" colspan="2"> | ||
<widget class="QPushButton" name="preview_button"> | ||
<property name="text"> | ||
<string>Preview</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="9" column="3" colspan="2"> | ||
<widget class="QPushButton" name="start_button"> | ||
<property name="text"> | ||
<string>Start</string> | ||
</property> | ||
<property name="default"> | ||
<bool>true</bool> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</widget> | ||
<widget class="QStatusBar" name="statusbar"/> | ||
<widget class="QMenuBar" name="menubar"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>700</width> | ||
<height>22</height> | ||
</rect> | ||
</property> | ||
</widget> | ||
</widget> | ||
<tabstops> | ||
<tabstop>target_user_input</tabstop> | ||
<tabstop>image_user_input</tabstop> | ||
<tabstop>x_user_input</tabstop> | ||
<tabstop>y_user_input</tabstop> | ||
<tabstop>target_browse_button</tabstop> | ||
<tabstop>infoBox</tabstop> | ||
<tabstop>image_browse_button</tabstop> | ||
<tabstop>change_save_button</tabstop> | ||
<tabstop>save_path_display</tabstop> | ||
</tabstops> | ||
<resources/> | ||
<connections/> | ||
</ui> |
Oops, something went wrong.