datelist.sh
Updated: Jul11,2020

Generate a list of contguous UT dates for year/month specifications. This is usally used for tcodes that process data by date, like the multi_acm_bias code used to suvey acm biad properties over different time periods. Basically, we need a way to generate a list of dates in "standard" format: YYYYMMDD where YYYY is the integer year, MM is the integer month, and DD is the integer day.

I wrote this in may gfortran "otw" style so that I could use the SCOLIB routines in the datetime.f subroutine set. These codes make it easy to convert date strings, handle things like leap years, etc...

 

% datelist.sh  --help  

To make a list with all 12 months in each of 3 years: 
 % datelist.sh 2018 -ny 3 > list.2018-2020

I could then use this list to stufy bias values: 
[sco@vdas 2018-2020]$ pwd
/home/mcs/sco/ACM_BIAS_STUDY_Jul2020/2018-2020
[sco@vdas 2018-2020]$ cat BaseDir
/hetdata/data
[sco@vdas 2018-2020]$ multi_acm_bias list.2018-2020





Back to calling page