Author Topic: MaskGen update  (Read 384 times)

Offline hvb356

  • PixInsight Enthusiast
  • **
  • Posts: 77
    • View Profile
MaskGen update
« on: 2019 December 20 09:50:06 »
Hi,

the todays update on MaskGen.js includes two changes:

- a new folder is used to organize data downloaded from Gaia. Interrupted downloads can be restarted when the computer and/or network is back.

- a little improvement should also cover elongated stars. Before using this feature, one must create a psf image with the PSFImage.js script

The script is available here:

   http://www.skypixels.at/pixinsight_scripts.html

as well as in my repository.


Hartmut
TOA-150, ML8300, CFW2-7 w. Astronomik HaLRGB, PDF, EM-400, guiding FS-60 + ST402, ASCOM bsd. image acquisition

Offline avan1

  • Newcomer
  • Posts: 23
    • View Profile
Re: MaskGen update
« Reply #1 on: 2019 December 20 15:50:43 »
just update the MaskGen  and get the error message :

*** Error [000]: /opt/PixInsight/src/scripts/MaskGen.js, line 254: Error: File I/O Error: Unable to create directory: Permission denied: /MaskGen

any idea ???


Offline hvb356

  • PixInsight Enthusiast
  • **
  • Posts: 77
    • View Profile
Re: MaskGen update
« Reply #2 on: 2019 December 20 23:04:51 »
yes, which OS? Win 10 or Mac?
TOA-150, ML8300, CFW2-7 w. Astronomik HaLRGB, PDF, EM-400, guiding FS-60 + ST402, ASCOM bsd. image acquisition

Offline avan1

  • Newcomer
  • Posts: 23
    • View Profile
Re: MaskGen update
« Reply #3 on: 2019 December 20 23:20:57 »
Kubuntu 19.04

Offline hvb356

  • PixInsight Enthusiast
  • **
  • Posts: 77
    • View Profile
Re: MaskGen update
« Reply #4 on: 2019 December 21 01:02:57 »
Hi,

the error occured when I tried to create a new folder 'MaskGen' in the local path like:

  C:/Users/account/AppData/Local/MaskGen

The File object returns for the local temp folder:

  C:/Users/account/AppData/Local/Temp

The statements in question:

      parms.dataFolder =  File.fullPath( File.systemTempDirectory + '/../MaskGen');
      if (!File.directoryExists(parms.dataFolder))
      {
         File.createDirectory(parms.dataFolder);

This works with Windows.

Can anyone tell me, how the new relative path must be created in a Linux system?

Thanks in advance

Hartmut
TOA-150, ML8300, CFW2-7 w. Astronomik HaLRGB, PDF, EM-400, guiding FS-60 + ST402, ASCOM bsd. image acquisition

Offline hvb356

  • PixInsight Enthusiast
  • **
  • Posts: 77
    • View Profile
Re: MaskGen update
« Reply #5 on: 2019 December 21 08:45:59 »
new installations will see the MaskGen-folder in /Temp or /tmp. That should solve the problem on non-windows systems.
TOA-150, ML8300, CFW2-7 w. Astronomik HaLRGB, PDF, EM-400, guiding FS-60 + ST402, ASCOM bsd. image acquisition

Offline avan1

  • Newcomer
  • Posts: 23
    • View Profile
Re: MaskGen update
« Reply #6 on: 2019 December 21 10:45:20 »
it's working now :)
Thank you

Offline hvb356

  • PixInsight Enthusiast
  • **
  • Posts: 77
    • View Profile
Re: MaskGen update
« Reply #7 on: 2019 December 21 11:23:19 »
Thanks for your feedback
TOA-150, ML8300, CFW2-7 w. Astronomik HaLRGB, PDF, EM-400, guiding FS-60 + ST402, ASCOM bsd. image acquisition