MaskGen update

hvb356

Well-known member
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
 
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 ???

 

Attachments

  • MKG1rz.jpg
    MKG1rz.jpg
    39.6 KB · Views: 53
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
 
new installations will see the MaskGen-folder in /Temp or /tmp. That should solve the problem on non-windows systems.
 
Back
Top