* Hypoinverse startup file for NCSN for SEED station files
* Requires hyp 1.41 and uses 5th generation station delay files
* Uses gain history from cal file, no attenuation history is used
* To run this file with the hyp command "ini" put a statement like this in your
* .cshrc file: 
*
* puna:    setenv HYPINITFILE1.4 /home/calnet/klein/hypfiles/cal20001.4.hyp
* andreas:  setenv HYPINITFILE1.4 /home/ehz/klein/hypfiles/cal20001.4.hyp
*
200 T 1900 0				/Enable yr 2000 formats
LET 5 2 3 2 2				/Use new, longer SEED station codes
VER 'NC' '06'				/Processing domain and version, changed to 06 in 2019/07/xx
* STATION DATA
******* YOU MUST READ STATIONS BEFORE USING THE ATE, DEL, FMC OR XMC COMMANDS.
*RST './hypoinverse/hypfiles/allsta1.5.bin'   /Read binary file of all stations.
H71 1 1 3					/use new station file format
STA './hypoinverse/hypfiles/allseed.sta'     /Read ASCII file of all stations.
*
XMC './hypoinverse/hypfiles/all2000seed.xmc' T 0 /Read XMAG cors, use all data
FMC './hypoinverse/hypfiles/all2000seed.fmc' T 0 /Read FMAG cors, use all data
UNK 6 'IRG1' 'IRG2' 'IRG3' 'IRGE' 'WWVB' 'IRG '	/CUSP phony station codes
*
* MULTIPLE CRUSTAL MODELS
*RCR './hypoinverse/hypfiles/multmod1.5.bin'	/Read all model info in binary
* READ MODELS AND DELAYS IN ASCII:
@multmod5a.hyp
*
* MAGNITUDE CHOICES
MAG 1 T 3 1				/Use Eaton for Fmag1, Hirshorn for Fmag2
DUR -.81 2.22 0 .0011 0, 5*0, 9999 1	/Set Eaton's new magnitude constants
DU2 .005 40, .0006 350, .014 10		/Extra dist & depth terms for Eaton
DUB -2.06 2.95 0 .001 0, 5*0, 9999 1	/Zmag of Hirshorn; use -2.06=-.71-1.35
* -1.35 compensates for the 1.35 gain corr used for the 42db Z stations
DUG 5 'EHZ' 'ELZ' 'ELE' 'ELN' 'SHZ'  	/Only apply dur mag gain corrs to these
* FC1 'D' 4 'EHZ' 'SHZ' 'HHZ' 'BHZ'     /comps for FMAG1 prior to 2022/11/30
FC1 'D' 5 'EHZ' 'SHZ' 'HHZ' 'BHZ' 'DPZ' /comps for FMAG1 after 2022/11/30
* EHZ Nanometrics: same as (renamed) VDZ but EHZ has no duration gain correction
FC2 'Z' 1 'ELZ'				/Use lowgain verts for FMAG2=Zmag
XMT 2 1 /Use Mx for xmag1 and ML for xmag2. If amptype is unlabeled, use comps
* XMAG comps
XC1 'X' 7 'EHZ' 'ELZ' 'ELE' 'ELN' 'EHN' 'EHE' 'SHZ'
XC2 'L' 4 'WLN' 'WLE' 'HHN' 'HHE' 	/LOCAL MAG (ML) comps
* Use BKY's Nordquist logA0 relation for the WA & synthetic WA components
LA0 6 'WLN' 4, 'WLE' 4, 'BHN' 4, 'BHE' 4, 'HHN' 4, 'HHE' 4
FCM 3 'ELZ' -.06 'ELE' -.30 'ELN' -.30	/Comp corrections for Eaton Fmags
XCM 3 'EHZ' .33 'VLZ' .20 'SHZ' .33 /Component corrs for Eaton Xmags
* Preferred mag, min readings, mag range. In pref order.
* revised PRE line for RT system, trying to limit bogus Mds with few noisy stations 2011/03/03
* PRE 6, 3 0 3 9, 1 1 0 9, 2 1 0 9, 4 4 4 9, 3 0 0 9, 4 0 0 9 /Preferred mags (Fred's default)
PRE 2, 1 3 2.5 9, 1 1 0 2.5 /NCSS RT-settings
*
* STANDARD CHOICES FOR CALNET
RMS 4 .10 2 3				/Residual weighting
ERR .10					/Standard timing error
POS 1.78				/P to S ratio
REP T F			/Log events to terminal; don't print unweighted stations
JUN T					/Force location of junk events
MIN 4					/Min number of stations
NET 2					/Use California region codes
ZTR 5					/Trial depth
DI1 1 50 3 6				/Initial Distance weighting
DIS 4 15 3.5 7				/Main Distance weighting
WET 1. .5 .2 .1				/Weights for P weight codes 0-3
DAM 7. 30. 0.5 0.9 0.012 0.02 0.6 50. 1000. / Iteration controls, change D2FAR to 1000. from default 250.
*
* OUTPUT FORMAT
ERF T					/Send error messages to terminal
TOP F					/No page ejects
LST 1 1 0				/No station list or models in printfile
KPR 2					/Medium print output each event
*
*DID 28 'A'	/Translation of CUSP digitizer codes to data source codes
* These translations are only used in the CUSP mem file reading 
*DIG 01 07 'NTL' 'N' 'T2 ' '2' 'ECL' 'E' 'ML1' 'Q' 'CH1' 'K' 'T1 ' '1' 'FM ' 'F'
*DIG 08 14 'FM3' 'F' 'FT3' 'F' 'OBI' 'C' 'XOB' 'C' 'IM1' 'I' 'IM4' 'S' 'IM2' 'Z'
*DIG 15 21 'IM3' 'V' 'HRX' 'X' 'BM1' 'X' 'WH1' 'X' 'DWR' 'D' 'IM5' 'G' 'GP1' 'C'
*DIG 22 28 'SM1' 'L' 'TM1' '1' 'VP1' '3' 'LL1' '5' 'FP1' '6' 'HO1' '7' 'IM6' 'g'
*
******* YOU SHOULD USE THE ATE COMMAND WITH THE DATE AND TIME OF YOUR FIRST EQ.
******* USING A YEAR OF 0 (THE ATE COMMAND BELOW NOT COMMENTED OUT) WILL ALWAYS
******* WORK, BUT IS INEFFICIENT.
*
******* AN EASY WAY IS TO USE THE ATE COMMAND BELOW WITH A 0 YEAR, THEN
******* FOLLOW THIS COMMAND FILE WITH YOUR OWN ATE COMMAND:
*******  ATE 1* 1984 1 1 0 0    THIS REREADS THE STANDARD FILE BUT LOADS
******* ATTENUATIONS FROM YOUR STARTING DATE.
*
*ATE './hypoinverse/hypfiles/all2000seed.atn' 1984 1 1 0 0 /Put date of your first eq here
CAL './hypoinverse/hypfiles/all2000seed.cal' 0	/Load cal factors for digital stations
* ATE './hypoinverse/hypfiles/all2000seed.atn' 0	/Use this if first date is unknown
*
* Now add your PHS (COP), ARC (CAR), SUM, MFL, PRT and LOC commands...
* (Use  H71 1 3 1  if you are reading an archive file (COP 3 or COP 5))
* Default format is archive with shadow cards:
COP 3
CAR 1
*