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
1
General / Re: PixelMath question
« on: 2019 October 18 17:11:38 »
Thanks Mark,  that helped a lot.  I didn't realize that PI converts the input values to the range 0 to 1 but it makes sense.

2
General / Re: PixelMath question
« on: 2019 October 18 16:16:40 »
Further research into this shows the problem is with division.  For example, this equation

$T/1.0

works okay, every pixel is the same as before,

but this equation

$T / $T

changes every pixel to 65535 (unsigned 16 bit integer formatting)

it should have been 1 for each pixel (e.g., 100 / 100 = 1)
 

3
General / PixelMath question
« on: 2019 October 18 15:02:51 »
I have a monochrome CCD image and want to change the value of each pixel using this formula:

y = 0.99 *x + 140/x + 318.0

I tried this equation in PixelMath but it did not work:

0.99 * $T + 140/$T + 318.0

What would be the correct equation(s) to use in PixelMath?

Craig

4
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 && key.name == "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";
   }

5
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).

6
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.

Craig

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

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

Craig

8
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?

Craig

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

Craig

10
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.

Craig

11
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.

Craig

12
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?

Craig

13
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?

14
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.

Craig

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

Pages: [1] 2 3 ... 7