#!/bin/csh ######################################################################### # Script Name: surface_map_lab2.g # # # # Written By: Kevin Goebbert # # Date: 31 January 2009 # # # # Script Purpose: # # This is an example script which runs GEMPAK to create a surface # # map. This script can be modified to do any number of different # # processes to make the map creation process more automated. However, # # this program is only initial designed to create a single image and # # posts that image to the metr2021 webpage. # # # # Modifications: # # # # # ######################################################################### # The following line performs a Linux command that makes sure that when we # try to type the name of a GEMPAK program that it will be able to find # the correct program. source /home/nawips/Gemenviron echo "STARTING TO RUN GEMPAK" echo "" # When running GEMPAK in a Shell script, we call the program simply by # typing the name of the program in, but then we place a some control # characters after that call to tell the script that I want to put everything # after this call into the GEMPAK program until I put the same marker again. sfmap << EOF AREA = us GAREA = OK SATFIL = RADFIL = IMCBAR = SFPARM = SKYC;TMPF;WSYM;SMSL;;DWPF;BRBK DATTIM = 1800 SFFILE = /data/gempak/surface/20090209_sao.gem COLORS = 31 MAP = 31 MSCALE = 0 LATLON = TITLE = 31/0/Surface Image for ~ by Paul Marinsky CLEAR = yes PANEL = 0 DEVICE = gif | /home/marinsky/http/lab2_sfc1.gif PROJ = MER FILTER = YES TEXT = 1 LUTFIL = STNPLT = CLRBAR = LSTPRM = run exit EOF gpend echo "" echo "I HAVE SUCCESSFULLY FINISHED RUNNING GEMPAK AND I SHOULD HAVE CREATED AN IMAGE."