Re: [gembud] FNEXRAD Help .. sooooo close

Jeff,

Below is a sample of code which generates US 1km reflectivity using GDPLOT3.
This is probably a complicated way of getting an image, but it works.

1) copy $GEMTBL/colors/coltbl.xwp to your working directory (i.e. the
directory you are running GDPLOT3 in)
         - GEMPAK looks for this table by default in the current working
directory before $GEMTBL/colors/coltbl.xwp

2) update the colors in coltbl.xwp to match unisysn0r.tbl or customize to
your liking

3) notes about code below...
        - sge(n0r,15) removes radar echoes below 15dbZ (mostly ground
clutter)
        - There is one more FLINE than FINT. Each FLINE refers to the 3rd,
4th, 5th color in coltbl.xwp

---
#!/bin/csh

source /home/gempak/Gemenviron

  gdplot3 << GDPLOT3_EOF
  GDFILE=/home/ldm/data/gempak/radar/2010040115_rad1.gem
  GDATTIM=last
  GLEVEL=0
  GVCORD=none
  PANEL=0
  SKIP=0
  SCALE=0
  GDPFUN=sge(n0r,15)
  TYPE=z
  CONTUR=0
  CINT=0
  LINE=0
  FINT=15;20;25;30;35;40;45;50;55;60;65;70;75
  FLINE=3;4;5;6;7;8;9;10;11;12;13;14;15;16
  HILO=0
  HLSYM=
  CLRBAR=0
  WIND=
  REFVEC=0
  TITLE=0
  TEXT=
  CLEAR=yes
  GAREA=wwwus
  IJSKIP=0
  PROJ=lcc
  MAP=0
  MSCALE=
  LATLON=
  DEVICE=gif | /home/maps/images/current/radar/us_201004011511_radar.gif |
960 ; 720
  STNPLT=
  SATFIL=
  RADFIL=
  IMCBAR=
  LUTFIL=none
  STREAM=
  POSN=
  COLORS=0
  MARKER=
  GRDLBL=
  FILTER=
  BOXLIN=
  REGION=
  TXTCOL=
  TXTFIL=
  TXTLOC=
  COLUMN=
  SHAPE=
  INFO=
  LOCI=
  ANOTLN=
  ANOTYP=
r

e

GDPLOT3_EOF
gpend
---

Regards,
Evan

Applications Meteorologist
Weather Trends International, Inc.


-----Original Message-----
From: gembud-bounces@xxxxxxxxxxxxxxxx
[mailto:gembud-bounces@xxxxxxxxxxxxxxxx] On Behalf Of Jeff Lake - Admin
Sent: Monday, March 29, 2010 11:48 AM
To: gembud@xxxxxxxxxxxxxxxx
Subject: [gembud] FNEXRAD Help .. sooooo close

Ok I'm at wits end ..
I have been hammering my head most of the weekend trying to use
the FNEXRAD 1km GRIB file

the data is getting to where its suppose to be
problem is .. about 7 out of 10 times I run the following script
I get an image, its not correct, but at least I get something ..
the image I get is numbers plotted around each radar locale

The error below I always see .. with or with out an image

Jeff Lake K8JSL
http://www.MichiganWxSystem.com
https://www.TheWeatherCenter.net
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#!/bin/sh

. Gemenviron.profile


rm -fr nexrworkb
mkdir nexrworkb
cd nexrworkb


gdplot3 << EOF2
device   = gif|radar_type.gif|900;700
gdfile   = nex1k
\$mapfil = hipowo.cia
proj     = lcc
garea    = wwwus
gdpfun  = n0r
map      = 1
clear    = y
gdattim  = LAST
text     =
TITLE    = 1/-1/~
GLEVEL   = 0
GVCORD   = none
CTYPE    = F
PANEL    = 0
SKIP     = 0
SCALE    = 0
CONTUR   = 0
HILO     =
LATLON   = 0
STNPLT   =
SATFIL   =
RADFIL   = unisysn0r.tbl
LUTFIL   =
STREAM   =
POSN     = 0
COLORS   = 1
MARKER   = 0
GRDLBL   = 0
FILTER   = YES

r

e

EOF2

gpend

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

