My AstroImaging Planner

This is an extraordinary work, Gabe. I won’t pretend I understood all of it, but I imagine this will be very useful to those who really need to dig into their data to assess its quality.Thanks for this contribution to the Voyager imaging community.

Kind regards,

Glenn

1 Like

Hi Gabe
I’m stunted by the work you have done with this project. I tried to install it in december but had no success (lack of time I guess). I’ll try again because it could be very usefull. Thank you very much for your contribution !!.

Martin

1 Like

Thanks all for the kind words. I’m going to focus in the next couple of days on documentation and reorg to help make it more clear how to get up and running. I think I’ll also create a few videos and post to youtube on the different apps and how to build/run them.

Gabe

3 Likes

Hello Gabe,

 This planner looks fantastic and is a great tool to plan out imaging sessions.

My issue is I’m not familiar navigating in github and am not sure what to download, can you tell me what I need to do to make this work, I have windows 10 pro.

I also sent you a PM earlier.

Thanks,
Joe

Hi Joe,
Sorry for not replying earlier. Over the past week, I’ve simplified the installation process. There are a few steps needed:

  1. Install docker
  2. Download the latest version (v0.2.1) of TheAstroImagingPlanner
  3. Unzip the above file
  4. Edit the entries in conf/env.conf
    a. Set DATA_PATH to the path where you store your data files. These files will be read only, and the app will not alter any data. This path should only include lights for now. I will work on a fix to allow darks/bias in this path, but currently the star extraction process fails for these files (since there are no stars).
    b. Set TARGETS_PATH to the path where your roboclip file is. This path is usually C:\Users\{USERNAME}\Documents\Voyager\Data.
  5. Run the bat script (if on Windows) run-docker.bat. If using on Mac/Linux, use ./run-docker.sh.

This will open a terminal window and start the app. There are three components to the app:

  1. The main UI which shows the dashboard and renders figures, etc. In the logs, this is labeled planner_app_1
  2. A watchdog to look for additional files, etc. For each FITs file, it extracts header, extracts the stars, measures it’s properties and aggregates them for storage in the db. In the logs, this is labeled watchdog_1
  3. A postgresql database to store all the fits headers and star metrics. In the logs, this is labeled db_1

While the db is being built, there may be some errors thrown in the UI logs. This is normal and typically resolves after a few minutes.

You should be able to close the command window that comes up when you run the run-docker script. You can track the activity in the main docker GUI:

Let me know if this helps, and if you have any questions.

3 Likes

Thank you for laying everything out I will try this when I get home from work.

Thanks again,
Joe

Hello Gabe,
I just sent you a message.
Joe

Wonderful app!
This will really make all of us more productive imagers.

Once you are able to remove bad images from the data base do think there will be a way to automatically update the remaining images on a target in Voyager ?

That would be very cool.

Max

Cheese heads rule ! ( I am a ex cheese head )

1 Like

Hi @AstroGabe

I have successfully installed your application. It is working as expected except that the target list does not update when a new target is added in the Roboclip Database. I did try the Drag n drop button and select the VoyRC.mdb file but the target list stays the same.
I’m I missing something ?

Martin

1 Like

That’s a great suggestion, and one I’ve been thinking about adding for some time. It would take some work to get that implemented, so would be a long term goal.

:wave::cheese: :smiley:

Yes, I’ll have a new version out soon that will handle this. Currently, I have it read the roboclip db on container start, so it won’t update. I’ll post here when that’s live.

1 Like

The latest version (v0.2.3) of TheAstroImagingPlanner is now available. This should fix the issues you’re having. I’ve also surfaced some actions in another tab to clear database tables, and to restart the app. Let me know if you encounter any more issues.

Gabe

Hi
I have updated with the new version. I have a few errors. The one about the weather graph is not new but the other ones are. I have adapted the new conf files with my info

2021-01-25_11-58-00

The “Change Target Status” menu is empty And I think the button for saving the target status has disapeared.

here are the traceback

Traceback (most recent call last):
File “/app/src/app.py”, line 913, in store_data
for profile in profile_list:
TypeError: ‘NoneType’ object is not iterable

