lvd
Updated: Sep03,2020

A routine to quickly list the VIRUS and LRS2 data directories. You can see more discussion of lvd in a general discussion of search for LRS2 and VIRUS files.


% lvd --h 
usage: lvd 20200507 [-v] [-h] 
Best if used with local BaseDir,Date files. 

[astronomer@mcs ~/run]$ cat BaseDir 
/hetdata/data
[astronomer@mcs ~/run]$ cat Date 
20191026

EXAMPLE: 
% lvd 20200507 

The LRS2 directories for 20191026
lrs20000001  lrs20000003  lrs20000005  lrs20000007  lrs20000009  lrs20000011  lrs20000013
lrs20000002  lrs20000004  lrs20000006  lrs20000008  lrs20000010  lrs20000012  lrs20000014

The VIRUS directories for 20191026
virus0000001  virus0000003  virus0000005  virus0000007	virus0000009  virus0000011  virus0000013  virus0000015
virus0000002  virus0000004  virus0000006  virus0000008	virus0000010  virus0000012  virus0000014

 
Notice that the Date file overrides the command line argument.

Here I collect some example of using lvd on different machine. As with most of my het tools, we use the BaseDir file to locate the top directory of the het data being surveyed, and the Date file to specify the date we are concerned with.

 
 
I keep data on my sco2019 machine in:
For LRS2 sample data: 
% ls /media/sco/DataDisk1/sco/AD/HET_work/HET_acm+lrs2/oct2017_eng 
20171007/  20171008/  20171009/  20171010/
 
For VIRUSsample data:
% ls /media/sco/DataDisk1/sco/AD/VIRDATA 
20191023/ 

Example 1: 
% cat BaseDir 
/media/sco/DataDisk1/sco/AD/HET_work/HET_acm+lrs2/oct2017_eng
% cat Date 
20171009
% lvd any_string 

The LRS2 directories for 20171009 are: 
lrs20000001  lrs20000004  lrs20000008  lrs20000011  lrs20000014  lrs20000017  lrs20000020  lrs20000023	lrs20000026
lrs20000002  lrs20000005  lrs20000009  lrs20000012  lrs20000015  lrs20000018  lrs20000021  lrs20000024	lrs20000027
lrs20000003  lrs20000007  lrs20000010  lrs20000013  lrs20000016  lrs20000019  lrs20000022  lrs20000025	lrs20000028
No virus directory is present. 

If I delete the date file, I can enter a date on the command line:
% lvd 20171010 

The LRS2 directories for 20171010 are: 
lrs20000001  lrs20000003  lrs20000005  lrs20000007  lrs20000010  lrs20000012
lrs20000002  lrs20000004  lrs20000006  lrs20000008  lrs20000011  lrs20000013
No virus directory is present. 

Example 2:
% cat BaseDir 
/media/sco/DataDisk1/sco/AD/VIRDATA
% lvd 20191023 
No lrs2 directory is present. 

The VIRUS directories for 20191023 are: 
virus0000001

Example 3: 
I can run a more routine exampple on mcs: 
[astronomer@mcs ~]$ cat BaseDir 
/hetdata/data
[astronomer@mcs ~]$ cat Date 
20200902
[astronomer@mcs ~]$ lvd any 

The LRS2 directories for 20200902 are: 
lrs20000001  lrs20000004  lrs20000007  lrs20000010  lrs20000013  lrs20000016  lrs20009902
lrs20000002  lrs20000005  lrs20000008  lrs20000011  lrs20000014  lrs20009900  lrs20009903
lrs20000003  lrs20000006  lrs20000009  lrs20000012  lrs20000015  lrs20009901

The VIRUS directories for 20200902 are: 
virus0000001  virus0000005  virus0000009  virus0000013	virus0000017  virus0000021  virus0000025  virus0000029	virus0009901
virus0000002  virus0000006  virus0000010  virus0000014	virus0000018  virus0000022  virus0000026  virus0000030	virus0009902
virus0000003  virus0000007  virus0000011  virus0000015	virus0000019  virus0000023  virus0000027  virus0006000	virus0009903
virus0000004  virus0000008  virus0000012  virus0000016	virus0000020  virus0000024  virus0000028  virus0009900


I use this routine a lot when I observe to determine which obs number will be used for the next image set I am taking. If nothing else, we can use lvd to confirm that our values in BaseDir and Date are valid.




Back to calling page