MRR_TOOLS CHANGE LOG: Date Modified: Description: 10/10/2013 Fixed error in MRR_Add_Storms for index out of bounds. Occurred when a storm finished at 23:59 and that was the last record in the MRR struct. 10/14/2013 Added change section to frontpage.html for Continuous and Scattered buttons under Storm Continuity. 10/16/2013 Fixed function call in create_categories to reflect name change of function(s) called by it. 10/17/2013 License information added to comment section of all Matlab functions. Text file of license added to MRR_Perusal.zip. 11/04/2013 Fixed create_categories function to work with frontpage.html template file. Previously did not work as designed. 02/09/2015 A lot of time passed since the last update, so a lot of changes have been made: 1) add_next_prev.m -- Added "first_storm" parameter to specify where to begin adding the buttons for next storm, previous storm, etc. 2) calculate_avgs.m -- Fixed issue of getting data from incorrect columns for Alta, UT webpage. This issue arose because in the Alta, UT webpage, the column for AGL was taken out. See no_pressure variable for more details. 3) caller_MRR_read_ukoln.m -- Added a field to MRR struct called dates, which contains the datenums for the MRR corresponding MRR data. Previously, these datenums were contained in the first column of each data field (Z, W, SW). -- Added ability to create a day's worth of NaN values for the MRR struct if a .nc file does not exist in the set of days from datestart to dateend. -- Added ability to fill in missing times within a day of data with rows of NaNs. 4) caller_MRR_simp2matrix.m -- Added a field to MRR struct called dates, which contains the datenums for the MRR corresponding MRR data. Previously, these datenums were contained in the first column of each data field (Z, W, SW). -- Added ability to print out percent completion to command window during runtime. -- Fixed null pointer issue when MRR.header.gatedist did not exist. 5) create_categories.m -- Added error checking for processing of Alta, UT webpage -- Updated function calls to other modified functions (e.g. add_next_prev.m) 6) gen_metar2struct.m -- Added some processing for Alta, UT (metartype == 2) -- Corrected winds to convert mph to m/s 7) MRR_Add_Storms.m -- Added fields for Alta, UT processing (Wildcat Lift data) -- Updated indexing of MRR struct arrays to compensate for dates now being a separate field and no longer in the first column of each data array. -- Fixed possible index out of bounds exception when finding newstart and newend. -- Updated datetick assignment in MRR graphs to be more accurate. 8) MRR_frontpage.m -- Added support for Alta, UT processing (Wildcat Lift data) 9) MRR_Get_METAR.m -- Added support for Alta, UT processing (Wildcat Lift data) -- Changed max windspeed to be calculated from maximum gust wind speed. -- Removed suppport for snow accumulation calculation (use precipitation and snow-water equivalent ratio to determine). -- Adjusted y-scaling on precipitation graphs to be more consistent throughout set of storms and changed units from inches to mm 10) MRR_read_ukoln.m -- Added dates field to MRR struct and removed datenums from first column of each data array. 11) MRR_simp2matrix.m -- Same as MRR_read_ukoln.m 12) MRR_Storm_Detection.m -- Added ability to include a 2nd MRR with higher resolution gate spacing (25 m). The second MRR is appended to the larger-gate-spaced MRR such that the larger-gate-spaced values are duplicated to make the entire MRR volume 25 m gate spacing. -- Updated indexing of MRR struct to include dates field. 13) MRR_stormpage.m -- Added support for Alta, UT processing (Wildcat Lift data) 02/20/2015 Added ability to choose which variables to graph with MRR_Get_METAR.m. Implemented using settings struct. See documentation in the function for details. 05/14/2015 Several fixes have been made: 1) create_categories.m -- Fixed incorrect skipping of comment lines that caused formatting error in HTML file. 2) gen_metar2struct.m -- Added support for MET data obtained from Stony Brook's South P-Lot (accessible here: http://wx.somassbu.org/pages/dataaccess.php). 3) MRR_Add_Storms.m -- Added support for setting the desired image extension (PNG, JPG, EPS, etc). -- Added documentation about the settings struct input and all possible fields. 4) MRR_Storm_Detection.m -- Added code that will remove storms from the date_range list if the storm is less than 5 hours long and has greater than or equal to 80% NaN values in the reflectivity field. 10/16/2015 Several updates have been made to the suite, including one major update which incorporates a lot of new files. This major update allows soundings during a storm to be put into the stormpage (currently only supported for Stony Brook, NY, but support for other locations, as well as general locations, could be added). The updates made to all files are listed below, along with all file additions: 1) caller_MRR_read_ukoln_nc.m -- More robust handling of filling in gaps in the time record for each file. 2) create_categories.m -- Fixed issue where "Continuous" and "Scattered" pages would not get referenced correctly due to a bad search through the current HTML file. 3) *** MRR_stormpage.m -- IMPORTANT UPDATES HAVE BEEN MADE TO THIS FILE -- This file now handles creating a sounding image and producing a sounding table for a given stormpage. These items are displayed beneath all of the default stormpage graphs/data. -- REQUIRED FILES FOR GENERATING SOUNDINGS WITH THIS FUNCTION: i) soundings/adiabat.m ii) soundings/coordinate_transform.m iii) soundings/dry_adiabat.txt iv) soundings/generate_isolines.m v) soundings/get_constants.m vi) soundings/isobar.txt vii) soundings/isohume.m viii) soundings/isohume.txt iv) soundings/isotherm.txt x) soundings/moist_adiabat.txt xi) soundings/skew_t_log_p_construct.m xii) soundings/virtual_temperature.m 4) frontpage.html -- Updated the labels for precipitation type coloring of storms in main perusal table. 5) stormpage.html -- Minor formatting updates that were necessary for inserting soundings into the stormpages. 6) MRR_Get_METAR.m -- Made this more robust in terms of handling when MET data isn't available. 7) MRR_simp2matrix.m -- Was still using the old version of MRR structs... Has been updated, but reading ukoln files is the preferred method. 8) gen_metar2struct.m -- Added support for some more METAR types and updated some old calculations.