#!/bin/csh -f
set echo
foreach domain (d02 d01 )
#   foreach var (co slp integratedQCLOUD Q2 PBLH WSP10m T2 no geoHeight_900 WSP_900) 
#   foreach var (UST EXCH_H E_CO E_SO2 E_NH3 SWDOWN SMOIS  avo_800  co geoHeight_500 geoHeight_700 geoHeight_800 geoHeight_900 geoHeight_950 HFX integratedQCLOUD LH no o3 PBLH PM10 Q2 SST T2 Temperature800 TSK  WSP10m WSP700hPa WSP800hPa WSP900hPa WSP950hPa w_verticalVelocity w_verticalVelocity_smth_layer31 w_verticalVelocity_smth )
   foreach var (UST EXCH_H E_CO E_NO E_SO2 so2 SWDOWN SMOIS  avo_800  co geoHeight_500 geoHeight_700 geoHeight_800 geoHeight_900 geoHeight_950 HFX integratedQCLOUD LH no o3 PBLH PM10 Q2 SST T2 Temperature800 TSK  WSP10m WSP700hPa WSP800hPa WSP900hPa WSP950hPa w_verticalVelocity w_verticalVelocity_smth_layer31 w_verticalVelocity_smth mdbz so2_zoomin2_lyr30 so2_zoomin2_lyr31 so2_zoomin2_lyr32 so2_zoomin_lyr30 so2_zoomin_lyr31 so2_zoomin_lyr32 so2_zoomin so2_zoomin2 so2_zoomin_lyr2 so2_zoomin_lyr4 so2_zoomin_lyr6 so2_zoomin_lyr8 so2_zoomin_lyr10 so2_zoomin_lyr12 so2_zoomin_lyr14 so2_zoomin_lyr16 so2_zoomin_lyr18 so2_zoomin_lyr20 so2_zoomin_lyr22 so2_zoomin_lyr24 so2_zoomin_lyr26 so2_zoomin_lyr28 so2_zoomin2_lyr2 so2_zoomin2_lyr4 so2_zoomin2_lyr6 so2_zoomin2_lyr8 so2_zoomin2_lyr10 so2_zoomin2_lyr12 so2_zoomin2_lyr14 so2_zoomin2_lyr16 so2_zoomin2_lyr18 so2_zoomin2_lyr20 so2_zoomin2_lyr22 so2_zoomin2_lyr24 so2_zoomin2_lyr26 so2_zoomin2_lyr28)
#   foreach var (w_verticalVelocity_smth w_verticalVelocity  co integratedQCLOUD Q2 PBLH WSP10m T2 no geoHeight_900 geoHeight_800 geoHeight_700 Temperature800 o3 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  
     foreach file (  wrfout_${domain}_20*??_??-??-00_${var}.png )
         ln -s ${file} wrfout_${domain}_${var}_${i}.png
         @ i ++ 
       end  # foreach file 
   end  # foreach var
end  # foreach domain

