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

20000801: SAT/RAD YYYY problems in Garp




Tom,

I think I have duplicated you problem by placing both prod_yymmdd_hhmm and
prod_yyyymmdd_hhmm in the same directories. The problem is probably that the
yymmdd files don't match the YYYYMMDD template, so things are getting confused.

We can probably clear up the problem with a quick script to rename your old 
files to 4 digits.

Here is a quick csh script I call: renameyy.csh
It recursively calls itself, so the path inside needs to be changed to
where it is found on disk ....the top of the sat tree in this example.
cd to $SAT and run the script from that directory. It will traverse the tree,
and for files that have the _ character in them, it will rename them by
adding the 20 in front of the 00 if they have 00 following the first _
in the name. It will leave your current YYYY names alone, in addition to
any other files in the tree that don't match the pattern.

#!/bin/csh

set FILES=`ls`
foreach FILE ($FILES)
   if(-d $FILE) then
      echo $FILE
      cd $FILE
      /usr/local/ldm/data/gempak/images/sat/renameyy.csh
      cd ..
   else
      set FNAME=`echo $FILE | grep -c '_'`
      if($FNAME > 0) then
         set PART1=`echo $FILE | cut -f1 -d"_"`
         set PART2=`echo $FILE | cut -f2- -d"_"`
         set YY=`echo $PART2 | cut -c 1,2`
         if($YY == "00") then
            mv $FILE ${PART1}_20${PART2}
         endif
      else
         echo $FILE Does not match pattern
      endif
   endif
end

Let me know if this solves you trouble.

Steve Chiswell
Unidata User Support



>From: Tom McDermott <address@hidden>
>Organization: UCAR/Unidata
>Keywords: 200008011423.e71EN2T11750

>On Mon, 31 Jul 2000, Unidata Support wrote:
>
>> >It says Garp 2.1.  But this was installed from pl15 that came out in Jan.
>> >I don't recall anything about pl16.  Was there a fix for this problem in
>> >pl16.
>> >
>> >Tom
>> 
>> Tom, the patch 16 was primarily Feb 29, 2000 bugs.
>> Patches 14 and 15 were the rest of the Y2K bugs.
>
>OK, after reviewing my old gempak emails, I recall what happened.  I
>downloaded & installed the updated 'tictoi.f' & 'tiitoc.f' on 2/29 before
>you sent out the message about patch 16.  The only other change you
>mentioned specifically was an update to 'gbgpds.c' which I apparently
>forgot about.  I probably didn't want to download the p16 file because
>that contains everything and I didn't want to rebuild from scratch after
>going through it the previous month.  At any rate, I now see that gbgpds.c
>is available separately so I've downloaded and will rebuild gemlib and
>nagrib as per your instructions in the 2/29 message unless there were any
>other changes between p15 and p16 and unless I now need to rebuild
>anything else given that I've built and installed p17.  Please let me know
>what I should do here.
>
>> I have a solaris binary of garp in ~gbuddy/nawips-5.4/binary/sol/garp/garp
>> You might want to try this and see if the problem still exists.
>
>I could say I can't run it on our system because
>
>       libF77.so.4 =>   (file not found)
>
>(apparently you built this with Sun Compilers 5 or 6 and we have v4.2).  
>However, I cheated and got it to run.
>
>> If this fixes your problem, then you need some patches. If the problem still
>> exists, then we'll check out your Garp_defaults amd $SAT structure.
>> If you can send me the "ls -R" from $SAT and your Garp_defaults file, I'll
>> see if there is anything strange there.
>
>It didn't fix the problem.  I will send you 3 subsequent emails.  The
>first will be Garp_defaults and the second will be the result of running
>'diff' on the distributed Garp_defaults file (last modified 1/4/00)
>which was the base I started from and our Garp_defaults file.  The third
>is `ls -R $SAT`.  Notice there will be a lot of 2 digit file names
>remaining since I didn't make the change until Sunday. 
>
>Just to reemphasize, only SAT and NIDS files are affected by this.  All
>other GEMPAK data files including the new SOUNDER files appear correctly
>in GARP with 4 digit file names.
>
>Tom
>------------------------------------------------------------------------------
>Tom McDermott                          Email: address@hidden
>System Administrator                   Phone: (716) 395-5718
>Earth Sciences Dept.                   Fax: (716) 395-2416
>SUNY College at Brockport
>
>
>