|
View:
New views
1 Messages
—
Rating Filter:
Alert me
|
|
|
R: Re: [GMT-HELP] gray cptthank's Pal,
I made the test, and the outcome is not good, as you can see below. I use the version 4.3.1, May 2008 on Windows. I used the installation over the net. ( Everything else works fine. I noticed one problem: the Rivers came out as segments instead of being continuous in a northerly area (lon 60-90,lat 50-75 )- I replaced the coast folder with the old one I had from the previous GMT version and the problem was solved.) this the cpt file from the test: # cpt file created by: grd2cpt junk.nc -Cgray -Z #COLOR_MODEL = RGB # 0 128 128 128 7.28167 128 128 128 7.28167 128 128 128 21.946 128 128 128 21.946 128 128 128 32.52 128 128 128 32.52 128 128 128 41.555 128 128 128 41.555 128 128 128 50 128 128 128 50 128 128 128 58.445 128 128 128 58.445 128 128 128 67.48 128 128 128 67.48 128 128 128 78.054 128 128 128 78.054 128 128 128 92.7183 128 128 128 92.7183 128 128 128 100 128 128 128 B 0 0 0 F 255 255 255 N 128 128 128 if I use color-code Haxby your test works fine, this the result: # cpt file created by: grd2cpt junk.nc -Chaxby -Z #COLOR_MODEL = RGB # 0 10 0 121 7.28167 0 10 200 7.28167 0 10 200 21.946 26 102 240 21.946 26 102 240 32.52 50 190 255 32.52 50 190 255 41.555 106 235 225 41.555 106 235 225 50 172 245 168 50 205 255 162 58.445 247 215 104 58.445 247 215 104 67.48 244 117 75 67.48 244 117 75 78.054 255 124 124 78.054 255 124 124 92.7183 255 196 196 92.7183 255 196 196 100 255 255 255 B 0 0 0 F 255 255 255 N 128 128 128 so maybe something is missing? thank's, Elly >----Messaggio originale---- >Da: pwessel@... >Data: 17/11/2008 0.00 >A: <GMT-HELP@...> >Ogg: Re: [GMT-HELP] gray cpt > >Hi Elly- > >When I apply your grd2cpt command to an arbitrary grid I get a nice >gray table. Perhaps your grid has some problems? What GMT version and >platform, etc? If you run > >grdmath -R0/10/0/10 -I1 X Y MUL = junk.nc >grd2cpt junk.nc -Cgray -Z > >do you get what I get: > > cpt file created by: grd2cpt junk.nc -Cgray -Z >#COLOR_MODEL = RGB ># >0 0 0 0 7.28167 26 26 26 >7.28167 26 26 26 21.946 51 51 51 >21.946 51 51 51 32.52 77 77 77 >32.52 77 77 77 41.555 102 102 102 >41.555 102 102 102 50 128 128 128 >50 128 128 128 58.445 153 153 153 >58.445 153 153 153 67.48 179 179 179 >67.48 179 179 179 78.054 204 204 204 >78.054 204 204 204 92.7183 230 230 230 >92.7183 230 230 230 100 255 255 255 >B 0 0 0 >F 255 255 255 >N 128 128 128 > >If you do then it is your grid that has problems. > >Paul > >On Nov 16, 2008, at 12:48 PM, ellyney@... wrote: > >> hello GMT-Help, >> >> I need to make a grayscale map- the color scale map works well,( eg >> haxby or >> rainbow) but when I use gray-scale: >> grd2cpt myfile.g -Cgray -Z > g.cpt >> >> >> I obtain a constant gray value, and the cpt-file is as follows: >> >> # cpt file created by: grd2cpt myfile.g -Cgray -Z >> #COLOR_MODEL = RGB >> # >> -4.64203 128 128 128 -1.75341 128 128 128 >> -1.75341 128 128 128 -1.18257 128 128 128 >> -1.18257 128 128 128 -0.770953 128 128 128 >> -0.770953 128 128 128 -0.419246 128 128 128 >> -0.419246 128 128 128 -0.0905063 128 128 128 >> -0.0905063 128 128 128 0.238234 128 128 128 >> 0.238234 128 128 128 0.589941 128 128 128 >> 0.589941 128 128 128 1.00156 128 128 128 >> 1.00156 128 128 128 1.5724 128 128 128 >> 1.5724 128 128 128 6.56487 128 128 128 >> B 0 0 0 >> F 255 255 255 >> N 128 128 128 >> >> >> what am I doing wrong? >> >> >> thank's, >> Elly. >> >> To unsubscribe, send the message "signoff gmt-help" to listserv@hawaii. > >To unsubscribe, send the message "signoff gmt-help" to listserv@... > To unsubscribe, send the message "signoff gmt-help" to listserv@... |
| Free Forum Powered by Nabble | Forum Help |