[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GEMPAK #OFM-264790]: SFCNTR Segmentation fault...
- Subject: [GEMPAK #OFM-264790]: SFCNTR Segmentation fault...
- Date: Tue, 15 Mar 2011 17:23:08 -0600
The way you're logging output is preventing the gif file from being written.
You need to change your logging from stderr ( >& $LOG_PATH/surface.log ) to
stdout (> $LOG_PATH/surface.log ) and it should work fine.
-Michael James
> Good afternoon,
> I am working on creating automated crobtab scripts to make animated surface
> temperature and dew point plots using GEMPAK. My current issue is related to
> SFCNTR. When I run the attached script (surface.bash), the program gives me
> the following output:
>
> rm: cannot remove `20110313_1900.gif': No such file or directory
> rm: cannot remove `20110313_1900.gif': No such file or directory
> ./surface.bash: line 60: 1781 Segmentation fault sfcntr
> >&$LOG_PATH/surface.log <<EOF
>
> I know that the first two lines are related to the cleaning out of my
> directory data that is more than 2 days old (those files don't exist). Here
> is the surface.bash script file:
>
> #!/bin/bash
> export DISPLAY=localhost:0.0
> source /home/gempak/GEMPAK6.2.0/Gemenviron.profile
>
> SFC_PATH=/data/ldm/data/gempak/surface
> TEMP_PATH=/data/ldm/mapwall/current/data/sfc_temp
> DEW_PATH=/data/ldm/mapwall/current/data/sfc_dew
> LOG_PATH=/data/ldm/mapwall/current/logs
> DISP_PATH=/data/ldm/mapwall/current/display
> CUR_TIME=`date --date='5 hours' +"%Y%m%d"_"%H"00`
> CUR_DATE=`date --date='5 hours' +"%Y%m%d"_sao.gem`
> YES_DATE=`date --date='43 hours ago' +"%Y%m%d"_"%H"00`
> CUR_HOUR=`date --date='5 hours' +"%H"00`
> cd $TEMP_PATH
> rm $YES_DATE.gif
> cd $DEW_PATH
> rm $YES_DATE.gif
>
> sfcntr << EOF >& $LOG_PATH/surface.log
> MAP = 3
> GAREA = 18;-118;52;-60
> AREA = 18;-130;60;-60
> DATTIM = $CUR_HOUR
> PROJ = lcc
> RADFIL =
> SATFIL =
> SFFILE = $SFC_PATH/$CUR_DATE
> CLEAR = no
> TEXT = 1.5/22/HW
> FILTER = 1
> STNPLT =
> GAMMA = 0.3
> CONTUR = 2/1
> NPASS = 2
> DEVICE = gif|$TEMP_PATH/$CUR_TIME.gif|1920;1080
> CNTRPRM = tmpf
> SFPARM = tmpf
> COLORS = (-30-110-10/1;11;7;30;28;27;25;4;23;21;19;17;2;12;11;1/tmpf/E)
> LINE = 11;7;30;28;27;25;4;23;21;19;17;2;12;11;1/1/2/1/2/T
> CINT = -30;-20;-10;0;10;20;30;40;50;60;70;80;90;100;110
> TITLE = 1/0/^ Surface Air Temperature (F)
>
> r
>
> LINE = 11;7;30;28;27;25;4;23;21;19;17;2;12;11;1/1/2/1/2/T
> CINT = -30;-20;-10;0;10;20;30;40;50;60;70;80;90;100;110
> TITLE = 1/0/^ Surface Air Temperature (F)
> DEVICE = gif|$DEW_PATH/$CUR_TIME.gif|1920;1080
> SFPARM = dwpf
> COLORS = (35;40;45;50;55;60;65;70;75;80/27;25;4;23;21;19;17;2;12;11;1/dwpf)
> CNTRPRM = dwpf
> LINE = 27;27;27;27;27;25;4;23;21;19;17;2;12;11;1/1/2/1/2/T
> CINT = -10;0;10;20;30;35;40;45;50;55;60;65;70;75;80
> TITLE = 1/0/^ Surface Dew Point Temperature (F)
>
> r
>
> e
>
> EOF
> gpend
>
> I tried commenting out line by line of the code, and things change once I and
> the "gpend" command. I don't get the seg fault without it...but regardless,
> I don't get graphs at any point! Oh...and the surface.log file shows
> everything running normally. I have rebuilt GEMPAK using the (make
> Everything) command, and the issue persists. Any help would be appreciated!
>
> David M. Stokowski
> Client Support Analyst II
> Department of Atmospheric Science
> Creighton University
> Office: (402) 280.3523
> email: address@hidden
>
>
>
Ticket Details
===================
Ticket ID: OFM-264790
Department: Support GEMPAK
Priority: Normal
Status: Open