IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 12, 2023, 9:21:20 AM (3 years ago)
Author:
eugene
Message:

changing directory structure to place nights in years

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/eam/rawfix.20230221/src/get_hosts_fixchip.sh

    r42457 r42462  
    1515endif
    1616
    17 if (! -d $topdir/$dateobs) then
    18   echo "ERROR: missing dateobs directory $topdir/$dateobs"
     17set yearobs = `echo $dateobs | awk '{print substr($1,1,4)}'`
     18set basedir = $topdir/$yearobs
     19
     20if (! -d $basedir/$dateobs) then
     21  echo "ERROR: missing dateobs directory $basedir/$dateobs"
    1922  exit 3
    2023endif
     
    2326echo "dateobs chipID iter fixhost"
    2427
    25 foreach f ($topdir/$dateobs/XY??.hosts.txt)
     28foreach f ($basedir/$dateobs/XY??.hosts.txt)
    2629  set myhost = `cat $f | grep -v ippb | sort -k 2n | tail -n 1 | prcol 1`
    2730  set chipID = `echo $f | awk -F/ '{print $NF}' | awk -F. '{print $1}'`
Note: See TracChangeset for help on using the changeset viewer.