Maintaining NCSN Instrument Responses (BG/NC/NP/NN/PG/WR)

- Hardware:
-----------
	
+ datlog.NC.tbl file:

1.- Run '/home/dcmgr/responses/NCSN/MakeDatlog -f datlog.NC.tbl > 
	/home/dcmgr/responses/NCSN/Hardware/datlog.NC.tbl'.
2.- Populate multiple-sites dataloggers in database by using the program:
	'/home/dcmgr/responses/NCSN/util/Populate_Datalogger "datlog.tbl"'.
	Please note that the file "datlog.tbl" should ONLY contain the new dataloggers
	that need to be added to the database.

+ Sensor class file:

1.- Run 'mv "name".stbl /home/dcmgr/responses/NCSN/Hardware/"name".stbl'.

+ Preamplifier class file:

1.- Run 'mv "name".ptbl /home/dcmgr/responses/NCSN/Hardware/"name".ptbl'.

- Spreadsheet:
--------------

+ To update the NCSN instrument responses:

1.- Go into /home/dcmgr/responses/NCSN/.
2.- Retrieve new spreadsheet.
3.- Run 'csvDiff.csh "old spreadsheet" "new spreadsheet"' to create the file 'sta.updated'.
4.- Run 'Update_NC.csh "NC Spreadsheet (.csv) File" sta.updated' with the latest version
	of the spreadsheet.
5.- Take a look at 'error.NC.log."NC Spreadsheet (.csv) File"' to see if
	any errors occurred. Forward the errors to Lynn (dietz@usgs.gov).
	Also run GetError.csh to find any HT population errors.
	(This program generates HT as well as IR information)
6.- Run '$ORACLE_HOME/sqlplus /nolog @Update_Sensor_Names.sql'.
7.- Run '$ORACLE_HOME/sqlplus /nolog @FixNet_Id.sql'.

Note:	If anything goes wrong in the incremental population, you can always
	edit the 'Version' file and set it up to '1900/01/01' for example.
	You can then run 'Update_NC.csh' with the last version of the
	spreadsheet to populate all the completed channels.

- Refresh the Cosmos tables:
     cd /home/dcmgr/responses/Cosmos/txt2xml/
     ./Build_NCSN.csh "ncsnYYYYMMDD"
     cd ..
     ./Update_NCSN.csh
     grep ORA *.log
     $ORACLE_HOME/sqlplus /nolog @Update_DB.sql
     
- Regenerate the products accordingly.