[ldm@feeds imgcreate]$ ./test.sh
 GDFILE    Grid file                         $GEMDATA/HRCBOB.GRD
 GDATTIM   Grid date/time                    LAST
 GLEVEL    Grid level                        500
 GVCORD    Grid vertical coordinate          PRES
 PANEL     Panel loc/color/dash/width/regn   0
 SKIP      Skip_cntr/skip_plt_x;skip_plt_y   0
 SCALE     Scalar scale / vector scale       999
 GDPFUN    Scalar grid or vector grid funct  TMPC
 TYPE      GDPLOT2 function processing type  C
 CONTUR    Subbox/smooth                     0
 CINT      Contour interval/min/max          0
 LINE      Color/type/width/label/smth/fltr  3
 FINT      Fill interval/min/max             0
 FLINE     Fill colors/fill types            10-20
 HILO      Color/symbol/rng/rad/cnt/intp
 HLSYM     HILO txt size/posn/font/wdth/hw
 CLRBAR    Color/ornt/anch/x;y/ln;wd/freq|t
 WIND      Wind symbol/siz/wdth/typ/hdsz     BM1
 REFVEC    Mag;x;y;txtsiz/font/wdth/HW;labl
 TITLE     Title color/line/title            1
 TEXT      Size/fnt/wdth/brdr/N-rot/just/hw  1
 CLEAR     Clear screen flag                 YES
 GAREA     Graphics area                     WV
 IJSKIP    Iskp;Istrt;Istp/Jskp;Jstrt;Jstp
 PROJ      Map projection/angles/margins|dr  MER
 MAP       Map color/dash/width/filter flag  1
 MSCALE    fgc;bgc;mask/units/lat;hide/valu  0
 LATLON    Line color/dash/width/freq/inc/l
 DEVICE    Device|name|x size;y size|color   XW
 STNPLT    Txtc/txt attr|marker attr|stnfil
 SATFIL    Satellite image filename(s)
 RADFIL    Radar image filename(s)
 IMCBAR    Color/ornt/anch/x;y/ln;wd/freq
 LUTFIL    Enhancement lookup table filenam
 STREAM    lines/arrows/stop/slow/scale
 POSN      Position / Text format            0
 COLORS    Color list                        1
 MARKER    Marker color/type/size/width/hw   0
 GRDLBL    Grid point label color            0
 FILTER    Filter data factor                YES
 BOXLIN    Box color/type/width/label/smth/
 REGION    Region type                       VIEW
 TXTCOL    Text colors
 TXTYPE    Text size/fnt/wdth/brdr/N-rot/ju
 TXTFIL    Text filename or LOGO|size|mode
 TXTLOC    Text location
 COLUMN    Number of columns                 1
 SHAPE     Object to draw
 INFO      Shape information
 LOCI      Point(s) associated with SHAPE
 ANOTLN    Annotation line color/type/width
 ANOTYP    Annotation fill type: C/F
 Parameters requested: GDFILE,GDATTIM,GLEVEL,GVCORD,PANEL,SKIP,SCALE,GDPFUN,
 TYPE,CONTUR,CINT,LINE,FINT,FLINE,HILO,HLSYM,CLRBAR,WIND,REFVEC,TITLE,TEXT,
 CLEAR,GAREA,IJSKIP,PROJ,MAP,MSCALE,LATLON,DEVICE,STNPLT,SATFIL,RADFIL,
 IMCBAR,LUTFIL,STREAM,POSN,COLORS,MARKER,GRDLBL,FILTER,BOXLIN,REGION,TXTCOL,
 TXTYPE,TXTFIL,TXTLOC,COLUMN,SHAPE,INFO,LOCI,ANOTLN,ANOTYP.
 GEMPAK-GDPLOT3> GEMPAK-GDPLOT3> GEMPAK-GDPLOT3> GEMPAK-GDPLOT3> 
