[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GEMPAK #ORZ-184019]: using states of Argentina map in GEMPAK



Gustavo,

I've attached a slightly modified script - edited for use on my system and also 
to produce only a single image for testing - with the result attached.  

I copied $GEMTBL/colors/coltbl.xwp_white to $GEMTBL/colors/coltbl.xwp prior to 
running this script.

I believe the reason for your troubles stems from the control of $MAPFIL (note 
the syntax for defining this variable in arg.sh - the leading $ but be 
escaped!). 

$MAPFIL which is a hidden variable for GEMPAK programs and requires explicit 
definition each time you wish to use it different.  Simply put, if you define 
$MAPFIL in one script, GEMPAK programs will "remember" this definition in all 
subsequent plots until $MAPFIL is redefined or reset to default ( hipowo.cia )

Give it a shot again on your end to confirm that $MAPFIL is being set correctly 
and you should see the map boundaries displayed with correct colors.

Best,

Michael James
Unidata



> Hi Michael,
> 
> thank you very much for your email.
> 
> I tested different colors as you said but
> the problem goes on.
> 
> Do you think this has to do with
> the colour withe as background??
> 
> I'm sending a script that is running with
> cron.
> 
> As an example, of its map, see:
> 
> http://www.unidata.at.fcen.uba.ar/sup/argobs20110224_10.gif
> 
> Best regards,
> 
> Gustavo Pittaluga
> 
> On Tue, 22 Feb 2011 11:19:42 -0700, "Unidata GEMPAK Support"
> <address@hidden> wrote:
> > Gustavo,
> >
> > I believe it's simply a matter of MAP color.  to get the white
> background
> > I'm guessing you either modified coltbl.xwp or executed GPCOLOR before
> > GPMAP.  either way, you'll want to control your map colors with
> additional
> > MAP definitions.  i've provided an example below, but this assumes the
> > default black map background color.
> >
> > in GPMAP, with
> >
> > $mapfil = hipowo.cia + histar.uni
> > map = 5/1/2 + 2/1/1
> >
> > I was able to produce the following map:
> >
> > http://i.imgur.com/ZXZMD.gif
> >
> > However, I'm not entirely sure why you're not seeing s. american country
> > boundaries plotted with the same color as argentinian states.  also it
> > seems that the state boundaries are being plotted with color = 11
> (pink!)
> > while MAP = 1/1.
> >
> > Regardless of this, I'd suggest you try the multiple map color
> definition
> > (map = 5/1/2 + 2/1/1) to see if this fixes the problem.
> >
> > If not I'd like to see the entire script that produces the image you
> > linked, and also would like to see your current
> $GEMTBL/colors/coltbl.xwp
> >
> > Best,
> >
> > Michael James
> > Unidata
> >
> >> Hi Tom
> >>
> >> I'm using Argentinean province plots, with gpmap. It worked nice but
> for
> >> a reason I don't know it stopped to plot another countries like Chile,
> >> Uruguay and Brazil.
> >>
> >> As I've read your support help, with gpmap, the maps you want can be
> >> indicated by a command like this:
> >>
> >> mapfil =  hipowo.cia + histar.uni
> >>
> >> There is more information below about this problem. Could you please
> >> orientate me?
> >>
> >> Best regards,
> >> Gustavo
> >>
> >> Ps
> >> The script is:
> >>
> >> /home/ldm/gpitt/arg_super.exe
> >>
> >> Where the gpmaps part is:
> >> gpmap << EOFMAP
> >> mapfil =  hipowo.cia + histar.uni
> >> AREA =  -65;-110;-10;-40
> >> GAREA =  -55;-85;-20;-45
> >> SATFIL   =
> >> RADFIL   =
> >> IMCBAR   =
> >> DATTIM   = ${hour}
> >> COLORS   = 32;4;17;18;7;32
> >> MAP      = 1/1
> >> LATLON   = 1/2///5;5
> >> TITLE    =
> >> CLEAR    = n
> >> PANEL    = all
> >> DEVICE   = gif | /home/ldm/web/sup/argobs${date}_${hour}.gif | 850
> >> ; 850
> >> PROJ     = CED
> >> FILTER   = 1
> >> TEXT     = .7/1/HW
> >> LUTFIL   =
> >> STNPLT   =
> >> CLRBAR   = 0
> >> LINE     = 2
> >>
> >>
> >> Run
> >> .....
> >>
> >> And example of it is:
> >>
> >> http://www.unidata.at.fcen.uba.ar/sup/argobs20110221_13.gif
> >> Can you see that it's missing Uruguay, Chile and so on???
> >>
> >> Ps2
> >> Can it be that the settings change as some scripts run? I don't know
> >> where the problem is!!!
> >>
> >>
> >> On Mon, 07 Feb 2011 17:29:11 -0700, "Unidata Support" wrote:
> >> > Hi Gustavo,
> >> >
> >> > re: GEMPAK map of the states of Argentina
> >> >> thank you... I uncompressed it .. all right...
> >> >> I could test it .. using "gpmap" yet I found some
> >> >> difficulty to run with our scripts. For example
> >> >>
> >> >> /home/ldm/gpitt/arg_super.exe
> >> >>
> >> >> Here it runs  "sfmap" in order to plot metars
> >> >> but I don't realize how to add the new map.
> >> >>
> >> >> Have I used both "sfmap" plus "gpmap" at the same time?
> >> >>
> >> >> I you can help me I would appreciate since
> >> >> I 'm trying without any hit. Maybe you have a template
> >> >> or something like that...
> >> >
> >> > The following should be the information you need:
> >> >
> >> > http://www.unidata.ucar.edu/software/gempak/tutorial/maps.html
> >> >
> >> > An example of using $MAPFIL is included at the end of GPMAP / 3.1.4
> >> > section.
> >> >
> >> >
> >>
> http://www.unidata.ucar.edu/software/gempak/tutorial/3.1_mapping.html#3.1.4
> >> >
> >> > Please let us know if this helps...
> >> >
> >> > Cheers,
> >> >
> >> > Tom
> >>
> >
> >
> > Ticket Details
> > ===================
> > Ticket ID: ORZ-184019
> > Department: Support GEMPAK
> > Priority: Normal
> > Status: Open
> 


Ticket Details
===================
Ticket ID: ORZ-184019
Department: Support GEMPAK
Priority: High
Status: Open

Attachment: arg.sh
Description: Bourne shell script

Attachment: argobs20110303_22.gif
Description: GIF image