#!/usr/bin/bash

# Unfortunately, this creates "D???" subdirectories but there seems to be
#  no way around that in building the archive; users can probably avoid it
#  when *extracting* the archive.
for year in $(seq 2000 2017); do
  tar -czvf SMAP_L4C_NRv7-2_Y${year}.tar.gz\
    --exclude="*pft*" --exclude="*std*" --exclude="*mult*"\
    --exclude="*Frozen*" --exclude="*carbon_model*" --exclude="*qa*"\
    -C /anx_lagr3/laj/smap/natv72/prelaunch/land/Y${year}/ .
done
