<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki-locl.eri.ucsb.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Kirk+ireson</id>
	<title>Locl - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki-locl.eri.ucsb.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Kirk+ireson"/>
	<link rel="alternate" type="text/html" href="https://wiki-locl.eri.ucsb.edu/Special:Contributions/Kirk_ireson"/>
	<updated>2026-05-10T10:23:48Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.34.0</generator>
	<entry>
		<id>https://wiki-locl.eri.ucsb.edu/index.php?title=CalCOFI_Drifter_Realtime_Webpage_Info&amp;diff=11</id>
		<title>CalCOFI Drifter Realtime Webpage Info</title>
		<link rel="alternate" type="text/html" href="https://wiki-locl.eri.ucsb.edu/index.php?title=CalCOFI_Drifter_Realtime_Webpage_Info&amp;diff=11"/>
		<updated>2009-06-26T21:03:53Z</updated>

		<summary type="html">&lt;p&gt;Kirk ireson: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;h1&amp;gt;CalCOFI SVP Drifter Realtime Webpage Wiki&amp;lt;/h1&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NOTES AND THINGS TO KNOW ABOUT THE SVP REALTIME PAGE&amp;lt;br&amp;gt;&lt;br /&gt;
Jun, 2009 Kirk&lt;br /&gt;
&lt;br /&gt;
Webpage:&lt;br /&gt;
[http://www.icess.ucsb.edu/drifter/realtime-SVP/ SVP Realtime Page]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three main parts needed to display the data (details below):&amp;lt;br&amp;gt;&lt;br /&gt;
1. Fetching the data (using Python script running on dub-locl)&amp;lt;br&amp;gt;&lt;br /&gt;
2. Parsing the data (using PHP script running on website)&amp;lt;br&amp;gt;&lt;br /&gt;
3. Displaying the data (using Javascript running on your browser)&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;1. FETCHING THE DATA&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On dub-locl.icess.ucsb.edu in /localhome/kirk/scripts/ there is a script 'expect_script_to_fetch_argos_data.py'.  It uses 'pexpect', a Python version of the 'expect' scripts, which allows you to script what would normally be an interactive terminal session.  This is necessary in this case because we have to obtain the data via a telnet session.&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;There is essentially nothing to configure it, and it's well documented should you need to change anything.  It is set to fetch the last 24hours worth of positions.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;It may need to be updated with drifter numbers as more are sent drifting.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;It is set to run every 6 hours via a &amp;quot;cron job&amp;quot; in the kirk account.  To edit this job, as kirk, at the Terminal, type 'crontab -e' and use 'vi' style editing commands, or 'crontab -l' to just show it.  (To become kirk, login as drift, then in a Terminal, type 'sudo su -' (then type the drift password) to become root, then 'su kirk' to become kirk.)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;It saves the output of this session to /home/locl/file_sharing/SVP_CALCOFI_LATEST_DATA.txt on the ICESS network (which is accessed on dub-locl via /mnt/locl/, which should be mounted automatically if the system reboots, see /etc/fstab)&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;2. PARSING THE DATA&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When someone visits the webpage (http://www.icess.ucsb.edu/drifter/realtime-SVP/), in the ajax.js file there is instruction to fetch the data. This 'fetch' is accomplished by calling 'parse_argos_data.php' in that directory.  This php script reads the file saved above (in /home/locl/), ignores all the non-data lines, and processes/cleans up the crazy ARGOS format output from the telnet session.&lt;br /&gt;
&lt;br /&gt;
It outputs 1 record per position report in this format:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
drift_no,YY-MM-DD,HH:MM:SS,milliseconds_since_Jan01_1970,orig_report_num,lat,lon,position_type(1=GPS,0=ARGOS),SST(C),batt(V),base_time,record_num&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
e.g.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
75428,2007-04-03,10:33:37,1175610817000,137,+26.6979,-081.9557,1,NaN,12.4,2007-04-03_11:33:30,2    (a gps position)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;There is very little configuring it, and it's well documented should you need to change anything.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Its output can be seen easily:&lt;br /&gt;
http://www.icess.ucsb.edu/drifter/realtime-SVP/parse_argos_data.php&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;3. DISPLAYING THE DATA   (at [http://www.icess.ucsb.edu/drifter/realtime-SVP/ realtime page]) &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Google mapping code was adapted from the Iridium/Microstar realtime page at http://www.icess.ucsb.edu/drifter/realtime/&lt;br /&gt;
&lt;br /&gt;
The two main javascript files are ajax.js and map.js.&lt;br /&gt;
&lt;br /&gt;
The javascript files are compressed using http://www.icess.ucsb.edu/drifter/realtime/JavascriptCompressor.html, so changes made to the xxx__UNCOMPRESSED__.js files won't show up on the page unless they are compressed and saved without the &amp;quot;__UNCOMPRESSED__&amp;quot; portion in the name, OR at the beginning of index.php those two types of files are commented/uncommented out as appropriate.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; POTENTIAL PROBLEMS / TROUBLESHOOTING&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Prob: The data file (/home/locl/file_sharing/SVP_CALCOFI_LATEST_DATA.txt) is not getting saved/updated&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Is the dub-locl computer up?&lt;br /&gt;
&amp;lt;li&amp;gt;Is /mnt/locl mounted on dub-locl? It should come up automatically&lt;br /&gt;
&amp;lt;li&amp;gt;Has 6 hours passed since the last time it ran? It only runs every 6 hours&lt;br /&gt;
&amp;lt;li&amp;gt;Try fetching the data yourself via telnet (do these commands at a terminal prompt):&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
telnet datadist.argosinc.com&lt;br /&gt;
hansen     (at the 'Username:' prompt)&lt;br /&gt;
aomlus     (at the 'Password:' prompt)&lt;br /&gt;
prv,7325,ds,,93561-93587   (at the '/' prompt, to get the previous 9 day's worth of data for drifter #93561-93587 )   &lt;br /&gt;
lo   (at the '/' prompt, to log out)  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NOTE: if you want to get data from a specific time period, use julian dates and GMT hours after the comma after 'ds'.&lt;br /&gt;
For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
prv,7325,ds,174/12-175/10,93561-93587   (for June 23rd at 12Z through June 24th at 10Z)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Prob: The data file (/home/locl/file_sharing/SVP_CALCOFI_LATEST_DATA.txt) shows no data&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;There probably aren't any drifters talking in the last 24hours (look for the line &amp;quot;No data available or authorization failure&amp;quot; in the file or try manually getting the data)&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&amp;lt;h2&amp;gt;INFO ABOUT TIME CALCULATION&amp;lt;/h2&amp;gt;&lt;br /&gt;
Basically each data block is for three hourly reports, and data blocks can be repeated (I&lt;br /&gt;
have no idea how that's determined), and there is a slight adjustment&lt;br /&gt;
to the time based on &amp;quot;fix delay&amp;quot; (or &amp;quot;Length of Acquisition&amp;quot;, which is&lt;br /&gt;
usually on the order of &amp;lt;60 seconds).&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
For example (showing the second to last block in the existing file as&lt;br /&gt;
I write this):&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
07325 93575  15 27 N 3 2009-06-25 20:18:59  34.416  240.156  0.000 401652653&lt;br /&gt;
      2009-06-25 20:21:22  3         12           62          678           94&lt;br /&gt;
                                     00           01       344156           01&lt;br /&gt;
                                1198452           01           04          689&lt;br /&gt;
                                     01       344155           01      1198448&lt;br /&gt;
                                     01           04          661           01&lt;br /&gt;
                                 344156           01      1198448           01&lt;br /&gt;
                                     04          587           00&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
This *first line* contains ARGOS only info:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
prog_num                     07325&lt;br /&gt;
drift_num                    93575&lt;br /&gt;
lines_in_sat_pass          15&lt;br /&gt;
num_sensors                27&lt;br /&gt;
sat_name                            N&lt;br /&gt;
resolution                          3&lt;br /&gt;
time            2009-06-25 20:18:59&lt;br /&gt;
xmit_lat                     34.416&lt;br /&gt;
xmit_lon                   240.156&lt;br /&gt;
xmit_alt                      0.000&lt;br /&gt;
xmit_freq              401652653&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The next 7 lines contain 3, hourly GPS reports.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
---- Line 1:  (2009-06-25 20:21:22  3     12      62       678        94)&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
BASE Date/Time                  2009-06-25 20:21:22&lt;br /&gt;
# identical messages rcvd                       3&lt;br /&gt;
Drogue count over last half hour               12&lt;br /&gt;
Battery voltage = n * 0.2                 62   -&amp;gt; 12.4V&lt;br /&gt;
SST(C) = x * 0.043 - 5                   678   -&amp;gt; 24.154&lt;br /&gt;
Checksum                                       94&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
---- Line 2:  (00      01    344156        01)&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Msg ID                                   00   -&amp;gt; this is 1st message sent&lt;br /&gt;
Valid Pos #1 (1=good, 0=bad)             01   -&amp;gt; good&lt;br /&gt;
Lat #1 (ten-thousandths of degree)    344156  -&amp;gt; 34.4156&lt;br /&gt;
Lat #1 Ref (0 = South, 1 = North)        01   -&amp;gt; North&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
---- Line 3:  (1198452      01        04       689)&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lon #1 (ten-thousandths of degree)     1198452 -&amp;gt; 119.8452&lt;br /&gt;
Lon #1 Ref (0 = East, 1 = West)           01   -&amp;gt; West&lt;br /&gt;
Pos #1 Length of Acq (seconds = n * 4)    04   -&amp;gt; 16(seconds)&lt;br /&gt;
SST #1 (C) = x * 0.043 - 5                689  -&amp;gt; 24.627&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
---- Line 4:  (01  344155        01   1198448)&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Valid Pos #2 (1=good, 0=bad)                01 -&amp;gt; good&lt;br /&gt;
Lat #2 (ten-thousandths of degree)     344155  -&amp;gt; 34.4155&lt;br /&gt;
Lat #2 Ref  (0 = South, 1 = North)         01  -&amp;gt; North&lt;br /&gt;
Lon #2 (ten-thousandths of degree)     1198448 -&amp;gt; 119.8448&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
---- Line 5:  (01      04       661        01)&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lon #2 Ref (0 = East, 1 = West)         01   -&amp;gt; West&lt;br /&gt;
Pos #2 Length of Acq (seconds = n * 4)  04   -&amp;gt; 16(seconds)&lt;br /&gt;
SST #2  (C) = x * 0.043 - 5             661  -&amp;gt; 23.423&lt;br /&gt;
Valid Pos #3 (1=good, 0=bad)            01   -&amp;gt; good&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
---- Line 6:  (344156      01   1198448        01)&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lat #3 (ten-thousandths of degree)   344156  -&amp;gt; 34.4156&lt;br /&gt;
Lat #3 Ref  (0 = South, 1 = North)        01 -&amp;gt; North&lt;br /&gt;
Lon #3 (ten-thousandths of degree)   1198448 -&amp;gt; 119.8448&lt;br /&gt;
Lon #3 Ref (0 = East, 1 = West)         01   -&amp;gt; West&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
---- Line 7:  (04     587        00)&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Pos #3 Length of Acq (seconds = n * 4)   04   -&amp;gt; 16(seconds)&lt;br /&gt;
SST #3  (C) = x * 0.043 - 5              587  -&amp;gt; 20.241&lt;br /&gt;
Null bits                      (only for padding, ignore)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;NOTES:&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
-Total bit count (a very non trivial calculation) of all 7 lines must equal the checksum value or&lt;br /&gt;
message block is considered garbled and thus ignored.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
-Times of GPS reports are calculated thusly:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
1) Take BASE time, subtract (Msg ID*3)   [that is, if message has been&lt;br /&gt;
repeated, it is at least 3 hours old -- I have a switch in my code&lt;br /&gt;
(it's turned on for now) which will ignore messages with a message&lt;br /&gt;
ID&amp;gt;0 because the original may be also present, and it's possible the&lt;br /&gt;
duplicate isn't an exact duplicate and then you get slightly different&lt;br /&gt;
reports at similar times]&amp;lt;br&amp;gt;&lt;br /&gt;
2) Then, subtract 2 hours for Pos #3, and 1 hour for Pos #2 and 0 for Pos #1&amp;lt;br&amp;gt;&lt;br /&gt;
3) Then subtract the associated small &amp;quot;Length of Acq&amp;quot;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Thus, the 2nd GPS time (i.e. #2) would be calculated thusly:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
BASE time: 2009-06-25 20:21:22&lt;br /&gt;
minus 0 hours (because Msg ID is 0)&lt;br /&gt;
minus 1 hour (because it's Pos #2)&lt;br /&gt;
minus (pos #2 length of acq) 16 seconds&lt;br /&gt;
&lt;br /&gt;
equals:  2009-06-25 19:21:06&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
An additional wacky thing is that due to repetition of the messages,&lt;br /&gt;
or god knows what, the calculations of the reports you see aren't&lt;br /&gt;
necessarily in chronological order. So, after doing all the&lt;br /&gt;
calculations, I then sort them chronologically before outputting&lt;br /&gt;
(within the parse_argos_data.php script), so that when showing the&lt;br /&gt;
track lines, the points are in order.&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kirk ireson</name></author>
		
	</entry>
	<entry>
		<id>https://wiki-locl.eri.ucsb.edu/index.php?title=CalCOFI_Drifter_Realtime_Webpage_Info&amp;diff=10</id>
		<title>CalCOFI Drifter Realtime Webpage Info</title>
		<link rel="alternate" type="text/html" href="https://wiki-locl.eri.ucsb.edu/index.php?title=CalCOFI_Drifter_Realtime_Webpage_Info&amp;diff=10"/>
		<updated>2009-06-26T20:44:29Z</updated>

		<summary type="html">&lt;p&gt;Kirk ireson: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;h1&amp;gt;CalCOFI SVP Drifter Realtime Webpage Wiki&amp;lt;/h1&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NOTES AND THINGS TO KNOW ABOUT THE SVP REALTIME PAGE&amp;lt;br&amp;gt;&lt;br /&gt;
Jun, 2009 Kirk&lt;br /&gt;
&lt;br /&gt;
Webpage:&lt;br /&gt;
[http://www.icess.ucsb.edu/drifter/realtime-SVP/ SVP Realtime Page]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three main parts needed to display the data (details below):&amp;lt;br&amp;gt;&lt;br /&gt;
1. Fetching the data (using Python script running on dub-locl)&amp;lt;br&amp;gt;&lt;br /&gt;
2. Parsing the data (using PHP script running on website)&amp;lt;br&amp;gt;&lt;br /&gt;
3. Displaying the data (using Javascript running on your browser)&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;1. FETCHING THE DATA&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On dub-locl.icess.ucsb.edu in /localhome/kirk/scripts/ there is a script 'expect_script_to_fetch_argos_data.py'.  It uses 'pexpect', a Python version of the 'expect' scripts, which allows you to script what would normally be an interactive terminal session.  This is necessary in this case because we have to obtain the data via a telnet session.&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;There is essentially nothing to configure it, and it's well documented should you need to change anything.  It is set to fetch the last 24hours worth of positions.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;It may need to be updated with drifter numbers as more are sent drifting.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;It is set to run every 6 hours via a &amp;quot;cron job&amp;quot; in the kirk account.  To edit this job, as kirk, at the Terminal, type 'crontab -e' and use 'vi' style editing commands, or 'crontab -l' to just show it.  (To become kirk, login as drift, then in a Terminal, type 'sudo su -' (then type the drift password) to become root, then 'su kirk' to become kirk.)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;It saves the output of this session to /home/locl/file_sharing/SVP_CALCOFI_LATEST_DATA.txt on the ICESS network (which is accessed on dub-locl via /mnt/locl/, which should be mounted automatically if the system reboots, see /etc/fstab)&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;2. PARSING THE DATA&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When someone visits the webpage (http://www.icess.ucsb.edu/drifter/realtime-SVP/), in the ajax.js file there is instruction to fetch the data. This 'fetch' is accomplished by calling 'parse_argos_data.php' in that directory.  This php script reads the file saved above (in /home/locl/), ignores all the non-data lines, and processes/cleans up the crazy ARGOS format output from the telnet session.&lt;br /&gt;
&lt;br /&gt;
It outputs 1 record per position report in this format:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
drift_no,YY-MM-DD,HH:MM:SS,milliseconds_since_Jan01_1970,orig_report_num,lat,lon,position_type(1=GPS,0=ARGOS),SST(C),batt(V),base_time,record_num&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
e.g.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
75428,2007-04-03,10:33:37,1175610817000,137,+26.6979,-081.9557,1,NaN,12.4,2007-04-03_11:33:30,2    (a gps position)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;There is very little configuring it, and it's well documented should you need to change anything.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Its output can be seen easily:&lt;br /&gt;
http://www.icess.ucsb.edu/drifter/realtime-SVP/parse_argos_data.php&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;3. DISPLAYING THE DATA   (at [http://www.icess.ucsb.edu/drifter/realtime-SVP/ realtime page]) &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Google mapping code was adapted from the Iridium/Microstar realtime page at http://www.icess.ucsb.edu/drifter/realtime/&lt;br /&gt;
&lt;br /&gt;
The two main javascript files are ajax.js and map.js.&lt;br /&gt;
&lt;br /&gt;
The javascript files are compressed using http://www.icess.ucsb.edu/drifter/realtime/JavascriptCompressor.html, so changes made to the xxx__UNCOMPRESSED__.js files won't show up on the page unless they are compressed and saved without the &amp;quot;__UNCOMPRESSED__&amp;quot; portion in the name, OR at the beginning of index.php those two types of files are commented/uncommented out as appropriate.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; POTENTIAL PROBLEMS / TROUBLESHOOTING&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Prob: The data file (/home/locl/file_sharing/SVP_CALCOFI_LATEST_DATA.txt) is not getting saved/updated&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Is the dub-locl computer up?&lt;br /&gt;
&amp;lt;li&amp;gt;Is /mnt/locl mounted on dub-locl? It should come up automatically&lt;br /&gt;
&amp;lt;li&amp;gt;Has 6 hours passed since the last time it ran? It only runs every 6 hours&lt;br /&gt;
&amp;lt;li&amp;gt;Try fetching the data yourself via telnet (do these commands at a terminal prompt):&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
telnet datadist.argosinc.com&lt;br /&gt;
hansen     (at the 'Username:' prompt)&lt;br /&gt;
aomlus     (at the 'Password:' prompt)&lt;br /&gt;
prv,7325,ds,,93561-93587   (at the '/' prompt, to get the previous 9 day's worth of data for drifter #93561-93587 )   &lt;br /&gt;
lo   (at the '/' prompt, to log out)  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NOTE: if you want to get data from a specific time period, use julian dates and GMT hours after the comma after 'ds'.&lt;br /&gt;
For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
prv,7325,ds,174/12-175/10,93561-93587   (for June 23rd at 12Z through June 24th at 10Z)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Prob: The data file (/home/locl/file_sharing/SVP_CALCOFI_LATEST_DATA.txt) shows no data&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;There probably aren't any drifters talking in the last 24hours (look for the line &amp;quot;No data available or authorization failure&amp;quot; in the file or try manually getting the data)&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&amp;lt;h2&amp;gt;INFO ABOUT TIME CALCULATION&amp;lt;/h2&amp;gt;&lt;br /&gt;
Basically each data block is for three hourly reports, and data blocks can be repeated (I&lt;br /&gt;
have no idea how that's determined), and there is a slight adjustment&lt;br /&gt;
to the time based on &amp;quot;fix delay&amp;quot; (or &amp;quot;Length of Acquisition&amp;quot;, which is&lt;br /&gt;
usually on the order of &amp;lt;60 seconds).&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
For example (showing the second to last block in the existing file as&lt;br /&gt;
I write this):&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
07325 93575  15 27 N 3 2009-06-25 20:18:59  34.416  240.156  0.000 401652653&lt;br /&gt;
      2009-06-25 20:21:22  3         12           62          678           94&lt;br /&gt;
                                     00           01       344156           01&lt;br /&gt;
                                1198452           01           04          689&lt;br /&gt;
                                     01       344155           01      1198448&lt;br /&gt;
                                     01           04          661           01&lt;br /&gt;
                                 344156           01      1198448           01&lt;br /&gt;
                                     04          587           00&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
This *first line* contains ARGOS only info:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
prog_num                     07325&lt;br /&gt;
drift_num                    93575&lt;br /&gt;
lines_in_sat_pass          15&lt;br /&gt;
num_sensors                27&lt;br /&gt;
sat_name                            N&lt;br /&gt;
resolution                          3&lt;br /&gt;
time            2009-06-25 20:18:59&lt;br /&gt;
xmit_lat                     34.416&lt;br /&gt;
xmit_lon                   240.156&lt;br /&gt;
xmit_alt                      0.000&lt;br /&gt;
xmit_freq              401652653&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The next 7 lines contain 3, hourly GPS reports.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
---- Line 1:  (2009-06-25 20:21:22  3     12      62       678        94)&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
BASE Date/Time                  2009-06-25 20:21:22&lt;br /&gt;
# identical messages rcvd                       3&lt;br /&gt;
Drogue count over last half hour               12&lt;br /&gt;
Battery voltage = n * 0.2                 62   -&amp;gt; 12.4V&lt;br /&gt;
SST(C) = x * 0.043 - 5                   678   -&amp;gt; 24.154&lt;br /&gt;
Checksum                                       94&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
---- Line 2:  (00      01    344156        01)&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Msg ID                                   00   -&amp;gt; this is 1st message sent&lt;br /&gt;
Valid Pos #1 (1=good, 0=bad)             01   -&amp;gt; good&lt;br /&gt;
Lat #1 (ten-thousandths of degree)    344156  -&amp;gt; 34.4156&lt;br /&gt;
Lat #1 Ref (0 = South, 1 = North)        01   -&amp;gt; North&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
---- Line 3:  (1198452      01        04       689)&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lon #1 (ten-thousandths of degree)     1198452 -&amp;gt; 119.8452&lt;br /&gt;
Lon #1 Ref (0 = East, 1 = West)           01   -&amp;gt; West&lt;br /&gt;
Pos #1 Length of Acq (seconds = n * 4)    04   -&amp;gt; 16(seconds)&lt;br /&gt;
SST #1 (C) = x * 0.043 - 5                689  -&amp;gt; 24.627&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
---- Line 4:  (01  344155        01   1198448)&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Valid Pos #2 (1=good, 0=bad)                01 -&amp;gt; good&lt;br /&gt;
Lat #2 (ten-thousandths of degree)     344155  -&amp;gt; 34.4155&lt;br /&gt;
Lat #2 Ref  (0 = South, 1 = North)         01  -&amp;gt; North&lt;br /&gt;
Lon #2 (ten-thousandths of degree)     1198448 -&amp;gt; 119.8448&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
---- Line 5:  (01      04       661        01)&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lon #2 Ref (0 = East, 1 = West)         01   -&amp;gt; West&lt;br /&gt;
Pos #2 Length of Acq (seconds = n * 4)  04   -&amp;gt; 16(seconds)&lt;br /&gt;
SST #2  (C) = x * 0.043 - 5             661  -&amp;gt; 23.423&lt;br /&gt;
Valid Pos #3 (1=good, 0=bad)            01   -&amp;gt; good&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
---- Line 6:  (344156      01   1198448        01)&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lat #3 (ten-thousandths of degree)   344156  -&amp;gt; 34.4156&lt;br /&gt;
Lat #3 Ref  (0 = South, 1 = North)        01 -&amp;gt; North&lt;br /&gt;
Lon #3 (ten-thousandths of degree)   1198448 -&amp;gt; 119.8448&lt;br /&gt;
Lon #3 Ref (0 = East, 1 = West)         01   -&amp;gt; West&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
---- Line 7:  (04     587        00)&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Pos #3 Length of Acq (seconds = n * 4)   04   -&amp;gt; 16(seconds)&lt;br /&gt;
SST #3  (C) = x * 0.043 - 5              587  -&amp;gt; 20.241&lt;br /&gt;
Null bits                      (only for padding, ignore)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;NOTES:&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
-Total bit count of all 7 lines must equal the checksum value or&lt;br /&gt;
message block is considered garbled and thus ignored.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
-Times of GPS reports are calculated thusly:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
1) Take BASE time, subtract (Msg ID*3)   [that is, if message has been&lt;br /&gt;
repeated, it is at least 3 hours old -- I have a switch in my code&lt;br /&gt;
(it's turned on for now) which will ignore messages with a message&lt;br /&gt;
ID&amp;gt;0 because the original may be also present, and it's possible the&lt;br /&gt;
duplicate isn't an exact duplicate and then you get slightly different&lt;br /&gt;
reports at similar times]&amp;lt;br&amp;gt;&lt;br /&gt;
2) Then, subtract 2 hours for Pos #3, and 1 hour for Pos #2 and 0 for Pos #1&amp;lt;br&amp;gt;&lt;br /&gt;
3) Then subtract the associated small &amp;quot;Length of Acq&amp;quot;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Thus, the 2nd GPS time (i.e. #2) would be calculated thusly:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
BASE time: 2009-06-25 20:21:22&lt;br /&gt;
minus 0 hours (because Msg ID is 0)&lt;br /&gt;
minus 1 hour (because it's Pos #2)&lt;br /&gt;
minus (pos #2 length of acq) 16 seconds&lt;br /&gt;
&lt;br /&gt;
equals:  2009-06-25 19:21:06&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
An additional wacky thing is that due to repetition of the messages,&lt;br /&gt;
or god knows what, the calculations of the reports you see aren't&lt;br /&gt;
necessarily in chronological order. So, after doing all the&lt;br /&gt;
calculations, I then sort them chronologically before outputting&lt;br /&gt;
(within the parse_argos_data.php script), so that when showing the&lt;br /&gt;
track lines, the points are in order.&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kirk ireson</name></author>
		
	</entry>
	<entry>
		<id>https://wiki-locl.eri.ucsb.edu/index.php?title=CalCOFI_Drifter_Realtime_Webpage_Info&amp;diff=9</id>
		<title>CalCOFI Drifter Realtime Webpage Info</title>
		<link rel="alternate" type="text/html" href="https://wiki-locl.eri.ucsb.edu/index.php?title=CalCOFI_Drifter_Realtime_Webpage_Info&amp;diff=9"/>
		<updated>2009-06-26T19:08:48Z</updated>

		<summary type="html">&lt;p&gt;Kirk ireson: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;h1&amp;gt;CalCOFI SVP Drifter Realtime Webpage Wiki&amp;lt;/h1&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NOTES AND THINGS TO KNOW ABOUT THE SVP REALTIME PAGE&amp;lt;br&amp;gt;&lt;br /&gt;
Jun, 2009 Kirk&lt;br /&gt;
&lt;br /&gt;
Webpage:&lt;br /&gt;
[http://www.icess.ucsb.edu/drifter/realtime-SVP/ SVP Realtime Page]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three main parts needed to display the data (details below):&amp;lt;br&amp;gt;&lt;br /&gt;
1. Fetching the data (using Python script running on dub-locl)&amp;lt;br&amp;gt;&lt;br /&gt;
2. Parsing the data (using PHP script running on website)&amp;lt;br&amp;gt;&lt;br /&gt;
3. Displaying the data (using Javascript running on your browser)&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;1. FETCHING THE DATA&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On dub-locl.icess.ucsb.edu in /localhome/kirk/scripts/ there is a script 'expect_script_to_fetch_argos_data.py'.  It uses 'pexpect', a Python version of the 'expect' scripts, which allows you to script what would normally be an interactive terminal session.  This is necessary in this case because we have to obtain the data via a telnet session.&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;There is essentially nothing to configure it, and it's well documented should you need to change anything.  It is set to fetch the last 24hours worth of positions.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;It may need to be updated with drifter numbers as more are sent drifting.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;It is set to run every 6 hours via a &amp;quot;cron job&amp;quot; in the kirk account.  To edit this job, as kirk, at the Terminal, type 'crontab -e' and use 'vi' style editing commands, or 'crontab -l' to just show it.  (To become kirk, login as drift, then in a Terminal, type 'sudo su -' (then type the drift password) to become root, then 'su kirk' to become kirk.)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;It saves the output of this session to /home/locl/file_sharing/SVP_CALCOFI_LATEST_DATA.txt on the ICESS network (which is accessed on dub-locl via /mnt/locl/, which should be mounted automatically if the system reboots, see /etc/fstab)&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;2. PARSING THE DATA&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When someone visits the webpage (http://www.icess.ucsb.edu/drifter/realtime-SVP/), in the ajax.js file there is instruction to fetch the data. This 'fetch' is accomplished by calling 'parse_argos_data.php' in that directory.  This php script reads the file saved above (in /home/locl/), ignores all the non-data lines, and processes/cleans up the crazy ARGOS format output from the telnet session.&lt;br /&gt;
&lt;br /&gt;
It outputs 1 record per position report in this format:&lt;br /&gt;
drift_no,YY-MM-DD,HH:MM:SS,milliseconds_since_Jan01_1970,orig_report_num,lat,lon,position_type(1=GPS,0=ARGOS),SST(C),batt(V)&lt;br /&gt;
e.g.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
75428,2007-04-03,10:33:37,1175610817000,137,+26.6979,-081.9557,1,NaN,12.4   (a gps position)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;There is very little configuring it, and it's well documented should you need to change anything.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Its output can be seen easily:&lt;br /&gt;
http://www.icess.ucsb.edu/drifter/realtime-SVP/parse_argos_data.php&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;3. DISPLAYING THE DATA   (at [http://www.icess.ucsb.edu/drifter/realtime-SVP/ realtime page]) &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Google mapping code was adapted from the Iridium/Microstar realtime page at http://www.icess.ucsb.edu/drifter/realtime/&lt;br /&gt;
&lt;br /&gt;
The two main javascript files are ajax.js and map.js.&lt;br /&gt;
&lt;br /&gt;
The javascript files are compressed using http://www.icess.ucsb.edu/drifter/realtime/JavascriptCompressor.html, so changes made to the xxx__UNCOMPRESSED__.js files won't show up on the page unless they are compressed and saved without the &amp;quot;__UNCOMPRESSED__&amp;quot; portion in the name, OR at the beginning of index.php those two types of files are commented/uncommented out as appropriate.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; POTENTIAL PROBLEMS / TROUBLESHOOTING&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Prob: The data file (/home/locl/file_sharing/SVP_CALCOFI_LATEST_DATA.txt) is not getting saved/updated&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Is the dub-locl computer up?&lt;br /&gt;
&amp;lt;li&amp;gt;Is /mnt/locl mounted on dub-locl? It should come up automatically&lt;br /&gt;
&amp;lt;li&amp;gt;Has 6 hours passed since the last time it ran? It only runs every 6 hours&lt;br /&gt;
&amp;lt;li&amp;gt;Try fetching the data yourself via telnet (do these commands at a terminal prompt):&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
telnet datadist.argosinc.com&lt;br /&gt;
hansen     (at the 'Username:' prompt)&lt;br /&gt;
aomlus     (at the 'Password:' prompt)&lt;br /&gt;
prv,7325,ds,,93561-93587   (at the '/' prompt, to get the previous 9 day's worth of data for drifter #93561-93587 )   &lt;br /&gt;
lo   (at the '/' prompt, to log out)  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NOTE: if you want to get data from a specific time period, use julian dates and GMT hours after the comma after 'ds'.&lt;br /&gt;
For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
prv,7325,ds,174/12-175/10,93561-93587   (for June 23rd at 12Z through June 24th at 10Z)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Prob: The data file (/home/locl/file_sharing/SVP_CALCOFI_LATEST_DATA.txt) shows no data&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;There probably aren't any drifters talking in the last 24hours (look for the line &amp;quot;No data available or authorization failure&amp;quot; in the file or try manually getting the data)&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&amp;lt;h2&amp;gt;INFO ABOUT TIME CALCULATION&amp;lt;/h2&amp;gt;&lt;br /&gt;
Basically each data block is for three hourly reports, and data blocks can be repeated (I&lt;br /&gt;
have no idea how that's determined), and there is a slight adjustment&lt;br /&gt;
to the time based on &amp;quot;fix delay&amp;quot; (or &amp;quot;Length of Acquisition&amp;quot;, which is&lt;br /&gt;
usually on the order of &amp;lt;60 seconds).&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
For example (showing the second to last block in the existing file as&lt;br /&gt;
I write this):&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
07325 93575  15 27 N 3 2009-06-25 20:18:59  34.416  240.156  0.000 401652653&lt;br /&gt;
      2009-06-25 20:21:22  3         12           62          678           94&lt;br /&gt;
                                     00           01       344156           01&lt;br /&gt;
                                1198452           01           04          689&lt;br /&gt;
                                     01       344155           01      1198448&lt;br /&gt;
                                     01           04          661           01&lt;br /&gt;
                                 344156           01      1198448           01&lt;br /&gt;
                                     04          587           00&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
This *first line* contains ARGOS only info:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
prog_num                     07325&lt;br /&gt;
drift_num                    93575&lt;br /&gt;
lines_in_sat_pass          15&lt;br /&gt;
num_sensors                27&lt;br /&gt;
sat_name                            N&lt;br /&gt;
resolution                          3&lt;br /&gt;
time            2009-06-25 20:18:59&lt;br /&gt;
xmit_lat                     34.416&lt;br /&gt;
xmit_lon                   240.156&lt;br /&gt;
xmit_alt                      0.000&lt;br /&gt;
xmit_freq              401652653&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
The next 7 lines contain 3, hourly GPS reports.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
---- Line 1:  (2009-06-25 20:21:22  3     12      62       678        94)&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
BASE Date/Time                  2009-06-25 20:21:22&lt;br /&gt;
# identical messages rcvd                       3&lt;br /&gt;
Drogue count over last half hour               12&lt;br /&gt;
Battery voltage = n * 0.2                 62   -&amp;gt; 12.4V&lt;br /&gt;
SST(C) = x * 0.043 - 5                   678   -&amp;gt; 24.154&lt;br /&gt;
Checksum                                       94&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
---- Line 2:  (00      01    344156        01)&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Msg ID                                   00   -&amp;gt; this is 1st message sent&lt;br /&gt;
Valid Pos #1 (1=good, 0=bad)             01   -&amp;gt; good&lt;br /&gt;
Lat #1 (ten-thousandths of degree)    344156  -&amp;gt; 34.4156&lt;br /&gt;
Lat #1 Ref (0 = South, 1 = North)        01   -&amp;gt; North&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
---- Line 3:  (1198452      01        04       689)&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lon #1 (ten-thousandths of degree)     1198452 -&amp;gt; 119.8452&lt;br /&gt;
Lon #1 Ref (0 = East, 1 = West)           01   -&amp;gt; West&lt;br /&gt;
Pos #1 Length of Acq (seconds = n * 4)    04   -&amp;gt; 16(seconds)&lt;br /&gt;
SST #1 (C) = x * 0.043 - 5                689  -&amp;gt; 24.627&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
---- Line 4:  (01  344155        01   1198448)&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Valid Pos #2 (1=good, 0=bad)                01 -&amp;gt; good&lt;br /&gt;
Lat #2 (ten-thousandths of degree)     344155  -&amp;gt; 34.4155&lt;br /&gt;
Lat #2 Ref  (0 = South, 1 = North)         01  -&amp;gt; North&lt;br /&gt;
Lon #2 (ten-thousandths of degree)     1198448 -&amp;gt; 119.8448&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
---- Line 5:  (01      04       661        01)&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lon #2 Ref (0 = East, 1 = West)         01   -&amp;gt; West&lt;br /&gt;
Pos #2 Length of Acq (seconds = n * 4)  04   -&amp;gt; 16(seconds)&lt;br /&gt;
SST #2  (C) = x * 0.043 - 5             661  -&amp;gt; 23.423&lt;br /&gt;
Valid Pos #3 (1=good, 0=bad)            01   -&amp;gt; good&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
---- Line 6:  (344156      01   1198448        01)&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lat #3 (ten-thousandths of degree)   344156  -&amp;gt; 34.4156&lt;br /&gt;
Lat #3 Ref  (0 = South, 1 = North)        01 -&amp;gt; North&lt;br /&gt;
Lon #3 (ten-thousandths of degree)   1198448 -&amp;gt; 119.8448&lt;br /&gt;
Lon #3 Ref (0 = East, 1 = West)         01   -&amp;gt; West&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
---- Line 7:  (04     587        00)&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Pos #3 Length of Acq (seconds = n * 4)   04   -&amp;gt; 16(seconds)&lt;br /&gt;
SST #3  (C) = x * 0.043 - 5              587  -&amp;gt; 20.241&lt;br /&gt;
Null bits                      (only for padding, ignore)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;NOTES:&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
-Total bit count of all 7 lines must equal the checksum value or&lt;br /&gt;
message block is considered garbled and thus ignored.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
-Times of GPS reports are calculated thusly:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
1) Take BASE time, subtract (Msg ID*3)   [that is, if message has been&lt;br /&gt;
repeated, it is at least 3 hours old -- I have a switch in my code&lt;br /&gt;
(it's turned on for now) which will ignore messages with a message&lt;br /&gt;
ID&amp;gt;0 because the original may be also present, and it's possible the&lt;br /&gt;
duplicate isn't an exact duplicate and then you get slightly different&lt;br /&gt;
reports at similar times]&amp;lt;br&amp;gt;&lt;br /&gt;
2) Then, subtract 2 hours for Pos #3, and 1 hour for Pos #2 and 0 for Pos #1&amp;lt;br&amp;gt;&lt;br /&gt;
3) Then subtract the associated small &amp;quot;Length of Acq&amp;quot;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Thus, the 2nd GPS time (i.e. #2) would be calculated thusly:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
BASE time: 2009-06-25 20:21:22&lt;br /&gt;
minus 0 hours (because Msg ID is 0)&lt;br /&gt;
minus 1 hour (because it's Pos #2)&lt;br /&gt;
minus (pos #2 length of acq) 16 seconds&lt;br /&gt;
&lt;br /&gt;
equals:  2009-06-25 19:21:06&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
An additional wacky thing is that due to repetition of the messages,&lt;br /&gt;
or god knows what, the calculations of the reports you see aren't&lt;br /&gt;
necessarily in chronological order. So, after doing all the&lt;br /&gt;
calculations, I then sort them chronologically before outputting&lt;br /&gt;
(within the parse_argos_data.php script), so that when showing the&lt;br /&gt;
track lines, the points are in order.&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kirk ireson</name></author>
		
	</entry>
	<entry>
		<id>https://wiki-locl.eri.ucsb.edu/index.php?title=Main_Page&amp;diff=8</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki-locl.eri.ucsb.edu/index.php?title=Main_Page&amp;diff=8"/>
		<updated>2009-06-25T20:09:35Z</updated>

		<summary type="html">&lt;p&gt;Kirk ireson: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;h1&amp;gt;WELCOME TO LAGRANGIAN OCEAN CURRENTS LAB (LOCL) WIKI!&amp;lt;/h1&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Links:&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[http://www.icess.ucsb.edu/drifter Drifter Homepage]&lt;br /&gt;
&amp;lt;li&amp;gt;[http://wiki.icess.ucsb.edu/locl/index.php/HOWTO_Drifter_Data_Processing Kirk's HOWTO on Drifter Data Processing]&lt;br /&gt;
&amp;lt;li&amp;gt;[http://wiki.icess.ucsb.edu/locl/index.php/CalCOFI_Drifter_Realtime_Webpage_Info CalCOFI Drifter Realtime Webpage Info]&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h1&amp;gt;For Wiki Help See:&amp;lt;/h1&amp;gt;&lt;br /&gt;
Consult the [http://meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
&lt;br /&gt;
* [http://www.mediawiki.org/wiki/Help:Configuration_settings Configuration settings list]&lt;br /&gt;
* [http://www.mediawiki.org/wiki/Help:FAQ MediaWiki FAQ]&lt;br /&gt;
* [http://mail.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]&lt;/div&gt;</summary>
		<author><name>Kirk ireson</name></author>
		
	</entry>
	<entry>
		<id>https://wiki-locl.eri.ucsb.edu/index.php?title=CalCOFI_Drifter_Realtime_Webpage_Info&amp;diff=7</id>
		<title>CalCOFI Drifter Realtime Webpage Info</title>
		<link rel="alternate" type="text/html" href="https://wiki-locl.eri.ucsb.edu/index.php?title=CalCOFI_Drifter_Realtime_Webpage_Info&amp;diff=7"/>
		<updated>2009-06-25T20:08:17Z</updated>

		<summary type="html">&lt;p&gt;Kirk ireson: New page: &amp;lt;h1&amp;gt;CalCOFI SVP Drifter Realtime Webpage Wiki&amp;lt;/h1&amp;gt;  NOTES AND THINGS TO KNOW ABOUT THE SVP REALTIME PAGE&amp;lt;br&amp;gt; Jun, 2009 Kirk  Webpage: [http://www.icess.ucsb.edu/drifter/realtime-SVP/ SVP R...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;h1&amp;gt;CalCOFI SVP Drifter Realtime Webpage Wiki&amp;lt;/h1&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NOTES AND THINGS TO KNOW ABOUT THE SVP REALTIME PAGE&amp;lt;br&amp;gt;&lt;br /&gt;
Jun, 2009 Kirk&lt;br /&gt;
&lt;br /&gt;
Webpage:&lt;br /&gt;
[http://www.icess.ucsb.edu/drifter/realtime-SVP/ SVP Realtime Page]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There are three main parts needed to display the data (details below):&amp;lt;br&amp;gt;&lt;br /&gt;
1. Fetching the data (using Python script running on dub-locl)&amp;lt;br&amp;gt;&lt;br /&gt;
2. Parsing the data (using PHP script running on website)&amp;lt;br&amp;gt;&lt;br /&gt;
3. Displaying the data (using Javascript running on your browser)&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;1. FETCHING THE DATA&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On dub-locl.icess.ucsb.edu in /localhome/kirk/scripts/ there is a script 'expect_script_to_fetch_argos_data.py'.  It uses 'pexpect', a Python version of the 'expect' scripts, which allows you to script what would normally be an interactive terminal session.  This is necessary in this case because we have to obtain the data via a telnet session.&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;There is essentially nothing to configure it, and it's well documented should you need to change anything.  It is set to fetch the last 24hours worth of positions.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;It may need to be updated with drifter numbers as more are sent drifting.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;It is set to run every 6 hours via a &amp;quot;cron job&amp;quot; in the kirk account.  To edit this job, as kirk, at the Terminal, type 'crontab -e' and use 'vi' style editing commands, or 'crontab -l' to just show it.  (To become kirk, login as drift, then in a Terminal, type 'sudo su -' (then type the drift password) to become root, then 'su kirk' to become kirk.)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;It saves the output of this session to /home/locl/file_sharing/SVP_CALCOFI_LATEST_DATA.txt on the ICESS network (which is accessed on dub-locl via /mnt/locl/, which should be mounted automatically if the system reboots, see /etc/fstab)&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;2. PARSING THE DATA&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When someone visits the webpage (http://www.icess.ucsb.edu/drifter/realtime-SVP/), in the ajax.js file there is instruction to fetch the data. This 'fetch' is accomplished by calling 'parse_argos_data.php' in that directory.  This php script reads the file saved above (in /home/locl/), ignores all the non-data lines, and processes/cleans up the crazy ARGOS format output from the telnet session.&lt;br /&gt;
&lt;br /&gt;
It outputs 1 record per position report in this format:&lt;br /&gt;
drift_no,YY-MM-DD,HH:MM:SS,milliseconds_since_Jan01_1970,orig_report_num,lat,lon,position_type(1=GPS,0=ARGOS),SST(C),batt(V)&lt;br /&gt;
e.g.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
75428,2007-04-03,10:33:37,1175610817000,137,+26.6979,-081.9557,1,NaN,12.4   (a gps position)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;There is very little configuring it, and it's well documented should you need to change anything.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Its output can be seen easily:&lt;br /&gt;
http://www.icess.ucsb.edu/drifter/realtime-SVP/parse_argos_data.php&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt;3. DISPLAYING THE DATA   (at [http://www.icess.ucsb.edu/drifter/realtime-SVP/ realtime page]) &amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Google mapping code was adapted from the Iridium/Microstar realtime page at http://www.icess.ucsb.edu/drifter/realtime/&lt;br /&gt;
&lt;br /&gt;
The two main javascript files are ajax.js and map.js.&lt;br /&gt;
&lt;br /&gt;
The javascript files are compressed using http://www.icess.ucsb.edu/drifter/realtime/JavascriptCompressor.html, so changes made to the xxx__UNCOMPRESSED__.js files won't show up on the page unless they are compressed and saved without the &amp;quot;__UNCOMPRESSED__&amp;quot; portion in the name, OR at the beginning of index.php those two types of files are commented/uncommented out as appropriate.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h2&amp;gt; POTENTIAL PROBLEMS / TROUBLESHOOTING&amp;lt;/h2&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Prob: The data file (/home/locl/file_sharing/SVP_CALCOFI_LATEST_DATA.txt) is not getting saved/updated&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Is the dub-locl computer up?&lt;br /&gt;
&amp;lt;li&amp;gt;Is /mnt/locl mounted on dub-locl? It should come up automatically&lt;br /&gt;
&amp;lt;li&amp;gt;Has 6 hours passed since the last time it ran? It only runs every 6 hours&lt;br /&gt;
&amp;lt;li&amp;gt;Try fetching the data yourself via telnet (do these commands at a terminal prompt):&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
telnet datadist.argosinc.com&lt;br /&gt;
hansen     (at the 'Username:' prompt)&lt;br /&gt;
aomlus     (at the 'Password:' prompt)&lt;br /&gt;
prv,7325,ds,,93561-93587   (at the '/' prompt, to get the previous 9 day's worth of data for drifter #93561-93587 )   &lt;br /&gt;
lo   (at the '/' prompt, to log out)  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
NOTE: if you want to get data from a specific time period, use julian dates and GMT hours after the comma after 'ds'.&lt;br /&gt;
For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
prv,7325,ds,174/12-175/10,93561-93587   (for June 23rd at 12Z through June 24th at 10Z)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Prob: The data file (/home/locl/file_sharing/SVP_CALCOFI_LATEST_DATA.txt) shows no data&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;There probably aren't any drifters talking in the last 24hours (look for the line &amp;quot;No data available or authorization failure&amp;quot; in the file or try manually getting the data)&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kirk ireson</name></author>
		
	</entry>
	<entry>
		<id>https://wiki-locl.eri.ucsb.edu/index.php?title=HOWTO_Drifter_Data_Processing&amp;diff=6</id>
		<title>HOWTO Drifter Data Processing</title>
		<link rel="alternate" type="text/html" href="https://wiki-locl.eri.ucsb.edu/index.php?title=HOWTO_Drifter_Data_Processing&amp;diff=6"/>
		<updated>2009-06-22T21:53:36Z</updated>

		<summary type="html">&lt;p&gt;Kirk ireson: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;h1&amp;gt;Kirk's HOWTO on processing Drifter data&amp;lt;/h1&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Follow these steps to process 'raw' drifter data from [http://www.pacificgyre.com pacificgyre] to final posting on our website:&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Notes:&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Once proficient, it takes about 20 min to process a typical day's deployment.&lt;br /&gt;
&amp;lt;li&amp;gt;Folders/files referenced here can be found on the ICESS network at /home/locl/users/kirk/ (hereafter referred to as '..../kirk/') in the &amp;lt;b&amp;gt;data&amp;lt;/b&amp;gt; or &amp;lt;b&amp;gt;user&amp;lt;/b&amp;gt; subfolders.&lt;br /&gt;
&amp;lt;li&amp;gt;You should copy the &amp;lt;i&amp;gt;kirk&amp;lt;/i&amp;gt; folder contents to your local computer and run the scripts there instead of on the server.&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Folder:  .../kirk/user/0_Info&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;b&amp;gt;On deployment day&amp;lt;/b&amp;gt;: be sure to fill out .../kirk/user/0_Info/&amp;lt;b&amp;gt;drifter_hist.xls&amp;lt;/b&amp;gt; (drifter history) with the&lt;br /&gt;
performance of the drifters to track if there are any consistent problems (&amp;lt;i&amp;gt;Note that this file is now out of date&amp;lt;/i&amp;gt;).&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Folder:  .../kirk/user/1_get_data_from_web&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit &amp;lt;b&amp;gt;data_dates.m&amp;lt;/b&amp;gt; with the start/stop date/times to get.&amp;lt;br&amp;gt;&lt;br /&gt;
	 Notes:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Use the [http://pacificgyre.com http://pacificgyre.com] website (log: &amp;lt;i&amp;gt;ohlmann&amp;lt;/i&amp;gt;, pass: &amp;lt;i&amp;gt;drifterguy&amp;lt;/i&amp;gt;) if you need to get an estimation of&lt;br /&gt;
 		 when the drifters went in and came out of the water (look at in-water flag values), or go to &lt;br /&gt;
             [http://www.icess.ucsb.edu/drifter/realtime/BETA.php http://www.icess.ucsb.edu/drifter/realtime/BETA.php] and enter custom times.&lt;br /&gt;
  &amp;lt;li&amp;gt;Keep adding date/times to the bottom of this file (or in the appropriate &amp;quot;deployment type&amp;quot; area (e.g. SBCLS), and commented out), then copy these uncommented deployment times to&lt;br /&gt;
  the top of it to fetch the data.  Note, when in the &amp;quot;deployment type&amp;quot; groups, I number the 'dates' sequentially, but when copying one or two of them to the top to fetch, you need to make sure those 'dates' numbering start at 1.&lt;br /&gt;
  &amp;lt;li&amp;gt;You don't have to be exact on the times (cleanup happens in following steps), just be sure you have a time at least before or at start and a time after or at ending deployment. &lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run &amp;lt;b&amp;gt;get_data.m&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Be sure the &amp;lt;b&amp;gt;IRIDIUM&amp;lt;/b&amp;gt; value in it is set correctly&lt;br /&gt;
&amp;lt;li&amp;gt;Data will be saved in '..../kirk/data/Drifter_Anal/2_data/&amp;lt;i&amp;gt;yyyymmdd&amp;lt;/i&amp;gt;' folder as a &amp;lt;i&amp;gt;yyyymmdd_drifter_dat.log&amp;lt;/i&amp;gt; file.&lt;br /&gt;
&amp;lt;li&amp;gt;Now, move that folder into a 'deployment type' folder (e.g. .../kirk/data/Drifter_Anal/2_data/&amp;lt;b&amp;gt;SBCLS&amp;lt;/b&amp;gt;)&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Notes:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If IRIDIUM is set, you may want to check the settings of &amp;lt;b&amp;gt;REMOVE_GPS_01&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;CONVERT_GPS_2_TO_2&amp;lt;/b&amp;gt; in the &amp;lt;b&amp;gt;convert_Iridium_reports_to_Microstar_format.m&amp;lt;/b&amp;gt; file.&lt;br /&gt;
&amp;lt;li&amp;gt;Data format (column numbers):&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
      #1 drifter ID&lt;br /&gt;
      #2 year&lt;br /&gt;
      #3 month&lt;br /&gt;
      #4 day&lt;br /&gt;
      #5 hour&lt;br /&gt;
      #6 minute&lt;br /&gt;
      #7 second&lt;br /&gt;
      #8 lat&lt;br /&gt;
      #9 long&lt;br /&gt;
     #10 satelites availiable&lt;br /&gt;
     #11 satelites used&lt;br /&gt;
     #12 com flag&lt;br /&gt;
     #13 Secs to fix&lt;br /&gt;
     #14 Mobitex RSSI&lt;br /&gt;
     #15 in-water flag&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Folder:  .../kirk/user/2_clean_up&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit &amp;lt;b&amp;gt;clean_up_drifter_data.m&amp;lt;/b&amp;gt; with the correct &amp;lt;b&amp;gt;area&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;deploy_date&amp;lt;/b&amp;gt; at the top.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kirk ireson</name></author>
		
	</entry>
	<entry>
		<id>https://wiki-locl.eri.ucsb.edu/index.php?title=Main_Page&amp;diff=5</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki-locl.eri.ucsb.edu/index.php?title=Main_Page&amp;diff=5"/>
		<updated>2009-06-20T17:49:10Z</updated>

		<summary type="html">&lt;p&gt;Kirk ireson: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;h1&amp;gt;WELCOME TO LAGRANGIAN OCEAN CURRENTS LAB (LOCL) WIKI!&amp;lt;/h1&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Links:&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[http://www.icess.ucsb.edu/drifter Drifter Homepage]&lt;br /&gt;
&amp;lt;li&amp;gt;[http://wiki.icess.ucsb.edu/locl/index.php/HOWTO_Drifter_Data_Processing Kirk's HOWTO on Drifter Data Processing]&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h1&amp;gt;For Wiki Help See:&amp;lt;/h1&amp;gt;&lt;br /&gt;
Consult the [http://meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
&lt;br /&gt;
* [http://www.mediawiki.org/wiki/Help:Configuration_settings Configuration settings list]&lt;br /&gt;
* [http://www.mediawiki.org/wiki/Help:FAQ MediaWiki FAQ]&lt;br /&gt;
* [http://mail.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]&lt;/div&gt;</summary>
		<author><name>Kirk ireson</name></author>
		
	</entry>
	<entry>
		<id>https://wiki-locl.eri.ucsb.edu/index.php?title=HOWTO_Drifter_Data_Processing&amp;diff=4</id>
		<title>HOWTO Drifter Data Processing</title>
		<link rel="alternate" type="text/html" href="https://wiki-locl.eri.ucsb.edu/index.php?title=HOWTO_Drifter_Data_Processing&amp;diff=4"/>
		<updated>2009-06-20T17:45:49Z</updated>

		<summary type="html">&lt;p&gt;Kirk ireson: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;h1&amp;gt;Kirk's HOWTO on processing Drifter data&amp;lt;/h1&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Follow these steps to process 'raw' drifter data from [http://www.pacificgyre.com pacificgyre] to final posting on our website:&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Notes:&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Once proficient, it takes about 20 min to process a typical day's deployment.&lt;br /&gt;
&amp;lt;li&amp;gt;Folders/files referenced here can be found on the ICESS network at /home/locl/users/kirk/ (hereafter referred to as '..../kirk/') in the &amp;lt;b&amp;gt;data&amp;lt;/b&amp;gt; or &amp;lt;b&amp;gt;user&amp;lt;/b&amp;gt; subfolders.&lt;br /&gt;
&amp;lt;li&amp;gt;You should copy the &amp;lt;i&amp;gt;kirk&amp;lt;/i&amp;gt; folder contents to your local computer and run the scripts there instead of on the server.&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Folder:  .../kirk/user/0_Info&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;b&amp;gt;On deployment day&amp;lt;/b&amp;gt;: be sure to fill out .../kirk/user/0_Info/&amp;lt;b&amp;gt;drifter_hist.xls&amp;lt;/b&amp;gt; (drifter history) with the&lt;br /&gt;
performance of the drifters to track if there are any consistent problems (&amp;lt;i&amp;gt;Note that this file is now out of date&amp;lt;/i&amp;gt;).&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Folder:  .../kirk/user/1_get_data_from_web&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit &amp;lt;b&amp;gt;data_dates.m&amp;lt;/b&amp;gt; with the start/stop date/times to get.&amp;lt;br&amp;gt;&lt;br /&gt;
	 Notes:&amp;lt;br&amp;gt;&lt;br /&gt;
	&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Use the [http://pacificgyre.com http://pacificgyre.com] website (log: &amp;lt;i&amp;gt;ohlmann&amp;lt;/i&amp;gt;, pass: &amp;lt;i&amp;gt;drifterguy&amp;lt;/i&amp;gt;) if you need to get an estimation of&lt;br /&gt;
 		 when the drifters went in and came out of the water (look at in-water flag values), or go to &lt;br /&gt;
             [http://www.icess.ucsb.edu/drifter/realtime/BETA.php http://www.icess.ucsb.edu/drifter/realtime/BETA.php] and enter custom times.&lt;br /&gt;
&amp;lt;li&amp;gt;Keep adding date/times to the bottom of this file (commented out), then copy your uncommented deployment times to&lt;br /&gt;
  the top of it to fetch the data.&lt;br /&gt;
&amp;lt;li&amp;gt;You don't have to be exact on the times (cleanup happens in following steps), just be sure you have a time at least before or at start and a time after or at ending deployment. &lt;br /&gt;
  &amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run &amp;lt;b&amp;gt;get_data.m&amp;lt;/b&amp;gt; (be sure the &amp;lt;b&amp;gt;IRIDIUM&amp;lt;/b&amp;gt; value in it is set correctly), data will be saved in '..../kirk/data/Drifter_Anal/2_data/&amp;lt;i&amp;gt;yyyymmdd&amp;lt;/i&amp;gt;' folder as a &amp;lt;i&amp;gt;yyyymmdd_drifter_dat.log&amp;lt;/i&amp;gt; file.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Now, move that folder into a 'deployment type' folder (e.g. .../kirk/data/Drifter_Anal/2_data/&amp;lt;b&amp;gt;SBCLS&amp;lt;/b&amp;gt;)&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Notes:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If IRIDIUM is set, you may want to check the settings of &amp;lt;b&amp;gt;REMOVE_GPS_01&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;CONVERT_GPS_2_TO_2&amp;lt;/b&amp;gt; in the &amp;lt;b&amp;gt;convert_Iridium_reports_to_Microstar_format.m&amp;lt;/b&amp;gt; file.&lt;br /&gt;
&amp;lt;li&amp;gt;Data format (column numbers):&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
      #1 drifter ID&lt;br /&gt;
      #2 year&lt;br /&gt;
      #3 month&lt;br /&gt;
      #4 day&lt;br /&gt;
      #5 hour&lt;br /&gt;
      #6 minute&lt;br /&gt;
      #7 second&lt;br /&gt;
      #8 lat&lt;br /&gt;
      #9 long&lt;br /&gt;
     #10 satelites availiable&lt;br /&gt;
     #11 satelites used&lt;br /&gt;
     #12 com flag&lt;br /&gt;
     #13 Secs to fix&lt;br /&gt;
     #14 Mobitex RSSI&lt;br /&gt;
     #15 in-water flag&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Folder:  .../kirk/user/2_clean_up&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit &amp;lt;b&amp;gt;clean_up_drifter_data.m&amp;lt;/b&amp;gt; with the correct &amp;lt;b&amp;gt;area&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;deploy_date&amp;lt;/b&amp;gt; at the top.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kirk ireson</name></author>
		
	</entry>
	<entry>
		<id>https://wiki-locl.eri.ucsb.edu/index.php?title=HOWTO_Drifter_Data_Processing&amp;diff=3</id>
		<title>HOWTO Drifter Data Processing</title>
		<link rel="alternate" type="text/html" href="https://wiki-locl.eri.ucsb.edu/index.php?title=HOWTO_Drifter_Data_Processing&amp;diff=3"/>
		<updated>2009-06-20T04:05:25Z</updated>

		<summary type="html">&lt;p&gt;Kirk ireson: New page: &amp;lt;h1&amp;gt;Kirk's HOWTO on processing Drifter data&amp;lt;/h1&amp;gt; &amp;lt;br&amp;gt; &amp;lt;h2&amp;gt;Follow these steps to process 'raw' drifter data from [http://www.pacificgyre.com pacificgyre] to final posting on our website:&amp;lt;/h...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;h1&amp;gt;Kirk's HOWTO on processing Drifter data&amp;lt;/h1&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Follow these steps to process 'raw' drifter data from [http://www.pacificgyre.com pacificgyre] to final posting on our website:&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Notes:&amp;lt;/b&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Once proficient, it takes about 20 min to process a typical day's deployment.&lt;br /&gt;
&amp;lt;li&amp;gt;Folders/files referenced here can be found on the ICESS network at /home/locl/users/kirk/ (hereafter referred to as '..../kirk/') in the &amp;lt;b&amp;gt;data&amp;lt;/b&amp;gt; or &amp;lt;b&amp;gt;user&amp;lt;/b&amp;gt; subfolders.&lt;br /&gt;
&amp;lt;li&amp;gt;You should copy the 'user' folder contents to your local computer and run the scripts there instead of on the server.&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Folder:  .../kirk/user/0_Info&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;b&amp;gt;On deployment day&amp;lt;/b&amp;gt;: be sure to fill out .../kirk/user/0_Info/&amp;lt;b&amp;gt;drifter_hist.xls&amp;lt;/b&amp;gt; (drifter history) with the&lt;br /&gt;
performance of the drifters to track if there are any consistent problems.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;h2&amp;gt;Folder:  .../kirk/user/1_get_data_from_web&amp;lt;/h2&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Edit &amp;lt;b&amp;gt;data_dates.m&amp;lt;/b&amp;gt; with the start/stop date/times to get.&amp;lt;br&amp;gt;&lt;br /&gt;
	 Notes:&amp;lt;br&amp;gt;&lt;br /&gt;
	&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Use the [http://pacificgyre.com http://pacificgyre.com] website (log: &amp;lt;i&amp;gt;ohlmann&amp;lt;/i&amp;gt;, pass: &amp;lt;i&amp;gt;drifterguy&amp;lt;/i&amp;gt;) if you need to get an estimation of&lt;br /&gt;
 		 when the drifters went in and came out of the water (look at in-water flag values), or go to &lt;br /&gt;
             [http://www.icess.ucsb.edu/drifter/realtime/BETA.php http://www.icess.ucsb.edu/drifter/realtime/BETA.php] and enter custom times.&lt;br /&gt;
&amp;lt;li&amp;gt;Keep adding date/times to the bottom of this file (commented out), then copy your uncommented deployment times to&lt;br /&gt;
  the top of it to fetch the data.&lt;br /&gt;
&amp;lt;li&amp;gt;You don't have to be exact on the times (cleanup happens in following steps), just be sure you have a time at least before or at start and a time after or at ending deployment. &lt;br /&gt;
  &amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Run &amp;lt;b&amp;gt;get_data.m&amp;lt;/b&amp;gt; (be sure the &amp;lt;b&amp;gt;IRIDIUM&amp;lt;/b&amp;gt; value in it is set correctly), data will be saved in '..../kirk/data/Drifter_Anal/2_data/&amp;lt;i&amp;gt;yyyymmdd&amp;lt;/i&amp;gt;' folder as a &amp;lt;i&amp;gt;yyyymmdd_drifter_dat.log&amp;lt;/i&amp;gt; file.&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Now, move that folder into a 'deployment type' folder (e.g. .../kirk/data/Drifter_Anal/2_data/&amp;lt;i&amp;gt;SBCLS&amp;lt;/i&amp;gt;)&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Notes:&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Data format (column numbers):&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
      #1 drifter ID&lt;br /&gt;
      #2 year&lt;br /&gt;
      #3 month&lt;br /&gt;
      #4 day&lt;br /&gt;
      #5 hour&lt;br /&gt;
      #6 minute&lt;br /&gt;
      #7 second&lt;br /&gt;
      #8 lat&lt;br /&gt;
      #9 long&lt;br /&gt;
     #10 satelites availiable&lt;br /&gt;
     #11 satelites used&lt;br /&gt;
     #12 com flag&lt;br /&gt;
     #13 Secs to fix&lt;br /&gt;
     #14 Mobitex RSSI&lt;br /&gt;
     #15 in-water flag&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kirk ireson</name></author>
		
	</entry>
	<entry>
		<id>https://wiki-locl.eri.ucsb.edu/index.php?title=Main_Page&amp;diff=2</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki-locl.eri.ucsb.edu/index.php?title=Main_Page&amp;diff=2"/>
		<updated>2009-06-19T04:02:50Z</updated>

		<summary type="html">&lt;p&gt;Kirk ireson: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;big&amp;gt;WELCOME TO LAGRANGIAN OCEAN CURRENTS LAB WIKI!&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[http://www.icess.ucsb.edu/drifter Drifter Homepage]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Consult the [http://meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
&lt;br /&gt;
* [http://www.mediawiki.org/wiki/Help:Configuration_settings Configuration settings list]&lt;br /&gt;
* [http://www.mediawiki.org/wiki/Help:FAQ MediaWiki FAQ]&lt;br /&gt;
* [http://mail.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]&lt;/div&gt;</summary>
		<author><name>Kirk ireson</name></author>
		
	</entry>
</feed>