PixInsight Forum (historical)

Software Development => New Scripts and Modules => Topic started by: hvb356 on 2019 December 20 09:50:06

Title: MaskGen update
Post by: hvb356 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
Title: Re: MaskGen update
Post by: avan1 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 ???

Title: Re: MaskGen update
Post by: hvb356 on 2019 December 20 23:04:51
yes, which OS? Win 10 or Mac?
Title: Re: MaskGen update
Post by: avan1 on 2019 December 20 23:20:57
Kubuntu 19.04
Title: Re: MaskGen update
Post by: hvb356 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
Title: Re: MaskGen update
Post by: hvb356 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.
Title: Re: MaskGen update
Post by: avan1 on 2019 December 21 10:45:20
it's working now :)
Thank you
Title: Re: MaskGen update
Post by: hvb356 on 2019 December 21 11:23:19
Thanks for your feedback