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

20000107: gempak and long filenames



Chris,
You may be able to work around the problem by letting the substitution
occur within Gempak, rather than in the csh script, eg:

gdfile = \$NGMFILE+\$ETAFILE+\$AVNFILE

The really cheesy way to do it would to temporarily create a link
to each file to /tmp/ngm, /tmp/eta and /tmp/avn and use those
as the filenames.

Steve Chiswell

>From: address@hidden (Chris Hennon)
>Organization: .
>Keywords: 200001080343.UAA25618

>Steve -
>
>I'm having a problem and was wondering if there was a workaround.  I'm
>trying to open three grid files at once in GDCNTR so that I can average
>the fields.  I set the paths in a cshell as:
>
>set NGMFILE=$HDS/${YYYY}${mm}${dd}${time}_ngm_grid211.gem
>set ETAFILE=$HDS/${YYYY}${mm}${dd}${time}_eta_grid211.gem
>set AVNFILE=$HDS/${YYYY}${mm}${dd}${time}_avn_grid211.gem
>
>then run GDCNTR with the following input:
>
>gdcntr << EOF
> GDATTIM  = ${ftime}
> GLEVEL   = 0
> GVCORD   = PRES
> GFUNC    = sm5s(avg(P06I+1,P06I+2))
> GDFILE   = ${NGMFILE} + ${ETAFILE} + ${AVNFILE}
> CINT     = 0
>
>etc......
>
>I get errors that it can't open the grid files, i.e. :
>
>[FL 21] /usr/local/ldm/
>[DM -2]  File /usr/local/ldm/ cannot be opened.
>[GD -2]  File /usr/local/ldm/ cannot be opened.
>[DG -30]  Error opening grid file.
>
>I guess that there's a limit on the length of a line, and that GDCNTR
>stops reading after a certain point.  Is there a way in which I can open 3
>grid files at once, each with a longish path?  Thanks.
>
>Chris
>
>================================================
>| Chris Hennon        Ohio State University   |
>| Tropical Meteorology      address@hidden   |
>|                                              |
>| Dept of Geography   Office: 1155 Derby Hall  |
>| 1036 Derby Hall     Phone : (614) 292-2704   |
>| Columbus, OH 43210  Fax   : (614) 292-6213   |
>================================================
>