#!/usr/bin/perl 

$homedir = "/usr/people/chain/final_lai_process/GLOBAL/CONUS4_NRT";

$iyr1=@ARGV[0];
$iyr2=@ARGV[0];
$idy1=@ARGV[1];
$idy2=@ARGV[2];

for ($year=$iyr1; $year<=$iyr2; $year++) { 
for ($doy=$idy1; $doy<=$idy2; $doy++) {
  printf("Processing $year $doy...\n");
  `$homedir/interp_conus8 $year $doy`;
  $doy=$doy+7;
}
}
