#!/bin/csh -f
set echo
foreach domain (d01 d02)
#foreach domain (d02 )
#   foreach var (co slp integratedQCLOUD Q2 PBLH WSP10m T2 no geoHeight_900 WSP_900) 
   foreach var (w_verticalVelocity_smth_layer31  geoHeight_950  w_verticalVelocity_smth w_verticalVelocity   integratedQCLOUD Q2 PBLH WSP10m T2  geoHeight_900 geoHeight_800 geoHeight_700 Temperature800  geoHeight_500 ) # chem_co chem_o3 conv_co conv_o3 advh_co advh_o3 vmix_co vmix_o3 advz_co advz_o3 )
#   foreach var (co_hour chem_co_hour chem_o3_hour conv_co_hour conv_o3_hour advh_co_hour advh_o3_hour vmix_co_hour vmix_o3_hour advz_co_hour advz_o3_hour o3_hour)
     @ i = 0  
#  04-00-00
#     foreach file (  wrfout_${domain}_2*-??_04-??-00_${var}.png )
     foreach file (  wrfout_${domain}_2*-??_03-??-00_${var}.png )
#     foreach file (  wrfout_${domain}_2*-??_06-??-00_${var}.png )
         ln -fs ${file} wrfout_${domain}_${var}_${i}.png
         @ i ++ 
       end  # foreach file 
   end  # foreach var
end  # foreach domain

