{"id":363,"date":"2011-04-01T02:55:34","date_gmt":"2011-04-01T02:55:34","guid":{"rendered":"https:\/\/info.calcofi.com\/2011\/04\/01\/underway-data-processing\/"},"modified":"2011-04-01T02:55:34","modified_gmt":"2011-04-01T02:55:34","slug":"underway-data-processing","status":"publish","type":"post","link":"https:\/\/mindwander.com\/index.php\/2011\/04\/01\/underway-data-processing\/","title":{"rendered":"Underway Data Processing"},"content":{"rendered":"<p class=\"MsoNormal\" style=\"text-align: left; \">\n\tUnderway Data Processing Methods <o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 39.75pt; text-indent: -21.75pt; text-align: left; \">\n\t<span style=\"font-family:\"><span style=\"mso-list:Ignore\">1.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span>Navigate to Underway Data folder and join into a single file, do so using Advanced File Joiner or similar: &nbsp;<\/span><a href=\"http:\/\/download.cnet.com\/Advanced-File-Joiner\/3000-2094_4-169639.html\"><span style=\"font-family:\">http:\/\/download.cnet.com\/Advanced-File-Joiner\/3000-2094_4-169639.html<\/span><\/a><br style=\"mso-special-character:line-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<span style=\"font-family:\"> <o:p><\/o:p> <\/span><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 1in; text-indent: -0.25in; text-align: left; \">\n\t<span style=\"mso-list:Ignore\">a.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span>CalCOFI collects its own data while aboard SIO ships (New Horizon).&nbsp;&nbsp;These are saved in the Events folder of the appropriate cruise.&nbsp;&nbsp;A single file name is similar to: 0901NHMETEV_06012009.csv.&nbsp;&nbsp;Although each filename is labeled by date, date data my not correlate.&nbsp;&nbsp;This is of no particular consequence, just be aware of it.<br style=\"mso-special-character:\nline-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 1in; text-indent: -0.25in; text-align: left; \">\n\t<span style=\"mso-list:Ignore\">b.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span>When a cruise is aboard a NOAA ship, it is normal to receive a CD-ROM at the cruise with a variety of SCS data.&nbsp;&nbsp;These data formats are highly variable by ship and by year.&nbsp;&nbsp;It will usually take a combination of files to find all that you will require (i.e., one file type for TSG, one for fluorescence, one for lat long).&nbsp;&nbsp;Just merge each file type, then cut and paste columns into the correct order.&nbsp;&nbsp;Make all SCS data available on the web.<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 1in; text-indent: -0.25in; text-align: left; \">\n\t<span style=\"mso-list:Ignore\">c.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span>The resultant&nbsp;&nbsp;file becomes the RAW UNDERWAY DATA for that cruise.&nbsp;&nbsp;This file contains all unedited data from the Shipboard Computer System (SCS).&nbsp;&nbsp;This file may include navigational, meteorological, oceanographic, and other mechanical data.<span style=\"mso-spacerun:yes\">&nbsp; <\/span>In your local working directory&nbsp;&nbsp;(e.g., ..\/UnderwayData\/2009\/0911NH) save raw data in tab delimited ASCII format and name as YYMMSS_UnderwayRaw.txt&nbsp;&nbsp;(e.g., 0901NH_RawUnderway.txt)<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 1in; text-indent: -0.25in; text-align: left; \">\n\t<span style=\"mso-list:Ignore\">d.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span>&nbsp;*Links to SCS information <o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 1.5in; text-indent: -1.5in; text-align: left; \">\n\t<span style=\"font-family:\"><span style=\"mso-list:Ignore\"><span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <\/span>i.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><a href=\"http:\/\/oceanexplorer.noaa.gov\/technology\/tools\/scs\/scs.html\"><span style=\"font-family:\">http:\/\/oceanexplorer.noaa.gov\/technology\/tools\/scs\/scs.html<\/span><\/a><span style=\"font-family:\"> <o:p><\/o:p> <\/span><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 1.5in; text-indent: -1.5in; text-align: left; \">\n\t<span style=\"font-family:\"><span style=\"mso-list:Ignore\"><span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span>ii.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><a href=\"http:\/\/www.unols.org\/meetings\/2006\/200610inm\/SessionIIIa\/SessionIIIa_Shields.pdf\"><span style=\"font-family:\">http:\/\/www.unols.org\/meetings\/2006\/200610inm\/SessionIIIa\/SessionIIIa_Shields.pdf<\/span><\/a><span style=\"font-family:\"> <o:p><\/o:p> <\/span><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 1.5in; text-indent: -1.5in; text-align: left; \">\n\t<span style=\"font-family:\"><span style=\"mso-list:Ignore\"><span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <\/span>iii.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp; <\/span><\/span><\/span><a href=\"http:\/\/sdsioa.ucsd.edu\/\"><span style=\"font-family:\">http:\/\/sdsioa.ucsd.edu\/<\/span><\/a><br style=\"mso-special-character:\nline-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<span style=\"font-family:\"> <o:p><\/o:p> <\/span><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 39.75pt; text-indent: -21.75pt; text-align: left; \">\n\t<span style=\"mso-list:Ignore\">2.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span>Open merged file and crop data columns to include the following, in order and with the following column headers:<br style=\"mso-special-character:\nline-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 1in; text-indent: -0.25in; text-align: left; \">\n\t<span style=\"mso-list:Ignore\">a.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span>DATE_UTC, TIME_UTC,&nbsp;LA, LO, ST, SA, FL, FI&nbsp; (Date(UTC), Time(UTC), Lat, Lon, Temp, Salinity, Fluor, Pump)<br style=\"mso-special-character:\nline-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 1.5in; text-indent: -1.5in; text-align: left; \">\n\t<span style=\"mso-list:Ignore\"><span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>i.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp; <\/span><\/span>*Note &#8211; There is the possibility that power gets toggled on\/off to underway sensors during the cruise.&nbsp;&nbsp;This results in changes in the total number of data columns (i.e., the first days may have 100 columns of data and the next few only 98).&nbsp;&nbsp;Attention <span style=\"mso-spacerun:yes\">&nbsp;<\/span>is needed to make sure that when cropping data that the correct data is sub sampled.<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 1.5in; text-indent: -1.5in; text-align: left; \">\n\t<span style=\"mso-list:Ignore\"><span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>ii.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp; <\/span><\/span>&nbsp;**Note &#8211; Different ships have different underway column headers\/variable designations\/configurations.&nbsp;&nbsp;Consult Underway Data Formats (<a href=\"http:\/\/calcofi.com\/data\/underway\/151-underway-data-format\/261-underway-data-format.html\" target=\"_blank\" rel=\"noopener\">link<\/a>) for more information.<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 39.75pt; text-indent: -21.75pt; text-align: left; \">\n\t<span style=\"mso-list:Ignore\">3.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span>&nbsp;Delete rows with:<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 1in; text-indent: -0.25in; text-align: left; \">\n\t<span style=\"mso-list:Ignore\">a.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span>pump speed not within than manufacturer&#8217;s specifications<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 1.5in; text-indent: -1.5in; text-align: left; \">\n\t<span style=\"mso-list:Ignore\"><span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>i.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp; <\/span><\/span>&nbsp;<i style=\"mso-bidi-font-style:normal\">Doubling the&nbsp;flow&nbsp;rate&nbsp;from what we recommend will have at least one main problem. This&nbsp;flow&nbsp;rate&nbsp;will probably be too high for the conductivity cell and overtime you can see a degradation of the conductivity readings due to this&nbsp;flow&nbsp;rate. What can happen is that the high&nbsp;flow&nbsp;rate&nbsp;may slowly remove the platinum on the electrode within the conductivity cell, especially in areas with a lots of debris and particulate in the water. This will change the area of the conductivity cell which can cause the readings to be high of correct. I am unsure how long this process would take but it is something we have seen before. I really suggest using the recommended&nbsp;flow&nbsp;rate&nbsp;for this instrument.<span style=\"color:#222222\"> ~SBE Technical Support<br style=\"mso-special-character:\nline-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<\/span><\/i><span style=\"color:black\"> <o:p><\/o:p> <\/span><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 1in; text-indent: -0.25in; text-align: left; \">\n\t<span style=\"mso-list:Ignore\">b.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span>no spatial coordinates<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 1in; text-indent: -0.25in; text-align: left; \">\n\t<span style=\"mso-list:Ignore\">c.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span>erroneous values<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 1.5in; text-indent: -1.5in; text-align: left; \">\n\t<span style=\"mso-list:Ignore\"><span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>i.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp; <\/span><\/span>*Note &#8211; There is the possibility that one or more columns may be missing some or all of the data.&nbsp;&nbsp;&nbsp;There are several workarounds depending on the missing variable.&nbsp;Consult WTF Moments (link) for more information.<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 1.5in; text-indent: -1.5in; text-align: left; \">\n\t<span style=\"mso-list:Ignore\"><span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>ii.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp; <\/span><\/span>**Note &#8211; With upwards of 100,000 rows of data it is inevitable that most bad values will go unnoticed at this point.&nbsp;&nbsp;Subsequent data processing steps (i.e., plotting) will make it easier to find errors and to remove them.&nbsp;&nbsp;Just try to find the large and obvious discrepancies.&nbsp;<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 39.75pt; text-indent: -21.75pt; text-align: left; \">\n\t<span style=\"mso-list:Ignore\">4.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp; &nbsp;<\/span><\/span>Save cropped file as 0901NH_UnderwayCrop.txt&nbsp;&nbsp;in same folder as the raw file.<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 39.75pt; text-indent: -21.75pt; text-align: left; \">\n\t<span style=\"mso-list:Ignore\">5.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp;&nbsp;<\/span><\/span>It is necessary to compare and calculate correction regressions based on the comparison of CTD to Underway Data.&nbsp;&nbsp;Navigate to the final CTD Downcast .csv file folder and join all csvs into a single file (as in Step 1). &nbsp;These csv files are the ones with IEH bottle data added to them.<span style=\"mso-spacerun:yes\">&nbsp; <\/span>In your local working directory&nbsp;&nbsp;(e.g., ..\/UnderwayData\/2009\/0901NH) save raw data in tab delimited ASCII format and name as YYMMSS_CTDd.txt (e.g., 0901NH_CTDd.txt). &nbsp;If the YYMM_CTDd.csv file is available open in Excel and crop columns accordingly (#7). &nbsp;<br style=\"mso-special-character:\nline-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 39.75pt; text-indent: -21.75pt; text-align: left; \">\n\t<span style=\"mso-list:Ignore\">6.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp; &nbsp;<\/span><\/span>Open file with MS Excel and select the first column &#8216;A&#8217; and Text-to-Column the Data with comma delimiter.<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 1in; text-indent: -0.25in; text-align: left; \">\n\t<span style=\"mso-list:Ignore\">a.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp;<\/span><\/span>*Note &#8211; DO NOT save this file as YYMMSS_CTDd.txt while in Excel.&nbsp;&nbsp;A host of things can go wrong.&nbsp;&nbsp;Data will be Cut and Pasted into a new file shortly.&nbsp;&nbsp;If you must you can save it as some tempfile.xlsx.<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 39.75pt; text-indent: -21.75pt; text-align: left; \">\n\t<span style=\"mso-list:Ignore\">7.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span>&nbsp;Crop data columns to include the following, in order and with the following column headers:<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 1in; text-indent: -0.25in; text-align: left; \">\n\t<span style=\"mso-list:Ignore\">a.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span><span style=\"mso-spacerun:yes\">&nbsp;<\/span>Date_Time_UTC, Lat_Dec, Lon_Dec, Temp0, Temp1, BTL_Depth, BTL_Salt, BTL_Chl<br style=\"mso-special-character:\nline-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 1.5in; text-indent: -1.5in; text-align: left; \">\n\t<span style=\"mso-list:Ignore\"><span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>i.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp; <\/span><\/span>*Note &#8211; If Underway Data was only available with Date and Time in PST select Date_Time_PST instead.<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 39.75pt; text-indent: -21.75pt; text-align: left; \">\n\t<span style=\"mso-list:Ignore\">8.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp;&nbsp;<\/span><\/span>Sort Ascending (Smallest to Largest) based on BTL_Depth and Delete all depths greater than 2m, all rows with no BTL_Depth values, and all Header rows except for one which needs to be cut and pasted back at the top after we are finished sorting.<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 39.75pt; text-indent: -21.75pt; text-align: left; \">\n\t<span style=\"mso-list:Ignore\">9.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp;&nbsp;<\/span><\/span>Sort Ascending based on Date_Time.<br style=\"mso-special-character:\nline-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 39.75pt; text-indent: -21.75pt; text-align: left; \">\n\t<span style=\"mso-list:Ignore\">10.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;<\/span><\/span>Delete any rows that are missing any information.<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 39.75pt; text-indent: -21.75pt; text-align: left; \">\n\t<span style=\"mso-list:Ignore\">11.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;<\/span><\/span>Delete any duplicate stations.&nbsp;&nbsp;You can tell if two subsequent rows are from the same station by the time, delete <span style=\"mso-spacerun:yes\">&nbsp;<\/span>the deeper.<br style=\"mso-special-character:\nline-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 39.75pt; text-indent: -21.75pt; text-align: left; \">\n\t<span style=\"mso-list:Ignore\">12.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;<\/span><\/span>Make sure Header row is at the top.<br style=\"mso-special-character:\nline-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 39.75pt; text-indent: -21.75pt; text-align: left; \">\n\t<span style=\"mso-list:Ignore\">13.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;<\/span><\/span>After the Temp 1 column, insert 2 additional blank columns.<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 1in; text-indent: -0.25in; text-align: left; \">\n\t<span style=\"mso-list:Ignore\">a.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp;<\/span><\/span>Average the two Temp columns into the first blank column, then copy and paste &#8216;values only&#8217; into the second.&nbsp;&nbsp;Delete the Temp0, Temp1, and first column.&nbsp;&nbsp;Header the remaining column as TempAvg.<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 39.75pt; text-indent: -21.75pt; text-align: left; \">\n\t<span style=\"mso-list:Ignore\">14.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span>&nbsp;Add three extra headers\/columns&nbsp;&nbsp;at the end of the existing<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 1in; text-indent: -0.25in; text-align: left; \">\n\t<span style=\"mso-list:Ignore\">a.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span>&nbsp;&#8230;, ST, SA, FL, FI (&#8230;, T, S, Fluro, Pump)<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 39.75pt; text-indent: -21.75pt; text-align: left; \">\n\t<span style=\"mso-list:Ignore\">15.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;<\/span><\/span>Open a previously completed copy of YYMMSS_CTDvsUnderway.xlsx.&nbsp;&nbsp;Select, Copy, and Paste all rows and columns from the sorted and corrected &#8230;CTDd.txt file into the recently opened xlsx file.&nbsp;&nbsp;Save and RENAME the xlsx file accordingly (i.e., NEW YYMMSS ).&nbsp;&nbsp;Make sure no old data lingers in the spreadsheet as this would cause errors in the fit of the regression.<br style=\"mso-special-character:\nline-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 1in; text-indent: -0.25in; text-align: left; \">\n\t<span style=\"mso-list:Ignore\">a.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp;<\/span><\/span>*Note &#8211; We reuse the xlsx file because it already has multiple graphs set up.&nbsp;&nbsp;You will of course need to resize the data sets for each graph as necessary, and rename the graph titles.&nbsp;&nbsp;But if you followed the above steps the columns will be in the right places and everything should fall into place.<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 39.75pt; text-indent: -21.75pt; text-align: left; \">\n\t<span style=\"mso-list:Ignore\">16.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;<\/span><\/span>Open the &#8230;UnderwayCrop.txt in MS Excel, Tab delimited.&nbsp;&nbsp;Arrange both files in Tile View.<br style=\"mso-special-character:\nline-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 39.75pt; text-indent: -21.75pt; text-align: left; \">\n\t<span style=\"mso-list:Ignore\">17.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;<\/span><\/span>Using this new &#8230;CTDvsUnderway.xlsx file&#8217;s Date_Time as a guide, scroll down the &#8230;UnderwayCrop.txt and find a corresponding date and time.&nbsp;&nbsp;There will be more than one row of data for the time you are trying to match.&nbsp;&nbsp;Try not to bias the selection of the Underway data and just pick the first one you see.&nbsp;Select the four columns, Temp, Salinity, Fluor, Pump, from UnderwayCrop and Copy them, and Paste them to the xlsx file in the last four columns ST, SA, etc.&nbsp;&nbsp;Do this for all the rows in the CTDvsUnderway file.<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 1in; text-indent: -0.25in; text-align: left; \">\n\t<span style=\"mso-list:Ignore\">a.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span>Because the number of rows will change from cruise to cruise, the graph data source will need to be adjusted accordingly.&nbsp;&nbsp;This is important as the linear regression equations shown on the graphs are used to correct the Underway Data in subsequent steps.&nbsp;&nbsp;Save file.<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 39.75pt; text-indent: -21.75pt; text-align: left; \">\n\t<span style=\"mso-list:Ignore\">18.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;<\/span><\/span>For export to MATLAB it is necessary to Cut the xlsx data (numbers no graph info) and paste it into a new UltraEdit .txt file.&nbsp;Name it accordingly (YYMMSS_CTDvsUnderway.txt).<span style=\"mso-spacerun:yes\">&nbsp; <\/span>This is done to remove any .xlsx formatting that may cause MATLAB to choke on import.<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 39.75pt; text-indent: -21.75pt; text-align: left; \">\n\t<span style=\"mso-list:Ignore\">19.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;<\/span><\/span>Start Matlab and load a previously completed .m file as a template (e.g., 0901NH.m).&nbsp;&nbsp;The .m file will have incorrect variable names and notes pertaining to that specific cruise.&nbsp;&nbsp;Change and update accordingly.&nbsp;&nbsp;Also make sure you are working in your current underway folder.<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 1in; text-indent: -0.25in; text-align: left; \">\n\t<span style=\"mso-list:Ignore\">a.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span>Import UnderwayCrop.txt and follow along the notes in the script for error checking and saving data as a .mat file.<br style=\"mso-special-character:\nline-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 1in; text-indent: -0.25in; text-align: left; \">\n\t<span style=\"mso-list:Ignore\">b.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span>&nbsp;Import &#8230;CTDvsUnderway.txt.&nbsp;&nbsp;There will be an error with this as the Date_Time will not ingest properly.&nbsp;&nbsp;Ignore it, the date is not important for plotting <span style=\"mso-spacerun:yes\">&nbsp;<\/span>unless GPS has failed and you need the data and time to correlate with the Event Log GPS to get some coordinates to make these maps.<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 1in; text-indent: -0.25in; text-align: left; \">\n\t<span style=\"mso-list:Ignore\">c.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span>&nbsp;An important step to be aware of is toward the end of the script it asks you to use dlmwrite function to export the final underway data product.<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 39.75pt; text-indent: -21.75pt; text-align: left; \">\n\t<span style=\"mso-list:Ignore\">20.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span>The template m-file will guide you through the entire process.&nbsp;&nbsp;When you get to the regression corrections take the values from the xlsx file graphs that you generated earlier.&nbsp;&nbsp;When you make the Matlab plots they should print into your working folder.<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 39.75pt; text-indent: -21.75pt; text-align: left; \">\n\t<span style=\"mso-list:Ignore\">21.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span>Open a previous yymmplot.ai file in Adobe Illustrator and the first plot from Matlab (i.e., t0901NHpath.eps).&nbsp;&nbsp;Save the .ai file with the current cruise YYMM.<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 1in; text-indent: -0.25in; text-align: left; \">\n\t<span style=\"mso-list:Ignore\">a.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span>In dealing with the .eps file from Matlab you will find that all we really need is the color path and the gradient bar frame and numbers.&nbsp;&nbsp;Ungroup and delete all you don&#8217;t need (coastline, grid, tick marks, gradient color, etc.)<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 1in; text-indent: -0.25in; text-align: left; \">\n\t<span style=\"mso-list:Ignore\">b.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span>Since the path is thousands of small circles, select them all, group them, then copy them to the clipboard.&nbsp;Delete the preexisting path in the .ai file and make sure you paste the new one in the correct .ai layer and resize to fit the station layout \/ cruise path.&nbsp;&nbsp;This isn&#8217;t an exacting process, just make it fit best you can.&nbsp;&nbsp;Make sure to lock\/unlock layers as you go to prevent the pasting \/ editing in the wrong place.<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 1in; text-indent: -0.25in; text-align: left; \">\n\t<span style=\"mso-list:Ignore\">c.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span>Go back to the eps and copy the gradient bar box, tickmarks, and numbers.&nbsp;&nbsp;Since each cruise&#8217;s graph has a different range of values these gradient bars change.&nbsp;&nbsp;The colors stay the same (if you followed the Matlab m-file correctly) but we need to make the new numbers fit the template.&nbsp;&nbsp;&nbsp;Delete the old box and numbers and paste in the new and resize accordingly.&nbsp;&nbsp;Resizing will skew the font so once everything is in the right place check the font setting and set to 18pt Myriad Pro with 100% font stretching in both directions.&nbsp;&nbsp;You will also have to change the decimals and numbers a bit as Matlab tend to separate the numbers after the decimal in eps format.&nbsp;&nbsp;Just delete the end and retype the number using the left half.<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 1in; text-indent: -0.25in; text-align: left; \">\n\t<span style=\"mso-list:Ignore\">d.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span>Unlock and Edit <span style=\"mso-spacerun:yes\">&nbsp;<\/span>the Title layer to the correct cruise designation and dates and title.<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<br style=\"mso-special-character:line-break\" \/><br \/>\n\t<o:p><\/o:p><\/p>\n<p class=\"MsoListParagraph\" style=\"margin-left: 1in; text-indent: -0.25in; text-align: left; \">\n\t<span style=\"mso-list:Ignore\">e.<span new=\"\" style=\"font:7.0pt \" times=\"\">&nbsp;&nbsp;&nbsp;&nbsp; <\/span><\/span>In Illustrator to save as pdf &#8220;save a copy&#8221;, to save as png Use Export (white background, medium resolution, anti aliased) .&nbsp;&nbsp;Open each png in Photoshop and shrink to 75 pixels keep proportionality and rename with a<span style=\"mso-spacerun:yes\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>&#8221; _t&#8221; at the end for the web thumb. <o:p><\/o:p><\/p>\n<p class=\"MsoNormal\" style=\"text-align: left; \">\n\t31.&nbsp;&nbsp;&nbsp;Upload all data and images to calcofi.com FTP Underway_Data directory. <o:p><\/o:p><\/p>\n<p class=\"MsoNormal\" style=\"text-align: left; \">\n\t32.&nbsp;&nbsp;&nbsp;Edit calcofi.com Joomla site with new underway data accordingly. <o:p><\/o:p><\/p>\n<p>\n\t&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Underway Data Processing Methods 1.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Navigate to Underway Data folder and join into a single file, do so using Advanced File Joiner or similar: &nbsp;http:\/\/download.cnet.com\/Advanced-File-Joiner\/3000-2094_4-169639.html a.&nbsp;&nbsp;&nbsp;&nbsp; CalCOFI collects its own data while aboard SIO ships (New Horizon).&nbsp;&nbsp;These are saved in the Events folder of the appropriate cruise.&nbsp;&nbsp;A single file name is similar to: 0901NHMETEV_06012009.csv.&nbsp;&nbsp;Although each [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[19],"tags":[],"class_list":["post-363","post","type-post","status-publish","format-standard","hentry","category-methods"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/mindwander.com\/index.php\/wp-json\/wp\/v2\/posts\/363","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mindwander.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mindwander.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mindwander.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mindwander.com\/index.php\/wp-json\/wp\/v2\/comments?post=363"}],"version-history":[{"count":0,"href":"https:\/\/mindwander.com\/index.php\/wp-json\/wp\/v2\/posts\/363\/revisions"}],"wp:attachment":[{"href":"https:\/\/mindwander.com\/index.php\/wp-json\/wp\/v2\/media?parent=363"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mindwander.com\/index.php\/wp-json\/wp\/v2\/categories?post=363"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mindwander.com\/index.php\/wp-json\/wp\/v2\/tags?post=363"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}