mkProfile
changeset 37 40d85448debf
parent 33 307630665c6c
child 39 3bddaa514ef5
equal deleted inserted replaced
36:515b06dae59c 37:40d85448debf
     1 #!/usr/bin/perl
     1 #!/usr/bin/perl
     2 #======================================================================
     2 #======================================================================
     3 #                    M K P R O F I L E 
     3 #                    M K P R O F I L E 
     4 #                    doc: Sun Jan 19 18:55:26 2003
     4 #                    doc: Sun Jan 19 18:55:26 2003
     5 #                    dlm: Thu Mar 17 07:41:03 2016
     5 #                    dlm: Mon Sep 12 14:02:24 2016
     6 #                    (c) 2003 A.M. Thurnherr
     6 #                    (c) 2003 A.M. Thurnherr
     7 #                    uE-Info: 93 35 NIL 0 0 72 0 2 4 NIL ofnI
     7 #                    uE-Info: 94 26 NIL 0 0 72 0 2 4 NIL ofnI
     8 #======================================================================
     8 #======================================================================
     9 
     9 
    10 # Make an LADCP Profile by Integrating W (similar to Firing's scan*).
    10 # Make an LADCP Profile by Integrating W (similar to Firing's scan*).
    11 
    11 
    12 # HISTORY:
    12 # HISTORY:
    89 #	May 24, 2014: - finally added (gimbal-)pitch & roll to default output
    89 #	May 24, 2014: - finally added (gimbal-)pitch & roll to default output
    90 #				  - renamed heading to hdg and pitchroll to tilt
    90 #				  - renamed heading to hdg and pitchroll to tilt
    91 #	Mar 22, 2015: - made it work for moored time series as well
    91 #	Mar 22, 2015: - made it work for moored time series as well
    92 #	Mar 17, 2015: - adapted to new Getopt library
    92 #	Mar 17, 2015: - adapted to new Getopt library
    93 #				  - removed warning
    93 #				  - removed warning
       
    94 #	Sep 12, 2016: - added %PD0_file
    94 
    95 
    95 # NOTES:
    96 # NOTES:
    96 #	- the battery values are based on transmission voltages (different
    97 #	- the battery values are based on transmission voltages (different
    97 #	  from battery voltages) and reported without units (raw 8-bit a2d
    98 #	  from battery voltages) and reported without units (raw 8-bit a2d
    98 #	  values)
    99 #	  values)
   718 			   "start_time{$dta{ENSEMBLE}[$firstgood]->{TIME}} " .
   719 			   "start_time{$dta{ENSEMBLE}[$firstgood]->{TIME}} " .
   719 			  "bottom_time{$dta{ENSEMBLE}[$atbottom]->{TIME}} " .
   720 			  "bottom_time{$dta{ENSEMBLE}[$atbottom]->{TIME}} " .
   720 				 "end_time{$dta{ENSEMBLE}[$lastgood]->{TIME}} " .
   721 				 "end_time{$dta{ENSEMBLE}[$lastgood]->{TIME}} " .
   721 	  "bottom_xmit_voltage{$dta{ENSEMBLE}[$atbottom]->{ADC_XMIT_VOLTAGE}} " .
   722 	  "bottom_xmit_voltage{$dta{ENSEMBLE}[$atbottom]->{ADC_XMIT_VOLTAGE}} " .
   722 	  "bottom_xmit_current{$dta{ENSEMBLE}[$atbottom]->{ADC_XMIT_CURRENT}} " .
   723 	  "bottom_xmit_current{$dta{ENSEMBLE}[$atbottom]->{ADC_XMIT_CURRENT}} " .
       
   724 				 "PD0_file{$ARGV[0]} " .
   723 		 "pinging_duration{%.1f} " .
   725 		 "pinging_duration{%.1f} " .
   724 			"cast_duration{%.1f} " .
   726 			"cast_duration{%.1f} " .
   725 		   "0.8_valid_bins{%.1f} " .
   727 		   "0.8_valid_bins{%.1f} " .
   726 		  "0.8_valid_range{%.1f} " .
   728 		  "0.8_valid_range{%.1f} " .
   727 				"max_depth{%.1f} " .
   729 				"max_depth{%.1f} " .