Traceback (most recent call last):
File “/app/src/app.py”, line 752, in update_target_for_status_callback
df_combined_group = df_combined[df_combined[“GROUP”].isin(profile_list)]
File “/usr/local/lib/python3.8/site-packages/pandas/core/series.py”, line 4685, in isin
result = algorithms.isin(self, values)
File “/usr/local/lib/python3.8/site-packages/pandas/core/algorithms.py”, line 417, in isin
raise TypeError(
TypeError: only list-like objects are allowed to be passed to isin(), you passed a [NoneType]

Let me know if you need additionnal information

Incredible! It’s pretty much fills the gap onl the main feature I miss in Voyager. amazing!

1 Like

I probably have no clue what I am doing. I just installed Dock, set the path in env and fire up run-docker, and it gives me this error message, and seems stuck here:

It does seem like it’s progressing to the “watchdog” where it grabs images in the data folder (and subfolder) and seems analyzing the stars? I guess it would take a long time for a lot of data… also do I need to keep the planner open in the background all the time, or it does save the analyzed results and would only grab new images as they come in?

Thanks!

Thanks for the report. When profile_list is None, that indicates the Roboclip groups are not being processed correctly. What are your group names called? If you need more assistance, let me know via PM, and we can get more into details :slight_smile:

Gabe

Hi Yizhou!
Thanks for trying it out. It looks like the dash app is activated. Did you navigate to http://localhost:8050? If the fits_headers table isn’t being created, it’s likely because there are no suitable FITs files available in the path you provided. The watchdog goes through several steps, the first being a process of all the fits headers before going on to star metadata analysis. That fits header process should be relatively quick to start and you’ll see a bunch of files listed as they’re processed. The star analysis takes longer, and there’s extra verbosity there too on what it’s doing. If you see none of that, then I don’t think the watchdog has identified any files available for processing.

Gabe

Hi @AstroGabe

theses are the Groups in my Roboclip database

2021-01-29_15-02-27

It worked fine in the previous version

Martin

Starting to feel my way through the install process (regretting installing it on my OTA NUC, not sure how well it will cope with Docker!)

I am getting an error during the setup process - perhaps something to do with me setting the env.conf file up incorrectly?

“planner_app_1 | FileNotFoundError: [Errno 2] No such file or directory: ‘/app/conf/fits_header.yml’”

I have just released a new version with lots of new things:

  • Automatic image grading! You can set the criteria thresholds you’d like to use, including star counts, eccentricity, etc., and the progress graphs will update accordingly. You always will have the all the data represented in the graph, but it’ll slide down with the negative portion of the graph indicating the subs that don’t pass the threshold.
  • Tooltips to help explain the image grading settings.
  • Additional progress graphs in the inspector view.
  • Date selection for inspector views.
  • Local database persistence. From this version on, you can upgrade the planner and not need to regenerate the database tables.
  • Improved status handling.
  • File skiplist buttons to clear/view the files that the watchdog has skipped due to an error.
  • General performance/stability improvements.

Also, new in this release is automatic image grading. You can specify the threshold values for some parameters like eccentricity, etc., and the progress graphs will update accordingly.

@Paul_Muller @martin This release should solve the issues you’ve been having. Please let me know via PM is you’re still having issues.

Here are some screenshots of the new version:

Main planner tab showing the updated acquired data graph.

New inspector view showing target progress and frame acceptance criteria.

The plot progress mimics the behavior in the main target review tab for easier reference.

Inspector view with hover box on the scatter plot showing why this particular frame was rejected

Utils section showing available options

Previous night view where only the date is selected.

Only frames from that date are shown in the bar chart and scatter plot. I like this view since you can monitor the seeing across the night. I had two systems out for this night, and you can see the correlation of the FWHM is fairly high between the two sets of measurements.

Install instructions:

  • Download v0.3.0 and unzip the file.
  • Edit the conf/env.conf to update the data and roboclip directories.
  • Run the run-docker.bat file if on Windows, the run-docker.sh file if on Mac/Linux.

Thanks so much to @yzhzhang, @Quarkroscoe, and @RussD for their testing and feedback these past few weeks! :smiley: :raised_hands:

7 Likes