Author Topic: Local, Global?  (Read 4660 times)

Offline dmcclain

  • PixInsight Addict
  • ***
  • Posts: 117
Local, Global?
« on: 2015 November 16 09:42:34 »
I am a computer language designer and developer of more than 40 years, beginning with creating commercial C compilers way back in the 1980's.

So I'd like to better understand your notion of Local Context, and Global Context? Any hints?

----

Also, is there any way of logging the transcript of a session to a text file for later review?

Offline msmythers

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1178
    • astrobin
Re: Local, Global?
« Reply #1 on: 2015 November 16 10:08:43 »
The way I see it,  Local being one image or view acting on that view or another where Global is more then 2. I'm sure someone can probably give a much better and proper explanation.


For logging type 'help log' in the "Process Console" for options.


Mike

Offline jkmorse

  • PixInsight Padawan
  • ****
  • Posts: 931
  • Two questions, Mitch . .
    • Jim Morse Astronomy
Re: Local, Global?
« Reply #2 on: 2015 November 16 10:21:45 »
Another simple way to create a text file is to simply open the Process Console at the end of a session and copy as much of the text in the console as you desire (through the typical left click scroll routine), then paste it into any word processing or notes program.  I have done that a number of times and its a simple solution. 

Best,

Jim
Really, are clear skies, low wind and no moon that much to ask for? 

New Mexico Skies Observatory
Apogee Aspen 16803
Planewave CDK17 - Paramount MEII
Planewave IFR90 - Astrodon LRGB & NB filters
SkyX - MaximDL - ACP

http://www.jimmorse-astronomy.com
http://www.astrobin.com/users/JimMorse

Offline dmcclain

  • PixInsight Addict
  • ***
  • Posts: 117
Re: Local, Global?
« Reply #3 on: 2015 November 16 10:39:31 »
My reason for asking about the logging facility is that by the time my processing is finished, the text is no longer available in the transcript view.

Offline dmcclain

  • PixInsight Addict
  • ***
  • Posts: 117
Re: Local, Global?
« Reply #4 on: 2015 November 16 10:41:24 »
Found it in Global Prefs, specify zero for lines in transcript to disable any limits.

Offline jkmorse

  • PixInsight Padawan
  • ****
  • Posts: 931
  • Two questions, Mitch . .
    • Jim Morse Astronomy
Re: Local, Global?
« Reply #5 on: 2015 November 16 17:57:00 »
Yeah, I just set mine to 5000 lines but zero is another option.
Really, are clear skies, low wind and no moon that much to ask for? 

New Mexico Skies Observatory
Apogee Aspen 16803
Planewave CDK17 - Paramount MEII
Planewave IFR90 - Astrodon LRGB & NB filters
SkyX - MaximDL - ACP

http://www.jimmorse-astronomy.com
http://www.astrobin.com/users/JimMorse

Offline niteman1946

  • PixInsight Addict
  • ***
  • Posts: 234
Re: Local, Global?
« Reply #6 on: 2015 November 17 07:05:19 »
Hi Guys,
this is of interest to me too.  Unfortunately, dense that I am, I'm not able find a reference to lines in transcript under Global Preferences. :-\
Any guidance would be appreciated.
Thanks,
Mark

Offline jkmorse

  • PixInsight Padawan
  • ****
  • Posts: 931
  • Two questions, Mitch . .
    • Jim Morse Astronomy
Re: Local, Global?
« Reply #7 on: 2015 November 17 08:43:41 »
Mark,

Not in front of my PI computer (damned work) but I think its in the "other settings" section about 3 or 4 up from the bottom.  Look for the line that says Process Console lines and it will show 1000.  You can adjust that number, then save by hitting the blue circle at the bottom left.

Best,

Jim
Really, are clear skies, low wind and no moon that much to ask for? 

New Mexico Skies Observatory
Apogee Aspen 16803
Planewave CDK17 - Paramount MEII
Planewave IFR90 - Astrodon LRGB & NB filters
SkyX - MaximDL - ACP

http://www.jimmorse-astronomy.com
http://www.astrobin.com/users/JimMorse

Offline niteman1946

  • PixInsight Addict
  • ***
  • Posts: 234
Re: Local, Global?
« Reply #8 on: 2015 November 17 11:28:15 »
Thanks Jim,
mine was under Global Preferences/Miscellaneous Process Settings/Maximum No. of Console Lines.  Default was 1000.

Placing "0" in the window yielded "unlimited" for the display.  Now I'll be able to see all of Juan's colored commentaries.

Yes, work does tend to get in the way of the more important stuff.

Mark

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Local, Global?
« Reply #9 on: 2015 November 18 02:44:18 »
Quote
So I'd like to better understand your notion of Local Context, and Global Context? Any hints?

As noted elsewhere in this thread, the local context of a process refers to the application of that process to a particular object or set of objects, usually images. The global context applies to the state of the PixInsight platform as a whole.

Examples of local processes: Invert, Rotate, CurvesTransformation, FourierTransform.

Examples of global processes: Preferences, ColorManagementSetup, NewImage, ImageIntegration, InverseFourierTransform.

There are also processes that can work in both contexts, such as PixelMath and StarAlignment.

For completeness, there is a third category of processes in PixInsight: Dynamic processes. A dynamic process (or dynamic tool) is capable of direct, real-time interaction with the graphical interface of one or more image views. It is customary to name dynamic tools with the word "Dynamic" prepended, such as DynamicCrop, DynamicBackgroundExtraction, DynamicAlignment or DynamicPSF, but there are exceptions such as CloneStamp and Annotation.

Quote
Also, is there any way of logging the transcript of a session to a text file for later review?

The log command allows you to generate console log files. Also as pointed out above, enter "help log" in the Process Console for a complete description of command line arguments.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/