GEMPAK-GDPLOT3> 
GEMPAK-GDPLOT3> GEMPAK-GDPLOT3> GEMPAK-GDPLOT3> GEMPAK-GDPLOT3> 
GEMPAK-GDPLOT3> 
GEMPAK-GDPLOT3> GEMPAK-GDPLOT3> GEMPAK-GDPLOT3> GEMPAK-GDPLOT3> 
GEMPAK-GDPLOT3> 
GEMPAK-GDPLOT3> GEMPAK-GDPLOT3> GEMPAK-GDPLOT3> GEMPAK-GDPLOT3> 
GEMPAK-GDPLOT3> 
GEMPAK-GDPLOT3> GEMPAK-GDPLOT3> GEMPAK-GDPLOT3> GEMPAK-GDPLOT3> 
GEMPAK-GDPLOT3> 
GEMPAK-GDPLOT3> GEMPAK-GDPLOT3> GEMPAK-GDPLOT3> GEMPAK-GDPLOT3> 
GEMPAK-GDPLOT3> 
GEMPAK-GDPLOT3> GEMPAK-GDPLOT3> Number of times =            1
           1  100329/1522F000

 PARAMETERS FOR GDPLOT : FRAME NUMBER  1 INITIAL PLOT SETTINGS -
    GDFILE=nex1k, GDATTIM=100329/1522F000
    GAREA=wwwus, PROJ=LCC, MAP=1, LATLON=0
    PANEL=0, TITLE=1/-1/~
    OVERLAY  TYPE       LEVEL           VCORD       GRID FUNCTION
        1    C          0               NONE        N0R
 [GEMPLT 1]  NCTRLP - Broke out of contour loop.
 [GEMPLT 1]  NCTRLP - Broke out of contour loop.
 [GEMPLT 1]  NCTRLP - Broke out of contour loop.
 [GEMPLT 1]  NCTRLP - Broke out of contour loop.
 [GEMPLT 1]  NCTRLP - Broke out of contour loop.
 [GEMPLT 1]  NCTRLP - Broke out of contour loop.
 [GEMPLT 1]  NCTRLP - Broke out of contour loop.
 [GEMPLT 1]  NCTRLP - Broke out of contour loop.
 [GEMPLT 1]  NCTRLP - Broke out of contour loop.
 [GEMPLT 1]  NCTRLP - Broke out of contour loop.
 [GEMPLT 1]  NCTRLP - Broke out of contour loop.
 [GEMPLT 1]  NCTRLP - Broke out of contour loop.
 [GEMPLT 1]  NCTRLP - Broke out of contour loop.
 [GEMPLT 1]  NCTRLP - Broke out of contour loop.
 [GEMPLT 1]  NCTRLP - Broke out of contour loop.
 [GEMPLT 1]  NCTRLP - Broke out of contour loop.
 [GEMPLT 1]  NCTRLP - Broke out of contour loop.
 [GEMPLT 1]  NCTRLP - Broke out of contour loop.
 [GEMPLT 1]  NCTRLP - Broke out of contour loop.
 [GEMPLT 1]  NCTRLP - Broke out of contour loop.
 [GEMPLT 1]  NCTRLP - Broke out of contour loop.
 [GEMPLT 1]  NCTRLP - Broke out of contour loop.
 [GEMPLT 1]  NCTRLP - Broke out of contour loop.
 [GEMPLT 1]  NCTRLP - Broke out of contour loop.
 [GEMPLT 1]  NCTRLP - Broke out of contour loop.
 [GEMPLT 1]  NCTRLP - Broke out of contour loop.
 [GEMPLT 1]  NCTRLP - Broke out of contour loop.
Parameters requested: GDFILE,GDATTIM,GLEVEL,GVCORD,PANEL,SKIP,SCALE,GDPFUN,
 TYPE,CONTUR,CINT,LINE,FINT,FLINE,HILO,HLSYM,CLRBAR,WIND,REFVEC,TITLE,TEXT,
 CLEAR,GAREA,IJSKIP,PROJ,MAP,MSCALE,LATLON,DEVICE,STNPLT,SATFIL,RADFIL,
 IMCBAR,LUTFIL,STREAM,POSN,COLORS,MARKER,GRDLBL,FILTER,BOXLIN,REGION,TXTCOL,
 TXTYPE,TXTFIL,TXTLOC,COLUMN,SHAPE,INFO,LOCI,ANOTLN,ANOTYP.
 GEMPAK-GDPLOT3> GEMPAK-GDPLOT3>
Creating process: gplt for queue 1474562
 DEVICE    Device|name|x size;y size|color   gif|radar_type.gif|900;700
 Parameters requested: DEVICE.
 GEMPAK-GPCLEAR> GEMPAK-GPCLEAR>Creating process: gif for queue 1507331

_______________________________________________
gembud mailing list
gembud@xxxxxxxxxxxxxxxx
For list information or to unsubscribe,  visit:
http://www.unidata.ucar.edu/mailing_lists/ 




  • 2010 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the gembud archives: