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

20031021: Configuring GUIs to find/plot new data sets



Tim,

You'll have to create your own variable names for the data
(use existing onles like PMSL, TMPC, SPED, DRCT, OZON where appropriate),
line NOXX, SOXX, etc.

For surface data, you want 4 character IDs for parameters. See
SFPARM documentation or appendix A for existing meteorological parameters.

To tell NMAP2 about products you'll want to display, edit the 
$GEMTBL/config/prmlst.tbl file to define your data sets.
You'll also have to add a line to $GEMTBL/config/datatype.tbl to
relate the data set aliases from prmlst.tbl.

Eg, if your files were $GEMDATA/airq/YYYYMMDD_airq.gem, you would have an 
entry in datatype.tbl like (similar to the SUOMI set I added, which is similar 
to
your case where the parameters are not standard meteorological parameters):

AIRQ         $GEMDATA/airq             YYYYMMDD_airq.gem         CAT_SFC  
SCAT_SFC   10   3600     -1

and a prmlst.tbl entry might be:
^OZONE_PPB | AIRQ
SFPARM = OZON
COLORS = 5
FILTER=0
TEXT=1/21/HW


After the data set is set up, you can edit the station plot configuration from 
the
"Edit source" widget in the data display by creating a 
$GEMTBL/nmap/airq_parms.tbl
file which lists the possible parameters in your AIRQ data set, similar to:
!       SUOMI_PARMS.TBL
!
! parameter       pos_zero_flag
!
pres              0
tmpc              0
relh              0
pwvm              0
pwve              0
delw              0
deld              0
delt              0
delf              0
pifc              0
mflg              0


for Garp, edit the $GARPHOME/config/Garp_defaults file ans add "airq" to the
"sfc_keys" list, add a descriptive name to "sfc_labels", and create
an airq.lst file for sfc_tables (the parameters for your set in the 
$GARPHOME/tables
directory). Then add an airq_dir : $(GEMDATA)/airq entry so that Garp can find 
the data,
and a default station plot as airq_parms following other examples (such as the 
nldn
data set which I added).

I'll condense this into a tutorial web page in the "importing research data" 
section..


Good luck,

Steve Chiswell




>From: "Tim Dye" <address@hidden>
>Organization: UCAR/Unidata
>Keywords: 200310211828.h9LISoOb013230

