Cannot override gribfilter.init function that sets the default grib files names
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Nbsp |
Fix Released
|
High
|
Jose F Nieves |
Bug Description
I put this in /usr/local/
ribfilter.conf
rename gribfilter_
proc gribfilter_
#
# "modelname" is put as an argument because some rules use a special
# value. If f_flag is 1, the forecast time is included in the name;
# otherwise it is not.
#
upvar 1 $rc_array_name rc;
if {$modelname eq ""} {
set modelname $rc(gribmodel);
}
set fname "";
append fname $modelname "_" $rc(gribgrid) "_" $rc(gribymdh);
if {$f_flag == 1} {
append fname "_" [format "%03d" $rc(gribforecas
}
append fname [gribfilter_
return $fname;
}
And I get an error saying
can't rename "gribfilter_
while executing
"rename gribfilter_
(file "/usr/local/
invoked from within
"source ${_localconfname}"
("foreach" body line 4)
invoked from within
"foreach _d $gribfilter(
set _localconfname ${_d}/${_confname}
if {[file exists ${_localconfname}] == 1} {
source ${_lo..."
(file "/usr/local/
invoked from within
"source $gribfilter(conf)"
invoked from within
"if {[file exists $gribfilter(conf)] == 1} {
source $gribfilter(conf);
}"
(file "/usr/local/
invoked from within
"source $grib_init_file"
(file "/usr/local/
So i edited the /usr/local/
line to
if {$f_flag == 1} {
append fname "_" [format "%03d" $rc(gribforecas
}
and now nothing shows up in data/grib/data/grb but all the files do show up
in data/grib/
I tried "%03f" but still no data in data/grib/data/grb.
On Mon, Apr 16, 2012 at 4:17 PM, Jose F Nieves <email address hidden> wrote:
> Jason
>
> In this portion
>
> if {$f_flag == 1} {
> append fname "_" $rc(gribforecas
> }
>
>
> replace the statement on the middle by the following
>
> append fname "_" [format "%03d" $rc(gribforecas
>
> That will give you things like
>
> 00n
> 0mn
>
> Jose
>
>
>
--
Jason Brooks
KE5FSE
Changed in nbsp: | |
assignee: | nobody → Jose F Nieves (nieves) |
status: | New → Confirmed |
importance: | Low → High |
Changed in nbsp: | |
status: | Confirmed → Fix Committed |
Changed in nbsp: | |
milestone: | none → 2.2.3.r1 |
Changed in nbsp: | |
status: | Fix Committed → Fix Released |