#!/bin/csh -f

set ymd=`date '+%Y%m%d'`
set ymd=${1}

set yr=`echo $ymd | cut -c1-4`
set mn=`echo $ymd | cut -c5-6`
set dd=`echo $ymd | cut -c7-8`

set dir=/home/people/cpc/ftp/ypan1/eddi/CONUS_archive/images_new
set dir1=${dir}/${yr}
set dir2=${dir1}/${mn}
set dir3=${dir2}/${dd}

cd $dir

if ( ! -d $dir1 ) then
mkdir -p $dir1
endif

cd $dir1

if ( ! -d $dir2 ) then
mkdir -p $dir2
endif

cd $dir2

if ( ! -d $dir3 ) then
mkdir -p $dir3
endif

exit
