×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

New astro imaging catalog software. Help testing needed

  • Posts: 535
  • Thank you received: 109
I have it running with python 3.8.1 without any problems so far. I have pointed it at a folder of folders that spans 4 years of raws and calibration frames, and it is chugging away, but getting the error:

ERROR Null value for dec keyword: in Settings fix keyword name or set a default value else the file cannot be inserted into the database

It would be nice to have a stop or abort button to stop the import to fix any import issues.

My problem, of course, was that the calibration frames and other intermediate processing files also exist in this directory structure, so I need to drill down to my "Lights" folders and then the fits files import cleanly.

My folder structure for storage is
fits/<date>/<type>/<filter>/file.fits

Where type = "Light" or "Dark" etc. Pre-filtering the files to import would be handy. A filter that can look for "/Light/" for example, would skip all of the other files when scanning large folders.

Once I imported data though, the work you have done really starts to shine. All of the filtering for any of the elements is quite well done.

Thank you

Jim
Last edit: 3 years 11 months ago by Jim. Reason: more information
3 years 11 months ago #54041

Please Log in or Create an account to join the conversation.

  • Posts: 249
  • Thank you received: 62
thanks for reporting that works also on python 3.8.
About the issue: AstroDom needs to read all the values listed in Settings from a FITS file. There are two possible explanations if DEC is missing in the file:
1) it was a Dark, Flat or Bias so the DEC keyword is empty. Then you have to set a default value for DEC in settings. Zero could be fine.
2) The keyword DEC itself is not found in the FITS file. For example MaximDL uses OBJCTDEC instead of DEC. In this case in Settings set a keyword that matches your FITS dec keyword (Fits header tool can help).
If this doesn't work let me know.

I also suggest to parse smaller chunks of your data! It should work, but never tested with this amount of data.
ferrante
3 years 11 months ago #54042

Please Log in or Create an account to join the conversation.

  • Posts: 535
  • Thank you received: 109
I had edited my previous post to add more information. I had hoped to update it before you read it, but was not quick enough :)
The following user(s) said Thank You: Ferrante Enriques
3 years 11 months ago #54044

Please Log in or Create an account to join the conversation.

  • Posts: 249
  • Thank you received: 62
good to know that you fix it! and that you find it useful.

I never thought of intermediate processing files...but if Astrodom doesn't find the right keyword in those files it should just skip them when saving to database (and not block other imports).
On the other hand it should work fine for Dark, Flats and Bias.

The frame type filter is a good idea. Even though not everybody put the name in the folder's name and even the keywords are not always the same.

If using it you find something else that could be improved let me know.

ferrante
3 years 11 months ago #54045

Please Log in or Create an account to join the conversation.

  • Posts: 398
  • Thank you received: 117
FYI, in case it wasn't obvious, for those who are having problems during installation when using python3.8, the astrodom_linux_run.sh script line must be manually changed to the following:
cd ./venv/lib/python3.8/site-packages/
Afterwards, the app will load / run. otherwise, you'll get errors indicating that the 3.6 site-packages tree files aren't found.
3 years 11 months ago #54052

Please Log in or Create an account to join the conversation.

  • Posts: 249
  • Thank you received: 62
thanks for bringing up that issue. i will fix the script adding a check for existing python version. Can you please check if the following works also for you?

#!/bin/bash
cd $(dirname "$0")
source ./venv/bin/activate
if [ -d "./venv/lib/python3.6" ]
then
cd ./venv/lib/python3.6/site-packages/
elif [ -d "./venv/lib/python3.7"]
then
cd ./venv/lib/python3.7/site-packages/
elif [-d "./venv/lib/python3.8"]
then
cd ./venv/lib/python3.8/site-packages/
else
echo "python not found"
exit 0
fi
export QT_SCALE_FACTOR=1
python3 -m astrodom
deactivate
3 years 11 months ago #54056

Please Log in or Create an account to join the conversation.

  • Posts: 398
  • Thank you received: 117
You need to include a few spaces in particular locations within your script. On lines 4, 7 and 10, you need to add a space char to avoid shell confusion. After [ and before ] in each line, add a space char....then it works.
cheers, Doug
The following user(s) said Thank You: Ferrante Enriques
3 years 11 months ago #54060

Please Log in or Create an account to join the conversation.

  • Posts: 535
  • Thank you received: 109
It was just missing some spaces, then works:
#!/bin/bash
cd $(dirname "$0")
source ./venv/bin/activate
if [ -d "./venv/lib/python3.6" ]
then
cd ./venv/lib/python3.6/site-packages/
elif [ -d "./venv/lib/python3.7" ]
then
cd ./venv/lib/python3.7/site-packages/
elif [ -d "./venv/lib/python3.8" ]
then
cd ./venv/lib/python3.8/site-packages/
else
echo "python not found"
exit 0
fi
export QT_SCALE_FACTOR=1
python3 -m astrodom
deactivate
The following user(s) said Thank You: Ferrante Enriques
3 years 11 months ago #54061

Please Log in or Create an account to join the conversation.

  • Posts: 398
  • Thank you received: 117
A few initial impressions. REALLY nice! Thanks for doing this. Here's some suggestions to consider:
a. in the import fits tab, is unique hash really needed by the user (or can it just be a hidden field)?
b. import fits tab: To save GUI real-estate, I suggest shortening some names: Targ, Frame, Exp, Cam Temp, Site Lat, Site Lon. Idea is GUI space is precious...
c. Images tab: Same idea to shorten names as on import, but also: Eccen, SNR Wt
d. There are a few fields missing that I think we'll want in the future (when Ekos is ready...not yet, but hopefully in the future): Env Temp, Foc HFR, Seeing.
I'm not sure when these extra fields might get added, and it might be a pain to edit to add in the meantime, but could be very useful to have in the archive. Something to think about....
Finally, I think having screen resize capability would be highly desired. I can't seem to figure out how to resize (or it's not there)?

