Re: [mapserver-users] Color temperature control (night-time viewing of maps)

2015-12-08 Thread blammo
Just resurrecting this thread to post some new info about night viewing.

All,  I stumbled upon a couple of interesting browser plugins for Chrome for
Nighttime viewing of pages.

One is called "Deluminate", the other is called "Dark Reader", they both
work pretty good, I prefer Dark reader so far, but you could install them
both  as I have, and use whichever whenever. 

bobb






--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Color-temperature-control-night-time-viewing-of-maps-tp5107155p5240422.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Color temperature control (night-time viewing of maps)

2014-03-05 Thread Basques, Bob (CI-StPaul)
Stephan,

Build from your pointer (already) by someone else:

https://github.com/kybernetikos/SolarPosition



-Original Message-
From: Stephen Woodbridge [mailto:wood...@swoodbridge.com] 
Sent: Monday, March 03, 2014 11:45 AM
To: Basques, Bob (CI-StPaul); mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Color temperature control (night-time viewing of 
maps)

Bob,

Checkout this page:
http://williams.best.vwh.net/sunrise_sunset_algorithm.htm

-Steve

On 3/3/2014 11:55 AM, Basques, Bob (CI-StPaul) wrote:
> Hi Stephen,
>
> Yes, that looks like the correct route for this, time/location settings, at 
> least to make something work globally.  The display is for a mapping 
> interface that will most likely be location aware.  I've found a couple of 
> references to some LIBs for finding terminator, and I think a temperature 
> curve could be defined based on optimum settings from day/dusk/night views to 
> make the map readable for all (natural) lighting conditions.  At least that's 
> a place to start.
>
> Bobb
>
>
> -Original Message-
> From: mapserver-users-boun...@lists.osgeo.org 
> [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephen 
> Woodbridge
> Sent: Monday, March 03, 2014 10:46 AM
> To: mapserver-users@lists.osgeo.org
> Subject: Re: [mapserver-users] Color temperature control (night-time 
> viewing of maps)
>
> On 3/3/2014 11:30 AM, Basques, Bob (CI-StPaul) wrote:
>> All,
>>
>> So, I've been reading up on nighttime colors for electronic display(s).
>> I was wondering if anyone has any pointers on information about 
>> applying color temperature corrections to displays for nighttime 
>> viewing.  I'm in need of providing this functionality to some night crew 
>> workers.
>>
>> My first thought was to apply some sort of RGB algorithm to the 
>> mapfile color settings.  Then I thought maybe a middleware  processor 
>> routine (between MapServer and the browser) might be a better 
>> approach, or possibly using something in the browser . . .
>>
>> I'm only looking at setting up distinct color settings at the moment.
>> Maybe 3-5 ranges to start with.  I do know that some Mac hardware has 
>> some display monitoring for color temperature.  I would prefer to do 
>> something that could apply globally however.
>>
>> Maybe there are Browser functions that can be applied to the problem 
>> (I haven't found anything specific there yet though.
>
> Bob,
>
> One simple way to deal with this is to have two mapfiles with different 
> colors setup on them and then you a substitution to switch between the day 
> and night mapfile.
>
> I wrote some code years ago that detects the day-night night terminator line 
> in javascript to you can make the change. you need to know the browser 
> location to compute this accurately. but a simple [day/night] toggle button 
> would allow the user to switch manually.
>
> -Steve W
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Color temperature control (night-time viewing of maps)

2014-03-03 Thread Basques, Bob (CI-StPaul)
Better to just point folks here I think:

http://stackoverflow.com/questions/6182451/how-to-calculate-the-sunrise-and-sunset-in-javascript

All sorts of links to different things related to sun and location.

Bobb



-Original Message-
From: Stephen Woodbridge [mailto:wood...@swoodbridge.com] 
Sent: Monday, March 03, 2014 11:45 AM
To: Basques, Bob (CI-StPaul); mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Color temperature control (night-time viewing of 
maps)

Bob,

Checkout this page:
http://williams.best.vwh.net/sunrise_sunset_algorithm.htm

-Steve

On 3/3/2014 11:55 AM, Basques, Bob (CI-StPaul) wrote:
> Hi Stephen,
>
> Yes, that looks like the correct route for this, time/location settings, at 
> least to make something work globally.  The display is for a mapping 
> interface that will most likely be location aware.  I've found a couple of 
> references to some LIBs for finding terminator, and I think a temperature 
> curve could be defined based on optimum settings from day/dusk/night views to 
> make the map readable for all (natural) lighting conditions.  At least that's 
> a place to start.
>
> Bobb
>
>
> -Original Message-
> From: mapserver-users-boun...@lists.osgeo.org 
> [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephen 
> Woodbridge
> Sent: Monday, March 03, 2014 10:46 AM
> To: mapserver-users@lists.osgeo.org
> Subject: Re: [mapserver-users] Color temperature control (night-time 
> viewing of maps)
>
> On 3/3/2014 11:30 AM, Basques, Bob (CI-StPaul) wrote:
>> All,
>>
>> So, I've been reading up on nighttime colors for electronic display(s).
>> I was wondering if anyone has any pointers on information about 
>> applying color temperature corrections to displays for nighttime 
>> viewing.  I'm in need of providing this functionality to some night crew 
>> workers.
>>
>> My first thought was to apply some sort of RGB algorithm to the 
>> mapfile color settings.  Then I thought maybe a middleware  processor 
>> routine (between MapServer and the browser) might be a better 
>> approach, or possibly using something in the browser . . .
>>
>> I'm only looking at setting up distinct color settings at the moment.
>> Maybe 3-5 ranges to start with.  I do know that some Mac hardware has 
>> some display monitoring for color temperature.  I would prefer to do 
>> something that could apply globally however.
>>
>> Maybe there are Browser functions that can be applied to the problem 
>> (I haven't found anything specific there yet though.
>
> Bob,
>
> One simple way to deal with this is to have two mapfiles with different 
> colors setup on them and then you a substitution to switch between the day 
> and night mapfile.
>
> I wrote some code years ago that detects the day-night night terminator line 
> in javascript to you can make the change. you need to know the browser 
> location to compute this accurately. but a simple [day/night] toggle button 
> would allow the user to switch manually.
>
> -Steve W
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Color temperature control (night-time viewing of maps)

2014-03-03 Thread Basques, Bob (CI-StPaul)
David,

Night vision is the bigger problem.  Many users will be driving on dispatch 
tickets, etc.  Don't want to introduce a fatiguing function to the night 
drivers.

This is purely a demo mode of display for now.  The idea being to put something 
out for feedback from the end users.

Bobb



From: Fawcett, David (MNIT)
Sent: Monday, March 03, 2014 11:52 AM
To: Basques, Bob (CI-StPaul); mapserver-users@lists.osgeo.org
Subject: RE: [mapserver-users] Color temperature control (night-time viewing of 
maps)

Bob,

Are you thinking of preserving night vision or pumping up the blue to keep 
people more awake?

David.

From: 
mapserver-users-boun...@lists.osgeo.org<mailto:mapserver-users-boun...@lists.osgeo.org>
 [mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Basques, Bob 
(CI-StPaul)
Sent: Monday, March 03, 2014 10:31 AM
To: mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Subject: [mapserver-users] Color temperature control (night-time viewing of 
maps)

All,

So, I've been reading up on nighttime colors for electronic display(s).  I was 
wondering if anyone has any pointers on information about applying color 
temperature corrections to displays for nighttime viewing.  I'm in need of 
providing this functionality to some night crew workers.

My first thought was to apply some sort of RGB algorithm to the mapfile color 
settings.  Then I thought maybe a middleware  processor routine (between 
MapServer and the browser) might be a better approach, or possibly using 
something in the browser . . .

I'm only looking at setting up distinct color settings at the moment.  Maybe 
3-5 ranges to start with.  I do know that some Mac hardware has some display 
monitoring for color temperature.  I would prefer to do something that could 
apply globally however.

Maybe there are Browser functions that can be applied to the problem (I haven't 
found anything specific there yet though.

Thanks

Bobb


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Color temperature control (night-time viewing of maps)

2014-03-03 Thread Fawcett, David (MNIT)
Bob,

Are you thinking of preserving night vision or pumping up the blue to keep 
people more awake?

David.

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Basques, Bob 
(CI-StPaul)
Sent: Monday, March 03, 2014 10:31 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] Color temperature control (night-time viewing of 
maps)

All,

So, I've been reading up on nighttime colors for electronic display(s).  I was 
wondering if anyone has any pointers on information about applying color 
temperature corrections to displays for nighttime viewing.  I'm in need of 
providing this functionality to some night crew workers.

My first thought was to apply some sort of RGB algorithm to the mapfile color 
settings.  Then I thought maybe a middleware  processor routine (between 
MapServer and the browser) might be a better approach, or possibly using 
something in the browser . . .

I'm only looking at setting up distinct color settings at the moment.  Maybe 
3-5 ranges to start with.  I do know that some Mac hardware has some display 
monitoring for color temperature.  I would prefer to do something that could 
apply globally however.

Maybe there are Browser functions that can be applied to the problem (I haven't 
found anything specific there yet though.

Thanks

Bobb


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Color temperature control (night-time viewing of maps)

2014-03-03 Thread Stephen Woodbridge

Bob,

Checkout this page:
http://williams.best.vwh.net/sunrise_sunset_algorithm.htm

-Steve

On 3/3/2014 11:55 AM, Basques, Bob (CI-StPaul) wrote:

Hi Stephen,

Yes, that looks like the correct route for this, time/location settings, at 
least to make something work globally.  The display is for a mapping interface 
that will most likely be location aware.  I've found a couple of references to 
some LIBs for finding terminator, and I think a temperature curve could be 
defined based on optimum settings from day/dusk/night views to make the map 
readable for all (natural) lighting conditions.  At least that's a place to 
start.

Bobb


-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephen Woodbridge
Sent: Monday, March 03, 2014 10:46 AM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Color temperature control (night-time viewing of 
maps)

On 3/3/2014 11:30 AM, Basques, Bob (CI-StPaul) wrote:

All,

So, I've been reading up on nighttime colors for electronic display(s).
I was wondering if anyone has any pointers on information about
applying color temperature corrections to displays for nighttime
viewing.  I'm in need of providing this functionality to some night crew 
workers.

My first thought was to apply some sort of RGB algorithm to the
mapfile color settings.  Then I thought maybe a middleware  processor
routine (between MapServer and the browser) might be a better
approach, or possibly using something in the browser . . .

I'm only looking at setting up distinct color settings at the moment.
Maybe 3-5 ranges to start with.  I do know that some Mac hardware has
some display monitoring for color temperature.  I would prefer to do
something that could apply globally however.

Maybe there are Browser functions that can be applied to the problem
(I haven't found anything specific there yet though.


Bob,

One simple way to deal with this is to have two mapfiles with different colors 
setup on them and then you a substitution to switch between the day and night 
mapfile.

I wrote some code years ago that detects the day-night night terminator line in 
javascript to you can make the change. you need to know the browser location to 
compute this accurately. but a simple [day/night] toggle button would allow the 
user to switch manually.

-Steve W

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users




___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Color temperature control (night-time viewing of maps)

2014-03-03 Thread Basques, Bob (CI-StPaul)
Norman,

I would imagine there is a similar blackout event for folks in airplanes 
(pilots) as well.

Bobb


From: Norman Vine [mailto:n...@cape.com]
Sent: Monday, March 03, 2014 11:10 AM
To: Basques, Bob (CI-StPaul)
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Color temperature control (night-time viewing of 
maps)

Bob

We started with the Standard NOAA chart palette foray then used a gamma
function to tone this down for Dawn/Dusk  but used a special night time palette
based on user feedback note that at sea there is usually a 'blackout 
environment'
which is much darker then most

Have you seen this project ?
http://jonls.dk/redshift/

Norman

On Mar 3, 2014, at 11:49 AM, "Basques, Bob (CI-StPaul)" 
mailto:bob.basq...@ci.stpaul.mn.us>> wrote:


Hi Norman,

I had another thought after I sent the first post.  Maybe something along the 
lines of an inside/outside view switcher.  The outside mode would self correct 
based on the location/time settings.  I'm really interested in this automated 
approach to making the settings change.  I have even worked out how I can make 
the changes to a mapfile could work from a config file.  I just need the actual 
RGB conversion routine to try out the idea.  Optimum settings for those three 
values you described would get things started, then I would need to figure out 
the best approach to apply by location/time, (heck, you could even factor in 
weather conditions down the line . . .)

bobb

From: Norman Vine [mailto:n...@cape.com<http://cape.com>]
Sent: Monday, March 03, 2014 10:40 AM
To: Basques, Bob (CI-StPaul)
Cc: mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
Subject: Re: [mapserver-users] Color temperature control (night-time viewing of 
maps)

Bob

Back in the day when I was working on marine navigation chart displays
we used separate color tables for different light conditions

we found that 3 tables sufficed, Day, Dusk/Dawn, Night

we cheated a bit and used 64 bit palettes  this way with a little trickery
we could pack everything into a normal 8 bit color table

In practice this worked quite well

HTH

Norman

On Mar 3, 2014, at 11:30 AM, "Basques, Bob (CI-StPaul)" 
mailto:bob.basq...@ci.stpaul.mn.us>> wrote:



All,

So, I've been reading up on nighttime colors for electronic display(s).  I was 
wondering if anyone has any pointers on information about applying color 
temperature corrections to displays for nighttime viewing.  I'm in need of 
providing this functionality to some night crew workers.

My first thought was to apply some sort of RGB algorithm to the mapfile color 
settings.  Then I thought maybe a middleware  processor routine (between 
MapServer and the browser) might be a better approach, or possibly using 
something in the browser . . .

I'm only looking at setting up distinct color settings at the moment.  Maybe 
3-5 ranges to start with.  I do know that some Mac hardware has some display 
monitoring for color temperature.  I would prefer to do something that could 
apply globally however.

Maybe there are Browser functions that can be applied to the problem (I haven't 
found anything specific there yet though.

Thanks

Bobb


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/mapserver-users


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Color temperature control (night-time viewing of maps)

2014-03-03 Thread Basques, Bob (CI-StPaul)
All,

Just found this:  http://www.paulirish.com/demo/invert

Might be a good start. . .

Also, I thought the "Command-Option-Ctrl-8" key combination on Mac's is a 
really cool option.!!

Bobb



-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Lime, Steve D 
(MNIT)
Sent: Monday, March 03, 2014 10:51 AM
To: Stephen Woodbridge; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Color temperature control (night-time viewing of 
maps)

Could also use class groups and send the appropriate group value with your 
request.

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephen Woodbridge
Sent: Monday, March 03, 2014 10:46 AM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Color temperature control (night-time viewing of 
maps)

On 3/3/2014 11:30 AM, Basques, Bob (CI-StPaul) wrote:
> All,
>
> So, I've been reading up on nighttime colors for electronic display(s).
> I was wondering if anyone has any pointers on information about 
> applying color temperature corrections to displays for nighttime 
> viewing.  I'm in need of providing this functionality to some night crew 
> workers.
>
> My first thought was to apply some sort of RGB algorithm to the 
> mapfile color settings.  Then I thought maybe a middleware  processor 
> routine (between MapServer and the browser) might be a better 
> approach, or possibly using something in the browser . . .
>
> I'm only looking at setting up distinct color settings at the moment.
> Maybe 3-5 ranges to start with.  I do know that some Mac hardware has 
> some display monitoring for color temperature.  I would prefer to do 
> something that could apply globally however.
>
> Maybe there are Browser functions that can be applied to the problem 
> (I haven't found anything specific there yet though.

Bob,

One simple way to deal with this is to have two mapfiles with different colors 
setup on them and then you a substitution to switch between the day and night 
mapfile.

I wrote some code years ago that detects the day-night night terminator line in 
javascript to you can make the change. you need to know the browser location to 
compute this accurately. but a simple [day/night] toggle button would allow the 
user to switch manually.

-Steve W

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Color temperature control (night-time viewing of maps)

2014-03-03 Thread Norman Vine
Bob

We started with the Standard NOAA chart palette foray then used a gamma
function to tone this down for Dawn/Dusk  but used a special night time palette
based on user feedback note that at sea there is usually a 'blackout 
environment'
which is much darker then most

Have you seen this project ?
http://jonls.dk/redshift/

Norman

On Mar 3, 2014, at 11:49 AM, "Basques, Bob (CI-StPaul)" 
 wrote:

> Hi Norman,
>  
> I had another thought after I sent the first post.  Maybe something along the 
> lines of an inside/outside view switcher.  The outside mode would self 
> correct based on the location/time settings.  I’m really interested in this 
> automated approach to making the settings change.  I have even worked out how 
> I can make the changes to a mapfile could work from a config file.  I just 
> need the actual RGB conversion routine to try out the idea.  Optimum settings 
> for those three values you described would get things started, then I would 
> need to figure out the best approach to apply by location/time, (heck, you 
> could even factor in weather conditions down the line . . .)
>  
> bobb
>  
> From: Norman Vine [mailto:n...@cape.com] 
> Sent: Monday, March 03, 2014 10:40 AM
> To: Basques, Bob (CI-StPaul)
> Cc: mapserver-users@lists.osgeo.org
> Subject: Re: [mapserver-users] Color temperature control (night-time viewing 
> of maps)
>  
> Bob
>  
> Back in the day when I was working on marine navigation chart displays
> we used separate color tables for different light conditions
>  
> we found that 3 tables sufficed, Day, Dusk/Dawn, Night
>  
> we cheated a bit and used 64 bit palettes  this way with a little trickery
> we could pack everything into a normal 8 bit color table
>  
> In practice this worked quite well
>  
> HTH
>  
> Norman
>  
> On Mar 3, 2014, at 11:30 AM, "Basques, Bob (CI-StPaul)" 
>  wrote:
> 
> 
> All,
>  
> So, I’ve been reading up on nighttime colors for electronic display(s).  I 
> was wondering if anyone has any pointers on information about applying color 
> temperature corrections to displays for nighttime viewing.  I’m in need of 
> providing this functionality to some night crew workers.
>  
> My first thought was to apply some sort of RGB algorithm to the mapfile color 
> settings.  Then I thought maybe a middleware  processor routine (between 
> MapServer and the browser) might be a better approach, or possibly using 
> something in the browser . . .
>  
> I’m only looking at setting up distinct color settings at the moment.  Maybe 
> 3-5 ranges to start with.  I do know that some Mac hardware has some display 
> monitoring for color temperature.  I would prefer to do something that could 
> apply globally however.
>  
> Maybe there are Browser functions that can be applied to the problem (I 
> haven’t found anything specific there yet though.
>  
> Thanks
>  
> Bobb
>  
>  
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>  

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Color temperature control (night-time viewing of maps)

2014-03-03 Thread Lime, Steve D (MNIT)
Could also use class groups and send the appropriate group value with your 
request.

Steve

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephen Woodbridge
Sent: Monday, March 03, 2014 10:46 AM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Color temperature control (night-time viewing of 
maps)

On 3/3/2014 11:30 AM, Basques, Bob (CI-StPaul) wrote:
> All,
>
> So, I've been reading up on nighttime colors for electronic display(s).
> I was wondering if anyone has any pointers on information about 
> applying color temperature corrections to displays for nighttime 
> viewing.  I'm in need of providing this functionality to some night crew 
> workers.
>
> My first thought was to apply some sort of RGB algorithm to the 
> mapfile color settings.  Then I thought maybe a middleware  processor 
> routine (between MapServer and the browser) might be a better 
> approach, or possibly using something in the browser . . .
>
> I'm only looking at setting up distinct color settings at the moment.
> Maybe 3-5 ranges to start with.  I do know that some Mac hardware has 
> some display monitoring for color temperature.  I would prefer to do 
> something that could apply globally however.
>
> Maybe there are Browser functions that can be applied to the problem 
> (I haven't found anything specific there yet though.

Bob,

One simple way to deal with this is to have two mapfiles with different colors 
setup on them and then you a substitution to switch between the day and night 
mapfile.

I wrote some code years ago that detects the day-night night terminator line in 
javascript to you can make the change. you need to know the browser location to 
compute this accurately. but a simple [day/night] toggle button would allow the 
user to switch manually.

-Steve W

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Color temperature control (night-time viewing of maps)

2014-03-03 Thread Basques, Bob (CI-StPaul)
Hi Norman,

I had another thought after I sent the first post.  Maybe something along the 
lines of an inside/outside view switcher.  The outside mode would self correct 
based on the location/time settings.  I'm really interested in this automated 
approach to making the settings change.  I have even worked out how I can make 
the changes to a mapfile could work from a config file.  I just need the actual 
RGB conversion routine to try out the idea.  Optimum settings for those three 
values you described would get things started, then I would need to figure out 
the best approach to apply by location/time, (heck, you could even factor in 
weather conditions down the line . . .)

bobb

From: Norman Vine [mailto:n...@cape.com]
Sent: Monday, March 03, 2014 10:40 AM
To: Basques, Bob (CI-StPaul)
Cc: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Color temperature control (night-time viewing of 
maps)

Bob

Back in the day when I was working on marine navigation chart displays
we used separate color tables for different light conditions

we found that 3 tables sufficed, Day, Dusk/Dawn, Night

we cheated a bit and used 64 bit palettes  this way with a little trickery
we could pack everything into a normal 8 bit color table

In practice this worked quite well

HTH

Norman

On Mar 3, 2014, at 11:30 AM, "Basques, Bob (CI-StPaul)" 
mailto:bob.basq...@ci.stpaul.mn.us>> wrote:


All,

So, I've been reading up on nighttime colors for electronic display(s).  I was 
wondering if anyone has any pointers on information about applying color 
temperature corrections to displays for nighttime viewing.  I'm in need of 
providing this functionality to some night crew workers.

My first thought was to apply some sort of RGB algorithm to the mapfile color 
settings.  Then I thought maybe a middleware  processor routine (between 
MapServer and the browser) might be a better approach, or possibly using 
something in the browser . . .

I'm only looking at setting up distinct color settings at the moment.  Maybe 
3-5 ranges to start with.  I do know that some Mac hardware has some display 
monitoring for color temperature.  I would prefer to do something that could 
apply globally however.

Maybe there are Browser functions that can be applied to the problem (I haven't 
found anything specific there yet though.

Thanks

Bobb


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org<mailto:mapserver-users@lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/mapserver-users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Color temperature control (night-time viewing of maps)

2014-03-03 Thread Basques, Bob (CI-StPaul)
Hi Stephen,

Yes, that looks like the correct route for this, time/location settings, at 
least to make something work globally.  The display is for a mapping interface 
that will most likely be location aware.  I've found a couple of references to 
some LIBs for finding terminator, and I think a temperature curve could be 
defined based on optimum settings from day/dusk/night views to make the map 
readable for all (natural) lighting conditions.  At least that's a place to 
start.

Bobb


-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Stephen Woodbridge
Sent: Monday, March 03, 2014 10:46 AM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Color temperature control (night-time viewing of 
maps)

On 3/3/2014 11:30 AM, Basques, Bob (CI-StPaul) wrote:
> All,
>
> So, I've been reading up on nighttime colors for electronic display(s).
> I was wondering if anyone has any pointers on information about 
> applying color temperature corrections to displays for nighttime 
> viewing.  I'm in need of providing this functionality to some night crew 
> workers.
>
> My first thought was to apply some sort of RGB algorithm to the 
> mapfile color settings.  Then I thought maybe a middleware  processor 
> routine (between MapServer and the browser) might be a better 
> approach, or possibly using something in the browser . . .
>
> I'm only looking at setting up distinct color settings at the moment.
> Maybe 3-5 ranges to start with.  I do know that some Mac hardware has 
> some display monitoring for color temperature.  I would prefer to do 
> something that could apply globally however.
>
> Maybe there are Browser functions that can be applied to the problem 
> (I haven't found anything specific there yet though.

Bob,

One simple way to deal with this is to have two mapfiles with different colors 
setup on them and then you a substitution to switch between the day and night 
mapfile.

I wrote some code years ago that detects the day-night night terminator line in 
javascript to you can make the change. you need to know the browser location to 
compute this accurately. but a simple [day/night] toggle button would allow the 
user to switch manually.

-Steve W

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Color temperature control (night-time viewing of maps)

2014-03-03 Thread Stephen Woodbridge

On 3/3/2014 11:30 AM, Basques, Bob (CI-StPaul) wrote:

All,

So, I’ve been reading up on nighttime colors for electronic display(s).
I was wondering if anyone has any pointers on information about applying
color temperature corrections to displays for nighttime viewing.  I’m in
need of providing this functionality to some night crew workers.

My first thought was to apply some sort of RGB algorithm to the mapfile
color settings.  Then I thought maybe a middleware  processor routine
(between MapServer and the browser) might be a better approach, or
possibly using something in the browser . . .

I’m only looking at setting up distinct color settings at the moment.
Maybe 3-5 ranges to start with.  I do know that some Mac hardware has
some display monitoring for color temperature.  I would prefer to do
something that could apply globally however.

Maybe there are Browser functions that can be applied to the problem (I
haven’t found anything specific there yet though.


Bob,

One simple way to deal with this is to have two mapfiles with different 
colors setup on them and then you a substitution to switch between the 
day and night mapfile.


I wrote some code years ago that detects the day-night night terminator 
line in javascript to you can make the change. you need to know the 
browser location to compute this accurately. but a simple [day/night] 
toggle button would allow the user to switch manually.


-Steve W

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] Color temperature control (night-time viewing of maps)

2014-03-03 Thread Norman Vine
Bob

Back in the day when I was working on marine navigation chart displays
we used separate color tables for different light conditions

we found that 3 tables sufficed, Day, Dusk/Dawn, Night

we cheated a bit and used 64 bit palettes  this way with a little trickery
we could pack everything into a normal 8 bit color table

In practice this worked quite well

HTH

Norman

On Mar 3, 2014, at 11:30 AM, "Basques, Bob (CI-StPaul)" 
 wrote:

> All,
>  
> So, I’ve been reading up on nighttime colors for electronic display(s).  I 
> was wondering if anyone has any pointers on information about applying color 
> temperature corrections to displays for nighttime viewing.  I’m in need of 
> providing this functionality to some night crew workers.
>  
> My first thought was to apply some sort of RGB algorithm to the mapfile color 
> settings.  Then I thought maybe a middleware  processor routine (between 
> MapServer and the browser) might be a better approach, or possibly using 
> something in the browser . . .
>  
> I’m only looking at setting up distinct color settings at the moment.  Maybe 
> 3-5 ranges to start with.  I do know that some Mac hardware has some display 
> monitoring for color temperature.  I would prefer to do something that could 
> apply globally however.
>  
> Maybe there are Browser functions that can be applied to the problem (I 
> haven’t found anything specific there yet though.
>  
> Thanks
>  
> Bobb
>  
>  
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users