#!/bin/csh
#################################################################
# Csh Script to retrieve 365 online Data files of 'ds313.3',
# total 48.12G. This script uses 'wget' to download data.
#
# Highlight this script by Select All, Copy and Paste it into a file;
# make the file executable and run it on command line.
#
# You need pass in your password as a parameter to execute
# this script; or you can set an environment variable RDAPSWD
# if your Operating System supports it.
#
# Contact chifan@ucar.edu (Chi-Fan Shih) for further assistance.
#################################################################


set pswd = $1
if(x$pswd == x && `env | grep RDAPSWD` != '') then
 set pswd = $RDAPSWD
endif
if(x$pswd == x) then
 echo
 echo Usage: $0 YourPassword
 echo
 exit 1
endif
set v = `wget -V |grep 'GNU Wget ' | cut -d ' ' -f 3`
set a = `echo $v | cut -d '.' -f 1`
set b = `echo $v | cut -d '.' -f 2`
if(100 * $a + $b > 109) then
 set opt = 'wget --no-check-certificate'
else
 set opt = 'wget'
endif
set opt1 = '-O Authentication.log --save-cookies auth.rda_ucar_edu --post-data'
set opt2 = "email=ctrhodes@coastal.edu&passwd=$pswd&action=login"
$opt $opt1="$opt2" https://rda.ucar.edu/cgi-bin/login
set opt1 = "-N --load-cookies auth.rda_ucar_edu"
set opt2 = "$opt $opt1 http://rda.ucar.edu/data/ds313.3/"
set filelist = ( \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140101.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140102.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140103.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140104.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140105.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140106.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140107.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140108.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140109.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140110.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140111.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140112.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140113.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140114.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140115.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140116.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140117.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140118.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140119.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140120.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140121.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140122.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140123.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140124.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140125.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140126.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140127.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140128.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140129.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140130.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140131.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140201.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140202.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140203.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140204.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140205.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140206.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140207.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140208.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140209.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140210.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140211.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140212.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140213.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140214.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140215.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140216.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140217.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140218.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140219.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140220.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140221.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140222.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140223.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140224.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140225.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140226.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140227.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140228.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140301.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140302.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140303.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140304.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140305.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140306.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140307.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140308.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140309.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140310.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140311.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140312.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140313.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140314.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140315.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140316.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140317.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140318.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140319.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140320.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140321.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140322.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140323.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140324.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140325.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140326.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140327.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140328.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140329.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140330.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140331.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140401.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140402.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140403.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140404.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140405.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140406.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140407.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140408.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140409.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140410.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140411.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140412.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140413.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140414.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140415.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140416.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140417.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140418.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140419.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140420.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140421.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140422.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140423.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140424.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140425.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140426.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140427.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140428.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140429.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140430.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140501.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140502.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140503.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140504.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140505.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140506.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140507.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140508.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140509.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140510.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140511.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140512.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140513.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140514.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140515.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140516.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140517.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140518.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140519.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140520.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140521.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140522.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140523.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140524.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140525.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140526.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140527.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140528.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140529.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140530.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140531.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140601.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140602.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140603.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140604.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140605.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140606.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140607.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140608.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140609.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140610.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140611.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140612.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140613.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140614.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140615.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140616.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140617.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140618.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140619.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140620.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140621.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140622.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140623.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140624.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140625.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140626.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140627.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140628.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140629.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140630.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140701.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140702.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140703.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140704.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140705.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140706.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140707.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140708.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140709.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140710.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140711.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140712.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140713.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140714.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140715.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140716.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140717.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140718.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140719.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140720.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140721.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140722.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140723.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140724.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140725.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140726.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140727.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140728.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140729.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140730.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140731.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140801.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140802.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140803.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140804.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140805.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140806.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140807.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140808.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140809.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140810.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140811.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140812.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140813.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140814.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140815.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140816.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140817.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140818.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140819.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140820.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140821.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140822.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140823.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140824.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140825.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140826.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140827.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140828.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140829.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140830.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140831.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140901.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140902.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140903.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140904.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140905.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140906.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140907.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140908.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140909.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140910.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140911.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140912.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140913.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140914.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140915.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140916.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140917.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140918.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140919.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140920.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140921.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140922.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140923.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140924.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140925.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140926.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140927.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140928.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140929.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20140930.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141001.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141002.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141003.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141004.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141005.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141006.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141007.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141008.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141009.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141010.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141011.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141012.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141013.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141014.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141015.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141016.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141017.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141018.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141019.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141020.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141021.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141022.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141023.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141024.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141025.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141026.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141027.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141028.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141029.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141030.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141031.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141101.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141102.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141103.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141104.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141105.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141106.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141107.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141108.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141109.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141110.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141111.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141112.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141113.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141114.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141115.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141116.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141117.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141118.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141119.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141120.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141121.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141122.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141123.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141124.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141125.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141126.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141127.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141128.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141129.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141130.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141201.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141202.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141203.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141204.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141205.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141206.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141207.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141208.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141209.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141210.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141211.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141212.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141213.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141214.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141215.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141216.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141217.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141218.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141219.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141220.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141221.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141222.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141223.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141224.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141225.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141226.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141227.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141228.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141229.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141230.nc \
  1.9x2.5/2014/MERRA2_1.9x2.5_20141231.nc \
)
while($#filelist > 0)
 set syscmd = "$opt2$filelist[1]"
 echo "$syscmd ..."
 $syscmd
 shift filelist
end

