Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - CraigNZ

Pages: [1] 2 3 ... 7
PCL and PJSR Development / Re: Calculate Airmass
« on: 2019 August 25 21:21:40 »
This appears to work:

   this.GetWindowAirMass = function (window)
       var keywords = window.keywords;
       for (var i = 0; i < keywords.length; i++)
           var key = keywords;
           if (key && == "OBJCTALT")
               var value = key.value;
          var s2 = value.split("");
               var D = s2[1] + s2[2];
               var M = s2[4] + s2[5];
               var S = s2[7] + s2[8];
               var alt = +D/1.0 + M/60.0 + S/3600.0;
               var zd = 90.0 - alt;
               var am=1.0 / Math.cos(zd * Math.PI / 180.0);
              return am.toFixed(11);
       return "UNK";

PCL and PJSR Development / Re: Calculate Airmass
« on: 2019 August 25 20:26:26 »
One way to do this would be to read the keyword 'OBJCTALT' and use that to calculate the airmass.  It is a string in the format of ## ## ##  so I would need to convert the string to decimal degrees, subtract from 90 degrees to get the zenith distance in degrees, convert this to radians and calculate 1/cos(za).

PCL and PJSR Development / Calculate Airmass
« on: 2019 August 25 16:13:46 »
Is there a function or script that calculates the Airmass given an image.  I want to modify the aperture photometry script to calculate the airmass instead of using the value in the FITS header.  The reason is because the FITS header value is incorrect and I don't want to abandon the images.


General / Re: Subframe Selector Rejection
« on: 2019 February 27 12:30:09 »

See my recent comments on this in the Scripts section of the forum.


New Scripts and Modules / Re: Subframe Selector PCL Module
« on: 2019 February 25 13:12:02 »
In the original SFS, output section, there were two sets of drop down boxes: approved, rejected.  In my case where I process batch streams of 200+ images, most of the images are okay and the two or three bad ones I want moved to a "Rejected" folder.  So I leave the approved action as "None" and the rejected action as "Move".  I then end up with approved images where they were and a new folder "Rejected" containing the bad images.  This makes it a lot easier when coming back to this job later and analyzing what was wrong with the rejected images.  It also means it is easy to move the rejected images back into the main folder to rerun SFS with a different set of parameters.

Can we get this same functionality added to the new PCL SFS?


General / Re: BPP Export Calibration Files missing
« on: 2019 February 22 14:36:44 »
Okay, thanks for the update.


General / Re: BPP Export Calibration Files missing
« on: 2019 February 22 13:26:12 »
I now have this script working.  I copied the commented section of code to an area further down where it was populating the option checkboxes and now I can save all the parameters and calibration file settings to an icon.

Not sure why this section of code has been commented out.  Maybe the developer can explain, or I am using the wrong version.


General / Re: BPP Export Calibration Files missing
« on: 2019 February 22 11:24:29 »
Looking at the script source code, module BatchPreprocessing-GUI.js, I see this section is commented:
   this.exportCalibrationFilesCheckBox = new CheckBox( this );
   this.exportCalibrationFilesCheckBox.text = "Export calibration files";
   this.exportCalibrationFilesCheckBox.toolTip = "<p>When checked, calibration file names will be exported in generated instances.</p>";
   this.exportCalibrationFilesCheckBox.onCheck = function( checked )
      engine.exportCalibrationFiles = checked;

So it looks like this feature has been removed?  Which would explain why I cannot save the list of calibration files.


General / BPP Export Calibration Files missing
« on: 2019 February 21 18:00:19 »
I am running PI v1.8.6 and BPP v1.47.  I am trying to save my session settings and file names and I understand there is a checkbox labeled "Export Calibration Files" .. but I cannot find it.  It is not listed in Global Options and I didn't see it listed anywhere in PI Global preferences.  Where do I find this?  Or is it possible when I installed PI in the C:\windows\Program Files folder that Windows 10 is blocking BPP from saving its settings?


General / Linux: PI does not see second drive
« on: 2018 April 22 17:37:41 »
Now that I have PI successfully running on Ubuntu 17.10 I was able to load an image from the C drive, all works great.  But my images are all on a separate drive and when I use Open the other drive is not listed.  I then ran LibreOffice and it is similar but it uses 'Other Locations' to show the drive.  PI does not offer this, is there some other way either in Linux or in PI that I can configure so PI can see the images on the other drive?

General / Re: Linux install: run error
« on: 2018 April 22 17:19:05 »
Worked perfectly .. maybe one of the PI team could add this to the Linux installation notes (troubleshooting section).
Thank you heaps for coming back quickly with this solution.


General / Re: Linux install: run error
« on: 2018 April 22 15:15:40 »
Glibc is 2.26

General / Re: Linux install: run error
« on: 2018 April 22 15:11:13 »
Doing some research on this I noticed a PI requirement:

PixInsight 1.8.5 for Linux requires a 64-bit Linux distribution with glibc version 2.17 (December 2012) or later and CXXABI_1.3.8 (GCC 4.9 or later).

I then found that so I tried to install:

root@LinuxBox1:~# apt-get install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package
E: Couldn't find any package by glob ''
E: Couldn't find any package by regex ''
root@LinuxBox1:~# apt-get install libstdc++6
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libstdc++6 is already the newest version (7.2.0-8ubuntu3.2).
0 upgraded, 0 newly installed, 0 to remove and 7 not upgraded.

so that didn't quite work, but it shows the latest version is installed.

General / Linux install: run error
« on: 2018 April 22 14:39:26 »

Setup a new PC with Ubuntu 17.10, downloaded latest PI distro package for Linux and installed.  Everything went okay, but when I go to /bin and run Pixinsight I get this error message:

craig@LinuxBox1:/bin$ PixInsight
/opt/PixInsight/bin/PixInsight: /opt/PixInsight/bin/lib/ version `ZLIB_1.2.9' not found (required by /usr/lib/x86_64-linux-gnu/
/opt/PixInsight/bin/PixInsight: /opt/PixInsight/bin/lib/ version `CXXABI_1.3.11' not found (required by /usr/lib/x86_64-linux-gnu/

I thought I installed Zlib but maybe there is another problem.


General / Re: Filter names
« on: 2018 April 17 12:33:52 »
I use a Batch Conversion function in the software program MiraPro (Mirametrics) that lets me rename a FITS keyword.  For example, the program can search for Luminaire and change it to Luminance or vice versa.  You can also use the same function to add keywords and change the value of a keyword, but there is no way to remove one.  Would be nice to see this feature added to PI as a script in the batch processing group.

Pages: [1] 2 3 ... 7