NAME
recover_netmag - takes input db and appends missing netmags from external catalogs
SYNOPSIS
recover_netmag [-v] db1 [db2 ...]
SUPPORT
Contributed code: NO BRTT support.
THIS PIECE OF SOFTWARE WAS CONTRIBUTED BY THE ANTELOPE USER COMMUNITY. BRTT DISCLAIMS ALL OWNERSHIP, LIABILITY, AND SUPPORT FOR THIS PIECE OF SOFTWARE.
FOR HELP WITH THIS PIECE OF SOFTWARE, PLEASE CONTACT THE CONTRIBUTING AUTHOR.
DESCRIPTION
Program takes input db origin table, which is no-joined to netmag. Next it searches the
list of catalogs to see if there are any missing netmags. Program updates the
netmag table as necessary.
The process is repeated for
db2.origin and subsequent dbs if listed in argument list.
This program is designed to be used during the verification stage of an analyst review.
This program is created to harmonize databases created before netmag was in general use
with updated catalogs. In the case of usarray, it was necessary for all dbs prior to 2009.
OPTIONS
ENVIRONMENT
Needs to have sourced $ANTELOPE/setup.csh.
PARAMETER FILE
-
local_auth
Regex for local author
-
netmag
list of catalogs to search
-
auth
array of authors matched to catalogs
EXAMPLE PARAMETER FILE
local_auth ^ANF.*|^UCSD.*|^local.*|^tele.*|^casc.*
netmag &Tbl{
/anf/shared/catalogs/aeic/aeic_2009
/anf/shared/catalogs/cit/cit_2008
/anf/shared/catalogs/cit/cit_2009
/anf/shared/catalogs/emsc/emsc_2009
/anf/shared/catalogs/lcsn/lcsn_2009
/anf/shared/catalogs/mtech/mtech_2009
/anf/shared/catalogs/ncec/ncec_2009
/anf/shared/catalogs/nesn/nesn_2009
/anf/shared/catalogs/nmsn/nmsn_2009
/anf/shared/catalogs/nrcan/nrcan_2009
/anf/shared/catalogs/pgc/pgc_2009
anf/shared/catalogs/pnsn/pnsn_2009
/anf/shared/catalogs/qed/mines
/anf/shared/catalogs/qed/pde
/anf/shared/catalogs/qed/qed_weekly_gt2009
/anf/shared/catalogs/unr/unr_2009
/anf/shared/catalogs/utah/utah_2009
/anf/shared/catalogs/utah/yellowstone_2009
}
auth &Arr{
CERI nmsn
GSC nrcan
LCSN lcsn
MTECH mtech
NBE unr
NCEDC ncec
NCSN ncec
NEIC qed
NMSN nmsn
PGC pgc
PNSN pnsn
QED qed
SCSN cit
UNR unr
UTAH utah
UUSS utah
cit cit
}
RETURN VALUES
0 if successful, 1 if not.
BUGS AND CAVEATS
AUTHOR
Frank Vernon
Antelope User Group Contributed Software