Ocean Color Forum - Not logged in
Forum Ocean Color Home Help Search Login
Previous Next Up Topic Products and Algorithms / Satellite Data Products & Algorithms / set LandMask Color In Auto Script (981 hits)
By simonarthi Date 2012-05-31 12:52
Hi Everyone,

How to set Land mask Color with our RGB Value in Automatic script...I can be able to set color with the number 1 to 7 ( Which is default). But i want to give my own color with RGB...

###############################

This is the code which I found For Land mask...

loadpal,'/home/pshanmugam/Desktop/Modis/18feb2010/may_2012/Suresh_color_osab'
loadgp, color=2,red=255, green=0, blue=0 

landmask,color=1   & $

coast,color=6  & $

###############################

But if i set RGB here, It shows Error...Is there any proper format...Please help me 

Regards

Suresh M
By @sean Date 2012-05-31 19:02
The only way to do this is to modify one of the reserve graphics colors and select it's index value (e.g. 1-7)

Sean
By simonarthi Date 2012-06-01 05:54
Dear Sean,

        I have tried that to modify one of the reserve graphics colors in manual process...It is working fine...But how to apply that modify Color option in automatic process?
By simonarthi Date 2012-06-04 09:55 Edited 2012-06-04 10:15
Dear sean,

           I have another idea...Is there any possibilities to define value for land?If it is possible, then i ll set the color in Palette...

          Or else tell me the path(Coding Part),where the landmask color has been set...I will modify the color there itself...
By @sean Date 2012-06-04 18:36 Edited 2012-06-04 19:51
The landmask color is set as the 1st indexed color of the 7 reserved colors.
you can set this programmatically via the modify graphics color utility.

Sean
By simonarthi Date 2012-06-05 04:44
Great...Its working...Thanks sean....
Previous Next Up Topic Products and Algorithms / Satellite Data Products & Algorithms / set LandMask Color In Auto Script (981 hits)



Responsible NASA Official: Gene C. Feldman
Curator: OceanColor Webmaster
Authorized by: Gene C. Feldman
Updated: 27 November 2007
Privacy Policy and Important Notices NASA logo