I'll play some more and give more feedback.... In the meantime, this is a fun tool to explore!
The following user(s) said Thank You: Ferrante Enriques
3 years 11 months ago #54063

Please Log in or Create an account to join the conversation.

  • Posts: 249
  • Thank you received: 62
Thank you! any advice is appreciated.

It can be a hidden field. but it is also the one used to highlight errors if the imported file is already existing in the database. You have the same message in the log window but here is more in the context.

I use AstroDom on a wide display...BUT if you want you can customize those name, they are stored in a json file: /venv/lib/python3.x/site-packages/astrodom/config/profile-EkosIndi.json
just change the 'description' values.
I suggest that you save (in Settings) a new custom profile to have a working backup and to avoid conflict when upgrading AstroDom. Tell me if you succeed in doing this.

Same as above

Exactly! I build it with the idea to expand the fields in the future The keyword list is almost dynamically loaded.

It's my first QT application....if someone could explain how to resize windows I will be very happy to implement it.

3 years 11 months ago #54066

Please Log in or Create an account to join the conversation.

  • Posts: 398
  • Thank you received: 117
I did succeed in changing those field names. Sufficient enough. A few more comments:
- The filename and Date fields should probably have slightly wider defaults. The Ekos date field is clipping. Easy enough to adjust, but with a larger default, it wouldn't.
- It would be very nice if any user adjusted field sizes were remembered. I know....it's easy enough to do each session. The user experience across sessions would be better. This should go for the import tab fields too.
- The last field of the import tab doesn't work as nicely as the last field of the images tab. You can't grab / downsize that last field to desired width so the header stays with the data.
- longer term, should you consider having the last field for "Comments" on the images tab? That might find use by some users...
- About that hash field, I recommend calling that "Status". Save the hash value internally and give a "Ready", or "Ready to Import" value until successfully imported?
- In settings, should the "hide" selector operate on both import tab and image tab fields? I realize that if hidden, it could cause confusion if any hidden import field wasn't right, but seems this could be overcome by a message. Just a thought.

Edit - a couple more (I think I'm done now):
- Recommend sexagesimal (hours) format for RA. Dec too (degs). It's pretty ubiquitous in the amateur community. I know astronomers get used to degrees for both, but....
- also, need a way to delete rows from the DB (image tab).
Last edit: 3 years 11 months ago by Doug S.
3 years 11 months ago #54072

Please Log in or Create an account to join the conversation.

  • Posts: 398
  • Thank you received: 117
I'm having problems importing Pixinsight CSV files. I'm also having a few core dumps. The main app seems to work ok to import image files, but when I attempt to import/associate the csv stats from Pixinsight's subframe selector, the app reads the CSV file ok, but complains it can't find the fits files to associate the data to (even though all fits have already been successfully imported to the DB and show up on the images tab). Looking at the terminal output as the app runs and sometimes cores (I've seen a "cancel" operation core a couple of times), I see these lines:

apparently non-fatal lines:
======================
QGridLayoutEngine::addItem: Cell (3, 1) already taken (often many lines repeated)

AstroDom-master/resources/venv/lib/python3.8/site-packages/numpy/core/fromnumeric.py:3334: RuntimeWarning: Mean of empty slice.
return _methods._mean(a, axis=axis, dtype=dtype,
AstroDom-master/resources/venv/lib/python3.8/site-packages/numpy/core/_methods.py:161: RuntimeWarning: invalid value encountered in double_scalars
ret = ret.dtype.type(ret / rcount)
AstroDom-master/resources/venv/lib/python3.8/site-packages/numpy/core/_methods.py:216: RuntimeWarning: Degrees of freedom <= 0 for slice
ret = _var(a, axis=axis, dtype=dtype, out=out, ddof=ddof,
AstroDom-master/resources/venv/lib/python3.8/site-packages/numpy/core/_methods.py:185: RuntimeWarning: invalid value encountered in true_divide
arrmean = um.true_divide(
AstroDom-master/resources/venv/lib/python3.8/site-packages/numpy/core/_methods.py:209: RuntimeWarning: invalid value encountered in double_scalars
ret = ret.dtype.type(ret / rcount)

Fatal lines:
==========
Traceback (most recent call last):
File "archive/AstroDom-master/resources/venv/lib/python3.8/site-packages/astrodom/mainWindow.py", line 279, in dialogChart
self.chartWindow.plot(self.imageListModel)
File "archive/AstroDom-master/resources/venv/lib/python3.8/site-packages/astrodom/chartWindow.py", line 184, in plot
self.lrDate = pg.LinearRegionItem([min(timestampObj), max(timestampObj)])
ValueError: min() arg is an empty sequence
./astrodom_linux_run.sh: line 6: 242224 Aborted (core dumped) python3 -m astrodom

Another Fatal (different run-time instance):
====================================
Traceback (most recent call last):
File "archive/AstroDom-master/resources/venv/lib/python3.8/site-packages/astrodom/importCsvTab.py", line 67, in importCsvFile
for row, val in enumerate(dataTemp):
UnboundLocalError: local variable 'dataTemp' referenced before assignment
./astrodom_linux_run.sh: line 6: 242696 Aborted (core dumped) python3 -m astrodom

Not sure what I'm doing wrong or if there's a Python 3.8 incompatibility....I think I followed flow as per the youtube video. Let me know if you'd like additional info to chase......
3 years 11 months ago #54076

Please Log in or Create an account to join the conversation.

Time to create page: 0.630 seconds