>Hi,
>
>       Thanks for the speedy reply.  
>
>       Do I need to use a specific parameter id (e.g., TMPC) for my air
>quality data?   Also, once I get it into the .gem format, I assume that
>GARP and NMAP2 will be able to read it?  Is this correct?
>
>Thanks,
>
>Tim
>
>
>
>
>
>-----Original Message-----
>From: Unidata Support [mailto:address@hidden] 
>Sent: Monday, October 20, 2003 4:23 PM
>To: address@hidden
>Cc: address@hidden; Tim Dye
>Subject: 20031020: GEMPAK questions 
>
>
>Tim,
>
>If you can put your data into a surface format similar to what SFLIST
>produces, then SFEDIT will create a gempak surface file from your
>ascii data.
>
>The tutorial page:
>http://my.unidata.ucar.edu/content/software/gempak/tutorial/importing_ex
>ercises.html
>shows an example of a way to create an ascii formated data file and
>station table.
>
>If your 1300 sites are fixed locations, then creating a standard surface
>file 
>is the easiest route since you will only have to create a station table
>once.
>For mobile locations, then you would have to have SLAT and SLON in every
>record and
>create a ship format surface file.
>
>You will need to assign a unique 4 to 8 character station ID for each
>site
>(this can be as simple as a counter as shown in the example).
>
>More information on the station table location format is shown here:
>http://my.unidata.ucar.edu/content/software/gempak/tutorial/station_tabl
>es.html
>
>Information on SFLIST is here:
>http://my.unidata.ucar.edu/content/software/gempak/tutorial/sflist.html
>and SFEDIT here:
>http://my.unidata.ucar.edu/content/software/gempak/tutorial/manual/progr
>ams/chap4.php?prog=sfedit
>
>you will have to create an empty surface file using a station table
>using SFCFIL
>http://my.unidata.ucar.edu/content/software/gempak/tutorial/manual/progr
>ams/chap4.php?prog=sfcfil
>before running SFEDIT.
>
>Steve Chiswell
>
>
>
>
>
>>From: "Critter Consulting" <address@hidden>
>>Organization: Critter Consulting
>>Keywords: 200310202204.h9KM43Ob024326
>
>>This is a multi-part message in MIME format.
>>
>>------=_NextPart_000_0001_01C3971B.5F9FDF90
>>Content-Type: text/plain;
>>      charset="us-ascii"
>>Content-Transfer-Encoding: 7bit
>>
>>Hi,
>> 
>>            I'm new at using Gempak.  We want to plot some air quality
>>data (hourly surface ozone concentration) at 1300 sites throughout the
>>U.S.  
>> 
>>            If I understand Gempak we need to get the data converted to
>>a .gem file and then it could be plotted with a program like GARP or
>>NMAP2.
>> 
>>            How to I get this air quality data (which is in a CSV
>>formatted file) into a .gem file?
>> 
>>            Do you now of generic decoders for non-weather data?
>> 
>>            Can I write my own program?
>> 
>>Thanks for you help on this issue.
>> 
>>Regards,
>> 
>>Tim Dye
>>(707) 665-9900
>> 
>>
>>------=_NextPart_000_0001_01C3971B.5F9FDF90
>>Content-Type: text/html;
>>      charset="us-ascii"
>>Content-Transfer-Encoding: quoted-printable
>>
>><html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
>>xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
>>xmlns:st1=3D"urn:schemas-microsoft-com:office:smarttags" =
>>xmlns=3D"http://www.w3.org/TR/REC-html40";>
>>
>><head>
>><META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
>>charset=3Dus-ascii">
>>
>>
>><meta name=3DProgId content=3DWord.Document>
>><meta name=3DGenerator content=3D"Microsoft Word 10">
>><meta name=3DOriginator content=3D"Microsoft Word 10">
>><link rel=3DFile-List href=3D"cid:filelist.xml@01C3971B.5E43D200">
>><o:SmartTagType =
>>namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
>> name=3D"country-region"/>
>><o:SmartTagType =
>>namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
>> name=3D"place"/>
>><!--[if gte mso 9]><xml>
>> <o:OfficeDocumentSettings>
>>  <o:DoNotRelyOnCSS/>
>> </o:OfficeDocumentSettings>
>></xml><![endif]--><!--[if gte mso 9]><xml>
>> <w:WordDocument>
>>  <w:SpellingState>Clean</w:SpellingState>
>>  <w:GrammarState>Clean</w:GrammarState>
>>  <w:DocumentKind>DocumentEmail</w:DocumentKind>
>>  <w:EnvelopeVis/>
>>  <w:Compatibility>
>>   <w:BreakWrappedTables/>
>>   <w:SnapToGridInCell/>
>>   <w:WrapTextWithPunct/>
>>   <w:UseAsianBreakRules/>
>>  </w:Compatibility>
>>  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
>> </w:WordDocument>
>></xml><![endif]--><!--[if !mso]>
>><style>
>>st1\:*{behavior:url(#default#ieooui) }
>></style>
>><![endif]-->
>><style>
>><!--
>> /* Style Definitions */
>> p.MsoNormal, li.MsoNormal, div.MsoNormal
>>      {mso-style-parent:"";
>>      margin:0in;
>>      margin-bottom:.0001pt;
>>      mso-pagination:widow-orphan;
>>      font-size:12.0pt;
>>      font-family:"Times New Roman";
>>      mso-fareast-font-family:"Times New Roman";}
>>a:link, span.MsoHyperlink
>>      {color:blue;
>>      text-decoration:underline;
>>      text-underline:single;}
>>a:visited, span.MsoHyperlinkFollowed
>>      {color:purple;
>>      text-decoration:underline;
>>      text-underline:single;}
>>span.EmailStyle17
>>      {mso-style-type:personal-compose;
>>      mso-style-noshow:yes;
>>      mso-ansi-font-size:10.0pt;
>>      mso-bidi-font-size:10.0pt;
>>      font-family:Arial;
>>      mso-ascii-font-family:Arial;
>>      mso-hansi-font-family:Arial;
>>      mso-bidi-font-family:Arial;
>>      color:windowtext;}
>>span.SpellE
>>      {mso-style-name:"";
>>      mso-spl-e:yes;}
>>span.GramE
>>      {mso-style-name:"";
>>      mso-gram-e:yes;}
>>@page Section1
>>      {size:8.5in 11.0in;
>>      margin:1.0in 1.25in 1.0in 1.25in;
>>      mso-header-margin:.5in;
>>      mso-footer-margin:.5in;
>>      mso-paper-source:0;}
>>div.Section1
>>      {page:Section1;}
>>-->
>></style>
>><!--[if gte mso 10]>
>><style>
>> /* Style Definitions */=20
>> table.MsoNormalTable
>>      {mso-style-name:"Table Normal";
>>      mso-tstyle-rowband-size:0;
>>      mso-tstyle-colband-size:0;
>>      mso-style-noshow:yes;
>>      mso-style-parent:"";
>>      mso-padding-alt:0in 5.4pt 0in 5.4pt;
>>      mso-para-margin:0in;
>>      mso-para-margin-bottom:.0001pt;
>>      mso-pagination:widow-orphan;
>>      font-size:10.0pt;
>>      font-family:"Times New Roman";}
>></style>
>><![endif]-->
>></head>
>>
>><body lang=3DEN-US link=3Dblue vlink=3Dpurple =
>>style=3D'tab-interval:.5in'>
>>
>><div class=3DSection1>
>>
>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>style=3D'font-size:10.0pt;
>>font-family:Arial'>Hi,<o:p></o:p></span></font></p>
>>
>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>style=3D'font-size:10.0pt;
>>font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>
>>
>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>style=3D'font-size:10.0pt;
>>font-family:Arial'><span =
>>style=3D'mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
>sp=
>>;&nbsp;&nbsp;&nbsp; </span>I&#8217;m
>>new at using <span class=3DSpellE>Gempak</span>.<span
>>style=3D'mso-spacerun:yes'>&nbsp; </span>We want to plot some air =
>>quality data
>>(hourly surface ozone concentration) at 1300 sites throughout the =
>></span></font><st1:country-region><st1:place><font
>>  size=3D2 face=3DArial><span =
>>style=3D'font-size:10.0pt;font-family:Arial'>U.S.</span></font></st1:pl
>ac=
>>e></st1:country-region><font
>>size=3D2 face=3DArial><span =
>>style=3D'font-size:10.0pt;font-family:Arial'><span
>>style=3D'mso-spacerun:yes'>&nbsp; </span><o:p></o:p></span></font></p>
>>
>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>style=3D'font-size:10.0pt;
>>font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>
>>
>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>style=3D'font-size:10.0pt;
>>font-family:Arial'><span =
>>style=3D'mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
>sp=
>>;&nbsp;&nbsp;&nbsp; </span>If
>>I understand <span class=3DSpellE>Gempak</span> we need to get the data
>=
>>converted
>>to a .gem file and then it could be plotted with a program like GARP or
>=
>>NMAP2.<o:p></o:p></span></font></p>
>>
>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>style=3D'font-size:10.0pt;
>>font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>
>>
>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>style=3D'font-size:10.0pt;
>>font-family:Arial'><span =
>>style=3D'mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
>sp=
>>;&nbsp;&nbsp;&nbsp; </span>How
>>to I get this air quality data (which is in a CSV formatted file) into
>a =
>>.gem
>>file?<o:p></o:p></span></font></p>
>>
>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>style=3D'font-size:10.0pt;
>>font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>
>>
>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>style=3D'font-size:10.0pt;
>>font-family:Arial'><span =
>>style=3D'mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
>sp=
>>;&nbsp;&nbsp;&nbsp; </span>Do
>>you now of generic decoders for non-weather =
>>data?<o:p></o:p></span></font></p>
>>
>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>style=3D'font-size:10.0pt;
>>font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>
>>
>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>style=3D'font-size:10.0pt;
>>font-family:Arial'><span =
>>style=3D'mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
>sp=
>>;&nbsp;&nbsp;&nbsp; </span>Can
>>I write my own program?<o:p></o:p></span></font></p>
>>
>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>style=3D'font-size:10.0pt;
>>font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>
>>
>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>style=3D'font-size:10.0pt;
>>font-family:Arial'>Thanks for you help on this =
>>issue.<o:p></o:p></span></font></p>
>>
>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>style=3D'font-size:10.0pt;
>>font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>
>>
>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>style=3D'font-size:10.0pt;
>>font-family:Arial'>Regards,<o:p></o:p></span></font></p>
>>
>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>style=3D'font-size:10.0pt;
>>font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>
>>
>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>style=3D'font-size:10.0pt;
>>font-family:Arial'>Tim Dye<o:p></o:p></span></font></p>
>>
>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>style=3D'font-size:10.0pt;
>>font-family:Arial'>(707) 665-9900<o:p></o:p></span></font></p>
>>
>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>style=3D'font-size:10.0pt;
>>font-family:Arial'><span =
>>style=3D'mso-spacerun:yes'>&nbsp;</span><o:p></o:p></span></font></p>
>>
>></div>
>>
>></body>
>>
>></html>
>>
>>------=_NextPart_000_0001_01C3971B.5F9FDF90--
>>
>>
>
>************************************************************************
>Unidata User Support                                    UCAR Unidata
>(303)497-8643                                                  P.O. Box
>address@hidden                                   Boulder, CO
>------------------------------------------------------------------------
>Unidata WWW Service
>************************************************************************
>