PixInsight Forum (historical)
Software Development => New Scripts and Modules => Topic started 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
-
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 ???
-
yes, which OS? Win 10 or Mac?
-
Kubuntu 19.04
-
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.
-
it's working now :)
Thank you
-
Thanks for your feedback