Vocal Data Block

Inheritance diagram of tools.vocalDataBlock

This file was an attempt by a previous term to set up tabs in Tkinter to simultaneously load multiple levels of data. After spending a lot of time trying to fix all of the problems with this method, I realized I couldn’t get any further and ended up replacing the tabs with a view menu, which is a lot simpler and works much better. All of the fixes I made can be found in the DataBlock branch on GitHub. I would NOT recommend retrying this method, however. I believe there are some limitations from Tkinter and matplotlib/tkinter that would require vocal to be completely restructured for simultaneous tabs to work.

Currently, this file simply serves to load both L1 and L2 files, although it may be prudent to extract the method from VocalDataBlock.get_file_name(), place it in a separate file, and delete this one

class DataSet(in_type, in_data_set, in_x_range=[0, 5000], in_y_range=[0, 20], in_wavelength=532)[source]

Class of objects that contain data loaded from HDF files

ds_get_x(in_it)[source]

Return either the start, end, or full x range

ds_set_x(in_xrange)[source]

Verify that a correct x rangee was put in, and prepare it for use later Not sure why it has to be a multiple of 5

get_ds_type()[source]

Returns the type of data

set_title()[source]

Sets the title and colorbar lables

class MetaData(in_type=0, in_x_min=0, in_x_max=0, in_y_min=0, in_y_max=0, in_wavelength=532)[source]

DECREPIT - See comments in source

MetaData objects allow the transfer of rendering range and type info to and from Calipso and VocalDataBlock. The functions allow the code to call or set the current variables

class VocalDataBlock(filename)[source]

Loads the HDF files and replaces old functions for plotting each data type.

append_data_sets(in_data_set)[source]

Appends a DataSet to the end of __data_sets

get_x_min(in_iterator, in_type='iterator')[source]

Returns the minimum x value for a given data type (iter, lat, lon, time, %) for a given iterator in __data_sets