#!/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/2015/MERRA2_1.9x2.5_20150101.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150102.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150103.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150104.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150105.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150106.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150107.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150108.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150109.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150110.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150111.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150112.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150113.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150114.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150115.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150116.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150117.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150118.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150119.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150120.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150121.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150122.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150123.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150124.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150125.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150126.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150127.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150128.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150129.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150130.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150131.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150201.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150202.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150203.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150204.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150205.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150206.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150207.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150208.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150209.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150210.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150211.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150212.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150213.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150214.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150215.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150216.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150217.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150218.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150219.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150220.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150221.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150222.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150223.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150224.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150225.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150226.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150227.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150228.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150301.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150302.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150303.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150304.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150305.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150306.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150307.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150308.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150309.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150310.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150311.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150312.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150313.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150314.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150315.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150316.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150317.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150318.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150319.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150320.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150321.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150322.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150323.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150324.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150325.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150326.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150327.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150328.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150329.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150330.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150331.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150401.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150402.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150403.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150404.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150405.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150406.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150407.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150408.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150409.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150410.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150411.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150412.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150413.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150414.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150415.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150416.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150417.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150418.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150419.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150420.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150421.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150422.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150423.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150424.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150425.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150426.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150427.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150428.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150429.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150430.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150501.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150502.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150503.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150504.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150505.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150506.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150507.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150508.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150509.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150510.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150511.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150512.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150513.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150514.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150515.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150516.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150517.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150518.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150519.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150520.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150521.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150522.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150523.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150524.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150525.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150526.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150527.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150528.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150529.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150530.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150531.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150601.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150602.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150603.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150604.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150605.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150606.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150607.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150608.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150609.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150610.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150611.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150612.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150613.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150614.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150615.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150616.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150617.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150618.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150619.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150620.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150621.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150622.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150623.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150624.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150625.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150626.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150627.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150628.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150629.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150630.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150701.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150702.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150703.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150704.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150705.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150706.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150707.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150708.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150709.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150710.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150711.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150712.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150713.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150714.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150715.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150716.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150717.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150718.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150719.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150720.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150721.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150722.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150723.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150724.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150725.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150726.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150727.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150728.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150729.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150730.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150731.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150801.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150802.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150803.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150804.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150805.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150806.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150807.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150808.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150809.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150810.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150811.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150812.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150813.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150814.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150815.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150816.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150817.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150818.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150819.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150820.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150821.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150822.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150823.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150824.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150825.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150826.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150827.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150828.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150829.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150830.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150831.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150901.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150902.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150903.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150904.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150905.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150906.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150907.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150908.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150909.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150910.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150911.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150912.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150913.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150914.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150915.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150916.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150917.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150918.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150919.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150920.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150921.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150922.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150923.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150924.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150925.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150926.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150927.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150928.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150929.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20150930.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151001.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151002.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151003.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151004.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151005.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151006.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151007.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151008.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151009.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151010.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151011.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151012.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151013.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151014.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151015.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151016.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151017.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151018.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151019.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151020.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151021.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151022.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151023.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151024.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151025.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151026.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151027.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151028.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151029.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151030.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151031.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151101.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151102.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151103.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151104.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151105.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151106.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151107.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151108.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151109.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151110.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151111.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151112.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151113.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151114.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151115.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151116.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151117.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151118.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151119.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151120.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151121.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151122.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151123.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151124.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151125.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151126.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151127.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151128.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151129.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151130.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151201.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151202.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151203.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151204.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151205.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151206.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151207.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151208.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151209.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151210.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151211.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151212.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151213.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151214.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151215.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151216.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151217.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151218.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151219.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151220.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151221.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151222.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151223.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151224.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151225.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151226.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151227.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151228.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151229.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151230.nc \
  1.9x2.5/2015/MERRA2_1.9x2.5_20151231.nc \
)
while($#filelist > 0)
 set syscmd = "$opt2$filelist[1]"
 echo "$syscmd ..."
 $syscmd
 shift filelist
end

