예제 #1
0
        line.set_markeredgewidth(1)
        
    altticks(ax1, ydata, font = font)

    
    ax1.set_ylabel('Altitude [m]', fontsize = font+4, labelpad = 15)

    for line in ax1.yaxis.get_ticklines():
        line.set_markersize(10)
        line.set_markeredgewidth(1)
        
    ax1.axis('tight')
    fig.set_size_inches(figheight*ar,figheight)
    plt.savefig(savetitle,dpi = 100, edgecolor = 'b', bbox_inches = 'tight')
    plt.show()
    
if __name__ == '__main__':
    import pandas as pan
    import os
    import LNC_tools_v2 as LNC

    os.chdir('C:\Users\dashamstyr\Documents\CORALNet\ASCII Files')
    
    
    filename = LNC.get_files('Select file to be plotted', filetype = ('.pickle','*.pickle'))
    df = pan.load(filename[1:-1])
    datetime = df.index
    alt = df.columns

    backscatter_plot(datetime, alt[::-1], df.T[::-1])
import os, sys
import LNC_tools_v2 as LNC
import LNC_plot_v1 as LNCplot

#----------------------------------------------------------------------------
#Uses tools created in LNC_tools to open all files in a folder and resample
#them to a regular spacing in altitude/date the concatenates them into one
#pandas dataframe and plots it using LNC_plot
#July 05, 2010
#----------------------------------------------------------------------------

olddir = os.getcwd()

#os.chdir('C:\Users\User\Documents\CORALNet\Data\ASCII Files')

newdir = LNC.set_dir('Select Event Folder')

os.chdir(newdir)

files = os.listdir(newdir)
maskfiles = []
datafiles = []
procfiles = []
rawfiles = []

#set altitude range and date step sizes

altrange = np.arange(10, 15010, 10)  #meters
timestep = '120S'  #seconds

#check to see if each file has been processed before and separate processed
예제 #3
0
import numpy as np
import os,sys
import LNC_tools_v2 as LNC

#----------------------------------------------------------------------------
#Uses tools created in LNC_tools to open all files in a folder and resample
#them to a regular spacing in altitude/date the concatenates them into one
#pandas dataframe and plots it using LNC_plot
#July 05, 2012
#----------------------------------------------------------------------------

olddir = os.getcwd()

#os.chdir('K:\CORALNet\Data\ASCII Files')

newdir = LNC.set_dir('Select Event Folder')

os.chdir(newdir)

files = os.listdir(newdir)
maskfiles = []
datafiles = []
procfiles = []
rawfiles = []

#set altitude range and date step sizes

altrange = np.arange(10,8010,10)#meters
timestep = '120S' #seconds

#set buffer around backscatter ratio of 1 for mask
예제 #4
0
        line.set_markeredgewidth(1)

    altticks(ax1, ydata, font=font)

    ax1.set_ylabel('Altitude [m]', fontsize=font + 4, labelpad=15)

    for line in ax1.yaxis.get_ticklines():
        line.set_markersize(10)
        line.set_markeredgewidth(1)

    ax1.axis('tight')
    fig.set_size_inches(figheight * ar, figheight)
    plt.savefig(savetitle, dpi=100, edgecolor='b', bbox_inches='tight')
    plt.show()


if __name__ == '__main__':
    import pandas as pan
    import os
    import LNC_tools_v2 as LNC

    os.chdir('C:\Users\dashamstyr\Documents\CORALNet\ASCII Files')

    filename = LNC.get_files('Select file to be plotted',
                             filetype=('.pickle', '*.pickle'))
    df = pan.load(filename[1:-1])
    datetime = df.index
    alt = df.columns

    backscatter_plot(datetime, alt[::-1], df.T[::-1])