plateform
stringclasses
1 value
repo_name
stringlengths
13
113
name
stringlengths
3
74
ext
stringclasses
1 value
path
stringlengths
12
229
size
int64
23
843k
source_encoding
stringclasses
9 values
md5
stringlengths
32
32
text
stringlengths
23
843k
github
dgolden1/vlf_software-master
vlf_spec_multi.m
.m
vlf_software-master/common_dig/vlf_spec_multi.m
2,839
utf_8
3cbc9d7a823e56f5500a3bf3fc6a3a18
function vlf_spec_multi(db_low, db_high, f_high, filenames, pathname, JPEGLocation) % vlf_spec_multi(db_low, db_high, f_high, filenames, pathname, JPEGLocation) % Function to select and process multiple broadband files with vlf_spec % Currently only works with INTERLEAVED PALMER DATA (as of 04/25/2007) % % INPUTS % db...
github
dgolden1/vlf_software-master
ae_read_datenum.m
.m
vlf_software-master/common_dig/ae_read_datenum.m
3,563
utf_8
7c20ecca5fa8007bfc554dc994620afc
function [epoch, ae, al, au, ao] = ae_read_datenum(year, ae_filename) % [epoch, ae] = ae_read_datenum(year, ae_filename) % Function to parse AE data from the Kyoto web site % % Acquire data from here: % http://swdcwww.kugi.kyoto-u.ac.jp/dstae/index.html (15 min) % http://wdc.kugi.kyoto-u.ac.jp/aeasy/index.html (1 min)...
github
dgolden1/vlf_software-master
remove_transmitters.m
.m
vlf_software-master/common_dig/remove_transmitters.m
16,569
utf_8
7b87fc78f92b3a089725a6801b62256b
function [NS_clean,EW_clean] = remove_transmitters(NS,EW,fs,scaleCh1,scaleCh2,samplesToDelayCh2,plotFlag); %syntax: [NS_clean,EW_clean] = remove_transmitters(NS,EW,fs,scaleCh1,scaleCh2,samplesToDelayCh2,plotFlag); % %Inputs: %NS - NS channel (row vector) %EW - EW channel (row vector) %fs - sampling frequency [samples/s...
github
dgolden1/vlf_software-master
matGetVariable.m
.m
vlf_software-master/common_dig/matGetVariable.m
3,902
utf_8
8b6e8293238e0e28f07c83408110bf8e
function [varData]=matGetVariable(fileID,whichVariable,nElements,startOffset,knownVarData) % varData=matGetVariable(fileID,whichVariable,nElements,startOffset,knownVarData); % % Returns a portion of a specified variable from a version 4 (?) MAT file. % The MAT file (fileID) can be specified by name (string) or by an op...
github
dgolden1/vlf_software-master
plotdst_2003.m
.m
vlf_software-master/common_dig/plotdst_2003.m
4,654
utf_8
96301d94738f23daed1df46d117a2ac3
function plotdst_2003(target_month, target_day, bSavePlots, jpeg_output_dir, dst_filename) % plotdst_2003(target_month, target_day, bSavePlots, jpeg_output_dir, dst_filename) % Function to plot DST from 2003 % By Daniel Golden (dgolden1 at stanford dot edu) Oct 22, 2007 % $Id$ %% Setup error(nargchk(2, 5, nargin)); ...
github
dgolden1/vlf_software-master
convert_interleaved_to_twochannel.m
.m
vlf_software-master/common_dig/convert_interleaved_to_twochannel.m
3,836
utf_8
e77fa9d3ff6c32eae2c878b9454e7576
function new_filenames = convert_interleaved_to_twochannel(input_filename, output_dir, station_code, which_channel) % new_filenames = convert_interleaved_to_twochannel(input_filename, output_dir, station_code, num_channels) % Function to convert interleaved broadband data to two-channel broadband % data. % % Station c...
github
dgolden1/vlf_software-master
is_in_polygon.m
.m
vlf_software-master/fwm_code_2d/common/is_in_polygon.m
978
utf_8
ebb28e3a77a59a763c0bb4862dd6625c
function topol=is_in_polygon(x0,y0,xb,yb) % Number of counterclockwise winds of boundary (xb,yb) around the point % (x,y). % Adopted from my earlier IDL function with the same name % Confirm that the region is an island n=length(xb); if length(yb)~=n error('polygon is not valid'); end if(xb(1)~=xb(n) | yb(1)~=yb(n...
github
dgolden1/vlf_software-master
modefinder_curved.m
.m
vlf_software-master/fwm_code_2d/common/modefinder_curved.m
3,150
utf_8
9b91362c5e2480b5ae17873e77dee4bd
function [CTM,CTE,alfTM,alfTE]=modefinder_curved(f,h,sigtot) %MODEFINDER Find all the modes WITHOUT using the TR 1143 algorithm % Works much faster. % Usage: [CTM,CTE,alfTM,alfTE]=modefinder(f,h,sigtot) % Inputs: % f - frequency (Hz) % h - altitudes (km) % sigtot - conductivities at h (mho/m) % Outputs:...
github
dgolden1/vlf_software-master
plot_realestate.m
.m
vlf_software-master/fwm_code_2d/common/plot_realestate.m
3,059
utf_8
71701ab2b00e5e3b5db3820058949975
function house_price=plot_realestate(varargin) %PLOT_REALESTATE Real estate calculations % Usage: % house_price=plot_realestate[(options)] % Options: % loan_rate -- default==[0.04:.001:.16] % max_term -- default=15, use 0 for infinite term % inflation -- default=0.05 % stock_return -- default=0....
github
dgolden1/vlf_software-master
getSpecies.m
.m
vlf_software-master/fwm_code_2d/common/getSpecies.m
2,403
utf_8
cdf2d76780631e478d68b7a2934fbc08
function Nsp=getSpecies(sp,h0,profile) %function Nsp=getSpecies(sp,h0,profile) % Get the species density in m^{-3} as a function of height in km. % Inputs: % sp -- species name(s) ('N2','O2','Ne','O+' etc). Can be a cell array, % like {'N2','O2'} % h0 -- height in km % profile -- atmosphere profile over HAARP...
github
dgolden1/vlf_software-master
ionochem_6spec.m
.m
vlf_software-master/fwm_code_2d/common/ionochem_6spec.m
13,140
utf_8
20e617913b26f8e92d6a06f9ed1fe9a5
function [Nspec,S0,specnames,Nspec0]=ionochem_6spec(varargin) %IONOCHEM_6SPEC Calculate ionosphere ionization as a function of time % % Version 5.4 % % Function to calculate the ionization as a function of time % for the given source of electrons, using a (4-6)-species model. This is % the 4-species model [GPI], extend...
github
dgolden1/vlf_software-master
raytracefluxstrat2.m
.m
vlf_software-master/fwm_code_2d/common/raytracefluxstrat2.m
5,925
utf_8
0469c0674872f95570b272a5b8f14b8a
function [r0,n0,tau]=... raytracefluxstrat2(thp0,php0,thB,h,wp2,w,wH,mode,alfa,debugflag,maxerr) %RAYTRACEFLUXSTRAT2 Ray tracing in stratified plasma % Use a second-order method. % Trace rays in magnetoactive plasma with constant B, which is % stratified in horizontal (xp,yp) plane. % The starting point is at the orig...
github
dgolden1/vlf_software-master
ploterrorbar.m
.m
vlf_software-master/fwm_code_2d/common/ploterrorbar.m
2,997
utf_8
f1d805f09ad92a0dca525b5b8ba9b9d7
function ploterrorbar(x,y,barlen,linewidth,color,arrowlen) % PLOTERRORBAR Plot error bar, vertical or horizontal % If the limit is offscale, the arrow is plotted. % For the sizes of "barlen" and "arrowlen", the relative sizes are used % (the fraction of the axes size). % Usage: % ploterrorbar(x,y,barlen,linewidth,col...
github
dgolden1/vlf_software-master
ionocoeffs_5spec.m
.m
vlf_software-master/fwm_code_2d/common/ionocoeffs_5spec.m
7,442
utf_8
90cac766bfcd71d91724fb8002fc8c78
function [alfad,alfadc,alfai,gamma,beta,Bcoef,gammaX,Xbar]=... ionocoeffs_5spec(varargin) % IONOCOEFF_5SPEC Calculate the ionosphere chemistry coefficients % % Calculate the coefficients in the dynamic 5-species ionosphere model. % IMPORTANT NOTE: all densities are in cm^{-3}. % % Usage: % ------ % [alfad,alfadc,a...
github
dgolden1/vlf_software-master
modefinder_plasma_flat.m
.m
vlf_software-master/fwm_code_2d/common/modefinder_plasma_flat.m
7,431
utf_8
97ab9a445b01ca3e39b6a1abbeac54ca
function [C,alf,permrot,C0box,Fbox]=modefinder_plasma_flat(varargin) %MODEFINDER_PLASMA_FLAT Find modes using flat Earth, nonisotropic medium % Usage: % [C,alf,permrot]=modefinder(k0,h,perm,isvacuum,phi); % EH=reflectplasma_modestruct(C(1),k0,h,permrot,isvacuum,hi); % Inputs: % k0 == w/c % h (M x ...
github
dgolden1/vlf_software-master
modefinder_slow.m
.m
vlf_software-master/fwm_code_2d/common/modefinder_slow.m
1,795
utf_8
078c30116ebaf01fbac108ecf1070cdd
function [CTM,CTE,alfTM,alfTE]=modefinder_slow(varargin) %MODEFINDER Find all the modes using the TR 1143 algorithm % Usage: [CTM,CTE,alfTM,alfTE]=modefinder_slow(f,h,sigtot) % Inputs: % f - frequency (Hz) % h - altitudes (km) % sigtot - conductivities at h (mho/m) % Outputs: % CTM, CTE = kz/k0 fo...
github
dgolden1/vlf_software-master
rootsearch_tri.m
.m
vlf_software-master/fwm_code_2d/common/rootsearch_tri.m
9,437
utf_8
1b9fc6fa171b092ac919e72a030ab666
function [Csol,Cpole]=rootsearch_tri(varargin) % Search for the roots of complex function F in an arbitrary region with % triangles method. % Usage: % Csol=rootsearch(@F,params,boundary,dC,options); % Cmin -- lower left corner % Cmax -- upper right corner % dC=.01*(1+i); % Parse arguments and default values keys={'t...
github
dgolden1/vlf_software-master
plotcma.m
.m
vlf_software-master/fwm_code_2d/common/plotcma.m
8,194
utf_8
d25763f0c5f752c1a431e46bd09981fe
function plotcma(mM,scale,xlim,ylim) % PLOTCMA Plot the Clemmow-Mullaly-Allis diagram for cold 2-comp plasma % Usage: % plotcma(mM,scale,xlim,ylim) % Inputs: % mM -- mass ratio me/mi (default=0.1); % scale -- 'linear' (default) or 'log' % xlim,ylim -- the limits for the parameters X=Xe=wpe^2/w^2 and Y=Ye=wHe/...
github
dgolden1/vlf_software-master
ionocoeffs_6spec.m
.m
vlf_software-master/fwm_code_2d/common/ionocoeffs_6spec.m
12,586
utf_8
7cb59eb08af0fe88f423b771390d55f4
function [alfad,alfadc,alfai,gamma,beta,Bcoef,gammaX,Xbar,gamac,betaas,bran]=... ionocoeffs_6spec(varargin) % IONOCOEFF_6SPEC Calculate the ionosphere chemistry coefficients % % Version 5.4 (must match the version of IONOCHEM_6SPEC) % % Calculate the coefficients in the dynamic 6-species ionosphere model. % IMPORTA...
github
dgolden1/vlf_software-master
ionochem_5spec.m
.m
vlf_software-master/fwm_code_2d/common/ionochem_5spec.m
11,426
utf_8
8ac22ff3bfa437b3d8604d54cec720e6
function [Nspec,S0,specnames,Nspec0]=ionochem_5spec(varargin) %IONOCHEM_5SPEC Calculate ionization as a function of time % % Version 4.1 % % Function to calculate the ionization as a function of time % for the given source of electrons, using a 5-species model. This is the % 4-species model [GPI], extended with one mor...
github
dgolden1/vlf_software-master
modefinder.m
.m
vlf_software-master/fwm_code_2d/common/modefinder.m
4,157
utf_8
bd078c1ddbff937749e8681f5ea96517
function [CTM,CTE,alfTM,alfTE]=modefinder(varargin) %MODEFINDER Find all the modes WITHOUT using the TR 1143 algorithm % Works much faster. % Usage: [CTM,CTE,alfTM,alfTE]=modefinder(f,h,sigtot) % Inputs: % f - frequency (Hz) % h - altitudes (km) % sigtot - conductivities at h (mho/m) % Outputs: % CTM,...
github
dgolden1/vlf_software-master
BetheIntegral.m
.m
vlf_software-master/fwm_code_2d/common/particle/BetheIntegral.m
1,080
utf_8
40dea4bc72f0c02d85247d7e23757fb0
function res=BetheIntegral(m,n,p,a,b,cosab) % Integral (1/4*pi) \int d\Omega q^{-2m}(E-p_\parallel)^{-n} % Based on % Gluckstern and Hall (1953), doi:10.1103/PhysRev.90.1030 % Only for cases {0,1},{1,0},{0,2},{2,0},{1,1},{1,2},{2,1},{2,-1} didswap=0; if m<n % Switch the places didswap=1; [m,n]=swap(m,n); ...
github
dgolden1/vlf_software-master
get_ae_star_from_ae.m
.m
vlf_software-master/themis/get_ae_star_from_ae.m
1,528
utf_8
ffb04f4658aaf82bcb7d4f1c351d73c5
function [ae_star, ae_star_epoch] = get_ae_star_from_ae(ae_epoch, ae) % Determine AE*, the maximum AE in the past three hours % By Daniel Golden (dgolden1 at stanford dot edu) October 2011 % $Id$ addpath(fullfile(danmatlabroot, 'vlf', 'minmaxfilter')); d_ae_epoch = median(diff(ae_epoch)); numtaps = round(3/24/d_ae_e...
github
dgolden1/vlf_software-master
plot_palmer_themis_correlation.m
.m
vlf_software-master/themis/plot_palmer_themis_correlation.m
14,666
utf_8
60581bda1a55b3eb7c93ef106ad99a31
function plot_palmer_themis_correlation(em_type) % Plot some coincident wave measurements between Palmer and THEMIS % By Daniel Golden (dgolden1 at stanford dot edu) May 2011 % $Id$ %% Setup close all; if ~exist('em_type', 'var') || isempty(em_type) em_type = 'hiss'; end load(sprintf('palmer_themis_common_epoch_%...
github
dgolden1/vlf_software-master
plot_ephemeris.m
.m
vlf_software-master/themis/plot_ephemeris.m
10,980
utf_8
bec532d6953d692c6885797824b7fb99
function plot_ephemeris(start_datenum, end_datenum, varargin) % Plot THEMIS ephemeris data in the equatorial plane % % plot_ephemeris(start_datenum, end_datenum, 'param', value, ...) % % INPUTS % start_datenum, end_datenum: date range to include % % PARAMETERS % probe: cell array of strings of THEMIS probes. E.g., ...
github
dgolden1/vlf_software-master
test_dphi_mp_dt.m
.m
vlf_software-master/themis/test_dphi_mp_dt.m
4,396
utf_8
ad072c2abd942b53d1921f150e36483e
function test_dphi_mp_dt % Perform some tests on the solar wind index "dphi_mp_dt" from [Newell, % 2007, doi:10.1029/2006JA012015] % % It should have a correlation of around 0.83 % By Daniel Golden (dgolden1 at stanford dot edu) July 2011 % $Id$ close all; % clear; %% Correlation between dphi_mp_dt and ...
github
dgolden1/vlf_software-master
test_garch.m
.m
vlf_software-master/themis/test_garch.m
2,550
utf_8
57a808690c86f2d971618f2dea33a205
function test_garch % A little script to test how sequentialfs and garchfit work % By Daniel Golden (dgolden1 at stanford dot edu) July 2011 % $Id$ %% Setup close all; %% Construct x and y % ae = load('ae.mat'); % kp = load('kp.mat'); % % epoch = kp.kp_date(kp.kp_date >= datenum([2009 01 01 0 0 0]) & kp.kp_date < d...
github
dgolden1/vlf_software-master
get_exponential_models.m
.m
vlf_software-master/themis/get_exponential_models.m
5,085
utf_8
9286a6b15d89adbfee22e4a0c81e0c2c
function get_exponential_models % Function to determine coefficient and number of hours history for % exponential models of hiss predictors % By Daniel Golden (dgolden1 at stanford dot edu) July 2011 % $Id$ %% Setup close all; qd = load('QinDenton_15min_2008-2010.mat'); th = load('palmer_themis_common_epoch_hiss.mat...
github
dgolden1/vlf_software-master
read_dfb_cdf.m
.m
vlf_software-master/themis/read_dfb_cdf.m
2,839
utf_8
9b167d26ef23bd8aa3aa2054f3f511fe
function [time, data, f_center, f_bw, f_lim] = read_dfb_cdf(filename, varargin) % [time, data, f_center, f_bw] = read_dfb_cdf(filename, 'param', value) % Parse data from a THEMIS digital fields board (DFB) CDF file % % INPUTS % filename: CDF filename % % PARAMETERS % 'var': DFB parameter to read. This should...
github
dgolden1/vlf_software-master
make_wave_map_movie.m
.m
vlf_software-master/themis/make_wave_map_movie.m
8,452
utf_8
c2633eab2830d0a2240e9075b3ee4e61
function make_wave_map_movie(start_datenum, end_datenum, dt) % Show evolution of a wave map over an actual time period % By Daniel Golden (dgolden1 at stanford dot edu) January 2012 % $Id$ %% Setup t_net_start = now; input_dir = fullfile(vlfcasestudyroot, 'themis_emissions'); output_dir = '~/temp'; if ~exist('start...
github
dgolden1/vlf_software-master
themis_solarwind_armax.m
.m
vlf_software-master/themis/themis_solarwind_armax.m
9,082
utf_8
1d23918a8c039f390f68eeb6e37ad91c
function themis_solarwind_armax(em_type, b_nnet, output_dir, pool_size) % Predict THEMIS emission amplitude using solar wind % By Daniel Golden (dgolden1 at stanford dot edu) October 2011 % $Id$ %% Setup close all; if ~exist('em_type', 'var') || isempty(em_type) em_type = 'hiss'; end if ~exist('b_nnet', 'var') || ...
github
dgolden1/vlf_software-master
palmer_themis_glm.m
.m
vlf_software-master/themis/palmer_themis_glm.m
31,766
utf_8
093046e354eb0a677372f58a8c267662
function palmer_themis_glm(em_type) % Make a generalized linear model or neural network to predict THEMIS hiss % amplitude from various geophysical parameters and Palmer % By Daniel Golden (dgolden1 at stanford dot edu) May 2011 % $Id$ %% Setup close all; if ~exist('em_type', 'var') || isempty(em_type) em_type = '...
github
dgolden1/vlf_software-master
get_dfb_by_em_type.m
.m
vlf_software-master/themis/get_dfb_by_em_type.m
6,555
utf_8
eb33ab6effc248d157896adbbe7c7de2
function [epoch, field_power, eph] = get_dfb_by_em_type(probe, em_type) % Get DFB data for either chorus or hiss % % [epoch, field_power, eph] = get_dfb_by_em_type(probe, em_type) % % INPUTS % probe: one of 'A', 'B', 'C', 'D' or 'E' % em_type: one of 'chorus', 'hiss' or 'both' % % OUTPUTS % epoch: datenum of each po...
github
dgolden1/vlf_software-master
collect_dens_data.m
.m
vlf_software-master/themis/collect_dens_data.m
1,620
utf_8
963cfd5bec17c4eeb3db849944ea3f0a
function [epoch, dens, loc_flag, probe] = collect_dens_data(them_dens_dir) % Collect THEMIS density data from ASCII files into the workspace % % [epoch, dens, loc_flag, probe_out] = collect_dens_data(start_datenum, end_datenum, probe) % % INPUTS % probe: one of 'a', 'b', 'c', 'd' or 'e' % % These ASCII files density...
github
dgolden1/vlf_software-master
collect_dfb_data.m
.m
vlf_software-master/themis/collect_dfb_data.m
3,772
utf_8
644aa6729c1896ad778be4ad01574a16
function [epoch, data, b_ac, f_lim] = collect_dfb_data(year, probe, instrument) % Scan a mess of THEMIS DFB CDFs to greate a big matrix of magnetic field data % % [epoch, data, f_lim] = collect_dfb_data(year, probe, instrument) % % INPUTS % year: either a 4-digit year or 'all' to get all available years % probe: one ...
github
dgolden1/vlf_software-master
plot_scm1.m
.m
vlf_software-master/themis/plot_scm1.m
2,106
utf_8
c2cfb158fa8ae2c6ca06ee0a73e8862b
function varargout = plot_scm1(start_datenum, end_datenum, varargin) % h_ax = plot_scm1(start_datenum, end_datenum, 'param', value) % % Plot search coil magnetometer data % % PARAMETERS % 'probe': one of 'A', 'B', 'C', 'D', 'E' % 'plot_type': one of 'line' (default) or 'pcolor' (for a % pseudo-spectrogram) %% Parse ...
github
dgolden1/vlf_software-master
them_solarwind_feature_select.m
.m
vlf_software-master/themis/them_solarwind_feature_select.m
2,299
utf_8
2cfe17b5e6303c4107a1ddcf20a3d921
function [X_new, X_names_new] = them_solarwind_feature_select(Y, X, X_names, max_num_features) % Select subset of predictors using cross-validation % By Daniel Golden (dgolden1 at stanford dot edu) November 2011 % $Id$ % NOTE: Because it is "cheating" to use future time series values to % predict earlier time series ...
github
dgolden1/vlf_software-master
humstractor.m
.m
vlf_software-master/humblaster/humstractor.m
18,766
utf_8
d8efe338fe0c177fa0623540fca3a073
function [Output, PowerLineSignal, WeightedFrequency, FrequencyMeasurementTimes] = humstractor(data_input, fs, NominalHumFreq, HumDecayTime, FrequencyDecayTime, PlotTrackedFrequency, PlotPowerLineSignal) %------------------------------------------------ %--------------- THE HUMSTRACTOR ---------------- %-------------...
github
dgolden1/vlf_software-master
make_palmer_pp_1d_db_files.m
.m
vlf_software-master/image_euv/make_palmer_pp_1d_db_files.m
2,632
utf_8
9362616134ef626680770f647a08f807
function make_palmer_pp_1d_db_files % Script to create database of Palmer plasmapause plots % By Daniel Golden (dgolden1 at stanford dot edu) May 2008 % $Id$ %% Setup close all; % PALMER_LONGITUDE = -64.05; PALMER_MLT = -(4 + 1/60)/24; % In units of days from UT %% Parallel PARALLEL = true; if ~PARALLEL warning('...
github
dgolden1/vlf_software-master
plot_pp_emission_correlation.m
.m
vlf_software-master/image_euv/plot_pp_emission_correlation.m
10,504
utf_8
c49618e8eac611377775077f358308d5
function plot_pp_emission_correlation(plot_type, em_type, mlt_sector) % plot_pp_emission_correlation(plot_type, em_type, mlt_sector) % % Plots correlation between emissions and plasmapause location % % em_type can be one of 'hiss' or 'chorus' % plot_type can be one of % ampl_l_scatter -- scatter plot of emission amp...
github
dgolden1/vlf_software-master
norm_occur_l_ae_biv_hist.m
.m
vlf_software-master/image_euv/norm_occur_l_ae_biv_hist.m
19,112
utf_8
e0410e191b07c3af7800b898b4db0ba0
function norm_occur_l_ae_biv_hist(events, outliers, em_type, palmer_pp_db, DG, mlt_sector, ax, biv_mod_idx, biv_mod_sub_idx) % norm_occur_l_ae_biv_hist(events, outliers, em_type, palmer_pp_db, DG, mlt_sector, ax, biv_mod_idx, biv_mod_sub_idx) % % bivariate histogram of normalized emission occurrence (dependent variabl...
github
dgolden1/vlf_software-master
plot_palmer_pp_db.m
.m
vlf_software-master/image_euv/plot_palmer_pp_db.m
11,567
utf_8
8372e98a62a22596404f52bae3fc0032
function varargout = plot_palmer_pp_db(plot_type, start_datenum, end_datenum, varargin) % plot_palmer_pp_db(plot_type, start_datenum, end_datenum, varargin) % Plot the palmer plasmapause db in different ways % % plot_type can be one of: % date_l_scatter (default) -- scatter plot of L vs. date, color coded by MLT % m...
github
dgolden1/vlf_software-master
CreateScott_SummaryPlot.m
.m
vlf_software-master/nb_summary_plots/CreateScott_SummaryPlot.m
6,425
utf_8
d079c2c11583944d9a75c48e049cf4bb
% ========================================================================= % Inputs: % plotData: Structure of data of arbitrary length. Will Plot all % data passed in on the same plot. % Example of plotData % Tx: 'NAA' % data: [1x43200 double] % ...
github
dgolden1/vlf_software-master
batch_nb_summary_plot.m
.m
vlf_software-master/nb_summary_plots/batch_nb_summary_plot.m
5,574
utf_8
1f6e5f76c2d63fdd78a7c8f4fcf8997c
function batch_nb_summary_plot % Make 24-hour narrowband plots on scott % $Id$ [~, hostname] = unix('hostname'); switch hostname(1:end-1) % Get rid of newline case 'quadcoredan.stanford.edu' output_dir = '~/temp/nb_summary_plots'; narrowband_dir = '/media/scott/awesome/narrowband/palmer/2009/01_13'; nb_summ_dir...
github
dgolden1/vlf_software-master
plotNB_Summary4scott.m
.m
vlf_software-master/nb_summary_plots/plotNB_Summary4scott.m
2,775
utf_8
24023d865649723ba9a1d222b8c12d1d
function f1 = plotNB_Summary4scott(pathIn,tx) % f1 = plotNB_Summary4scott(pathIn,tx) % % Make a narrowband summary plot for a given folder and transmitter pair % Originally by Ben Cotts % Modified by Daniel Golden (dgolden1 at stanford dot edu) % $Id$ if ~exist('pathIn','var'); pathIn = 'Z:\raw_data\narrowb...
github
dgolden1/vlf_software-master
GetScottData.m
.m
vlf_software-master/nb_summary_plots/GetScottData.m
4,970
utf_8
fa3d6d484c4230f5da154b2d11c27763
% ========================================================================= % Inputs: % fullDataDir: Directory and filename where data is saved % % Outputs: % LRdataStruct: the Low res data, start time, transmitter, fs % % Date Created: Feb 12, 2010 % Date Modified: % =======================...
github
dgolden1/vlf_software-master
is_in_polygon.m
.m
vlf_software-master/fwm_common/is_in_polygon.m
978
utf_8
ebb28e3a77a59a763c0bb4862dd6625c
function topol=is_in_polygon(x0,y0,xb,yb) % Number of counterclockwise winds of boundary (xb,yb) around the point % (x,y). % Adopted from my earlier IDL function with the same name % Confirm that the region is an island n=length(xb); if length(yb)~=n error('polygon is not valid'); end if(xb(1)~=xb(n) | yb(1)~=yb(n...
github
dgolden1/vlf_software-master
modefinder_curved.m
.m
vlf_software-master/fwm_common/modefinder_curved.m
3,150
utf_8
9b91362c5e2480b5ae17873e77dee4bd
function [CTM,CTE,alfTM,alfTE]=modefinder_curved(f,h,sigtot) %MODEFINDER Find all the modes WITHOUT using the TR 1143 algorithm % Works much faster. % Usage: [CTM,CTE,alfTM,alfTE]=modefinder(f,h,sigtot) % Inputs: % f - frequency (Hz) % h - altitudes (km) % sigtot - conductivities at h (mho/m) % Outputs:...
github
dgolden1/vlf_software-master
plot_realestate.m
.m
vlf_software-master/fwm_common/plot_realestate.m
3,059
utf_8
71701ab2b00e5e3b5db3820058949975
function house_price=plot_realestate(varargin) %PLOT_REALESTATE Real estate calculations % Usage: % house_price=plot_realestate[(options)] % Options: % loan_rate -- default==[0.04:.001:.16] % max_term -- default=15, use 0 for infinite term % inflation -- default=0.05 % stock_return -- default=0....
github
dgolden1/vlf_software-master
getSpecies.m
.m
vlf_software-master/fwm_common/getSpecies.m
2,599
utf_8
63355d91dffe72846350ef7d371d1517
function Nsp=getSpecies(sp,h0,profile) %function Nsp=getSpecies(sp,h0,profile) % Get the species density in m^{-3} as a function of height in km. % Inputs: % sp -- species name(s) ('N2','O2','Ne','O+' etc). Can be a cell array, % like {'N2','O2'} % h0 -- height in km % profile -- atmosphere profile over HAARP...
github
dgolden1/vlf_software-master
ionochem_6spec.m
.m
vlf_software-master/fwm_common/ionochem_6spec.m
13,140
utf_8
20e617913b26f8e92d6a06f9ed1fe9a5
function [Nspec,S0,specnames,Nspec0]=ionochem_6spec(varargin) %IONOCHEM_6SPEC Calculate ionosphere ionization as a function of time % % Version 5.4 % % Function to calculate the ionization as a function of time % for the given source of electrons, using a (4-6)-species model. This is % the 4-species model [GPI], extend...
github
dgolden1/vlf_software-master
raytracefluxstrat2.m
.m
vlf_software-master/fwm_common/raytracefluxstrat2.m
5,925
utf_8
0469c0674872f95570b272a5b8f14b8a
function [r0,n0,tau]=... raytracefluxstrat2(thp0,php0,thB,h,wp2,w,wH,mode,alfa,debugflag,maxerr) %RAYTRACEFLUXSTRAT2 Ray tracing in stratified plasma % Use a second-order method. % Trace rays in magnetoactive plasma with constant B, which is % stratified in horizontal (xp,yp) plane. % The starting point is at the orig...
github
dgolden1/vlf_software-master
ploterrorbar.m
.m
vlf_software-master/fwm_common/ploterrorbar.m
2,997
utf_8
f1d805f09ad92a0dca525b5b8ba9b9d7
function ploterrorbar(x,y,barlen,linewidth,color,arrowlen) % PLOTERRORBAR Plot error bar, vertical or horizontal % If the limit is offscale, the arrow is plotted. % For the sizes of "barlen" and "arrowlen", the relative sizes are used % (the fraction of the axes size). % Usage: % ploterrorbar(x,y,barlen,linewidth,col...
github
dgolden1/vlf_software-master
ionocoeffs_5spec.m
.m
vlf_software-master/fwm_common/ionocoeffs_5spec.m
7,442
utf_8
90cac766bfcd71d91724fb8002fc8c78
function [alfad,alfadc,alfai,gamma,beta,Bcoef,gammaX,Xbar]=... ionocoeffs_5spec(varargin) % IONOCOEFF_5SPEC Calculate the ionosphere chemistry coefficients % % Calculate the coefficients in the dynamic 5-species ionosphere model. % IMPORTANT NOTE: all densities are in cm^{-3}. % % Usage: % ------ % [alfad,alfadc,a...
github
dgolden1/vlf_software-master
modefinder_plasma_flat.m
.m
vlf_software-master/fwm_common/modefinder_plasma_flat.m
7,431
utf_8
97ab9a445b01ca3e39b6a1abbeac54ca
function [C,alf,permrot,C0box,Fbox]=modefinder_plasma_flat(varargin) %MODEFINDER_PLASMA_FLAT Find modes using flat Earth, nonisotropic medium % Usage: % [C,alf,permrot]=modefinder(k0,h,perm,isvacuum,phi); % EH=reflectplasma_modestruct(C(1),k0,h,permrot,isvacuum,hi); % Inputs: % k0 == w/c % h (M x ...
github
dgolden1/vlf_software-master
modefinder_slow.m
.m
vlf_software-master/fwm_common/modefinder_slow.m
1,795
utf_8
078c30116ebaf01fbac108ecf1070cdd
function [CTM,CTE,alfTM,alfTE]=modefinder_slow(varargin) %MODEFINDER Find all the modes using the TR 1143 algorithm % Usage: [CTM,CTE,alfTM,alfTE]=modefinder_slow(f,h,sigtot) % Inputs: % f - frequency (Hz) % h - altitudes (km) % sigtot - conductivities at h (mho/m) % Outputs: % CTM, CTE = kz/k0 fo...
github
dgolden1/vlf_software-master
rootsearch_tri.m
.m
vlf_software-master/fwm_common/rootsearch_tri.m
9,437
utf_8
1b9fc6fa171b092ac919e72a030ab666
function [Csol,Cpole]=rootsearch_tri(varargin) % Search for the roots of complex function F in an arbitrary region with % triangles method. % Usage: % Csol=rootsearch(@F,params,boundary,dC,options); % Cmin -- lower left corner % Cmax -- upper right corner % dC=.01*(1+i); % Parse arguments and default values keys={'t...
github
dgolden1/vlf_software-master
plotcma.m
.m
vlf_software-master/fwm_common/plotcma.m
9,039
utf_8
3a1655b26d519c9bad83195397f6350d
function plotcma(mM,scale,xlim,ylim,draw_legend) % PLOTCMA Plot the Clemmow-Mullaly-Allis diagram for cold 2-comp plasma % Usage: % plotcma(mM,scale,xlim,ylim) % Inputs: % mM -- mass ratio me/mi (default=0.1); % scale -- 'linear' (default) or 'log' % xlim,ylim -- the limits for the parameters X=Xe=wpe^2/w^2 a...
github
dgolden1/vlf_software-master
ionocoeffs_6spec.m
.m
vlf_software-master/fwm_common/ionocoeffs_6spec.m
12,586
utf_8
7cb59eb08af0fe88f423b771390d55f4
function [alfad,alfadc,alfai,gamma,beta,Bcoef,gammaX,Xbar,gamac,betaas,bran]=... ionocoeffs_6spec(varargin) % IONOCOEFF_6SPEC Calculate the ionosphere chemistry coefficients % % Version 5.4 (must match the version of IONOCHEM_6SPEC) % % Calculate the coefficients in the dynamic 6-species ionosphere model. % IMPORTA...
github
dgolden1/vlf_software-master
ionochem_5spec.m
.m
vlf_software-master/fwm_common/ionochem_5spec.m
11,426
utf_8
8ac22ff3bfa437b3d8604d54cec720e6
function [Nspec,S0,specnames,Nspec0]=ionochem_5spec(varargin) %IONOCHEM_5SPEC Calculate ionization as a function of time % % Version 4.1 % % Function to calculate the ionization as a function of time % for the given source of electrons, using a 5-species model. This is the % 4-species model [GPI], extended with one mor...
github
dgolden1/vlf_software-master
modefinder.m
.m
vlf_software-master/fwm_common/modefinder.m
4,157
utf_8
bd078c1ddbff937749e8681f5ea96517
function [CTM,CTE,alfTM,alfTE]=modefinder(varargin) %MODEFINDER Find all the modes WITHOUT using the TR 1143 algorithm % Works much faster. % Usage: [CTM,CTE,alfTM,alfTE]=modefinder(f,h,sigtot) % Inputs: % f - frequency (Hz) % h - altitudes (km) % sigtot - conductivities at h (mho/m) % Outputs: % CTM,...
github
dgolden1/vlf_software-master
BetheIntegral.m
.m
vlf_software-master/fwm_common/particle/BetheIntegral.m
1,080
utf_8
40dea4bc72f0c02d85247d7e23757fb0
function res=BetheIntegral(m,n,p,a,b,cosab) % Integral (1/4*pi) \int d\Omega q^{-2m}(E-p_\parallel)^{-n} % Based on % Gluckstern and Hall (1953), doi:10.1103/PhysRev.90.1030 % Only for cases {0,1},{1,0},{0,2},{2,0},{1,1},{1,2},{2,1},{2,-1} didswap=0; if m<n % Switch the places didswap=1; [m,n]=swap(m,n); ...
github
dgolden1/vlf_software-master
whistler_penetration_3d_script.m
.m
vlf_software-master/fwm_whistler/whistler_penetration_3d_script.m
4,309
utf_8
8eac588f7726981a8649904d346b77d9
function whistler_penetration_3d_script(f_vec, L_vec, iteration_start, iteration_end, b_use_palmer_limits) % If L_vec is 0, the simulation is run with b0 as it is at Palmer % If b_use_palmer_limits is true, the x-limits are defined so that Palmer % is contained in the simulation grid % $Id$ %% Make an extra directory...
github
dgolden1/vlf_software-master
vlfGui.m
.m
vlf_software-master/vlftool_24_hour_fcn/vlfGui.m
18,266
utf_8
4633f2c9a54a24e7e08a719d2c46222e
function varargout = vlfGui(varargin) %VLFGUI M-file for vlfGui.fig % VLFGUI, by itself, creates a new VLFGUI or raises the existing % singleton*. % % H = VLFGUI returns the handle to a new VLFGUI or the handle to % the existing singleton*. % % VLFGUI('Property','Value',...) creates a new VLFGU...
github
dgolden1/vlf_software-master
process_multi_dirs_24.m
.m
vlf_software-master/vlftool_24_hour_fcn/process_multi_dirs_24.m
3,809
utf_8
0b80171701ab3a6f57dc1d5ea53757a5
function process_multi_dirs_24(year) % Make 24-hour plots on a bunch of folders % $Id$ %% Setup if ~exist('year', 'var') || isempty(year) year = 2001; end [stat, hostname] = unix('hostname'); switch hostname(1:end-1) % Get rid of newline case 'vlf-alexandria' destinPath = '/home/dgolden/array_dgolden/output/sy...
github
dgolden1/vlf_software-master
vlfSettingsGui.m
.m
vlf_software-master/vlftool_24_hour_fcn/vlfSettingsGui.m
12,264
utf_8
77b96c4fb7bdc5b3764f94fe3fd5ec8e
function varargout = vlfSettingsGui(varargin) % VLFSETTINGSGUI M-file for vlfSettingsGui.fig % VLFSETTINGSGUI, by itself, creates a new VLFSETTINGSGUI or raises the existing % singleton*. % % H = VLFSETTINGSGUI returns the handle to a new VLFSETTINGSGUI or the handle to % the existing singleton*. % ...
github
dgolden1/vlf_software-master
vlfProcessPage.m
.m
vlf_software-master/vlftool_24_hour_fcn/vlfProcessPage.m
3,269
utf_8
c22a18c71a16b55271e01d22f723aef6
function vlfProcessPage % $Id$ global DF; %% Create new figure if DF.bContSpec vlfNewFigure( 'bbfig' ); else vlfNewFigureOriginal( 'bbfig' ); end bbrec = vlfLoadData( DF.filename{1}, DF.pathname, DF.startSec(1), DF.endSec(1) ); set(DF.fig, 'Name', datestr( bbrec.startDate, 'yyyymmdd') ); sitename = lower(bbrec.s...
github
dgolden1/vlf_software-master
vlfProcessPage_old.m
.m
vlf_software-master/vlftool_24_hour_fcn/vlfProcessPage_old.m
3,051
utf_8
69ecb3df0d017dd388e714836dc84270
function vlfProcessPage % $Id$ global DF; %% Loop over subplots startDates = zeros(1, DF.numPlots); for( k = 1:DF.numPlots ) % disp(['** ' num2str(k) ' (' DF.filename{k} ') **']); disp(sprintf('Processing segment %d of %d (%s)', k, DF.numPlots, DF.filename{k})); % % Skip over files with errors % try vlfL...
github
dgolden1/vlf_software-master
vlfPlotSpecgramContinuous.m
.m
vlf_software-master/vlftool_24_hour_fcn/vlfPlotSpecgramContinuous.m
7,047
utf_8
a6019c229fd5426212d5762c47ab9a1e
function vlfPlotSpecgramContinuous(Bt, F, T, titlestr, startDates, colorLabel, cax) % Plot a continuous version of the spectrogram on one image (instead of % lots of little images). This version works a lot better when exporting to % a vector graphics format. % By Daniel Golden (dgolden1 at stanford dot edu) June 2008...
github
dgolden1/vlf_software-master
make_fake_data.m
.m
vlf_software-master/vlftool_24_hour_fcn/southpole_test/make_fake_data.m
1,512
utf_8
72bfef505b55e4c7d286d23b28ae4377
function make_fake_data % Use a single Synoptic data file from South Pole to create a fake days' % worth of synoptic data, on which I can test my 24-hour spectrogram script % By Daniel Golden (dgolden1 at stanford dot edu) April 2011 % $Id$ source_dir = '/home/dgolden/temp/southpole_data/original'; dest_dir = '/home/...
github
dgolden1/vlf_software-master
palmer_pp_image_gui.m
.m
vlf_software-master/palmer_pp_image_gui/palmer_pp_image_gui.m
27,983
utf_8
a2b0947e7cfb0bfbe6effaab9c802214
function varargout = palmer_pp_image_gui(varargin) % PALMER_PP_IMAGE_GUI M-file for palmer_pp_image_gui.fig % PALMER_PP_IMAGE_GUI, by itself, creates a new PALMER_PP_IMAGE_GUI or raises the existing % singleton*. % % H = PALMER_PP_IMAGE_GUI returns the handle to a new PALMER_PP_IMAGE_GUI or the handle to...
github
dgolden1/vlf_software-master
lanl_sat_gui.m
.m
vlf_software-master/plot_lanl_pos/lanl_sat_gui.m
11,472
utf_8
0117a14852500cadeeb7fd3de012875b
function varargout = lanl_sat_gui(varargin) % LANL_SAT_GUI M-file for lanl_sat_gui.fig % LANL_SAT_GUI, by itself, creates a new LANL_SAT_GUI or raises the existing % singleton*. % % H = LANL_SAT_GUI returns the handle to a new LANL_SAT_GUI or the handle to % the existing singleton*. % % LANL_SA...
github
dgolden1/vlf_software-master
plot_efield_by_track.m
.m
vlf_software-master/demeter/plot_efield_by_track.m
1,576
utf_8
cffe3f56452ae30edb9fd8e0412c4827
function plot_efield_by_track(start_datenum, end_datenum, h_ax) % plot_efield_by_track(start_datenum, end_datenum, h_ax) % Plot Demeter e-field data by track as an average amplitude in a given % frequency band % By Daniel Golden (dgolden1 at stanford dot edu) March 2011 % $Id$ %% Setup addpath(fullfile(danmatlabroot,...
github
dgolden1/vlf_software-master
sup_ep_daily_thresh.m
.m
vlf_software-master/nldn/sup_ep_daily_thresh.m
1,255
utf_8
04f3fed426351c02b4590b01c56cc74a
function hiss_nohiss_out = sup_ep_daily_thresh(hiss_nohiss_in, N_norm_total_matrix, idx, hours, num_days_thresh) % Helper function for hiss_nldn_superposed_epoch_hourly() % % Function to set bins in hiss_nohiss_in as nan if they have fewer days of % lightning than specified in num_days_thresh. % idx should be the inde...
github
dgolden1/vlf_software-master
plot_nldn.m
.m
vlf_software-master/nldn/plot_nldn.m
7,694
utf_8
2fa63f6c260b3e8721d6a629c66a1567
function plot_nldn(start_datenum, end_datenum, varargin) % plot_nldn(start_datenum, end_datenum, 'param', value) % % Function to plot NLDN/GLD360 data % % INPUTS % start_datenum, end_datenum: time range of values to plot % % PARAMETERS % 'nldn_filename': specify a specific NLDN filename to use; otherwise, it % will be...
github
dgolden1/vlf_software-master
convert_nldn_text_to_bin.m
.m
vlf_software-master/nldn/convert_nldn_text_to_bin.m
2,378
utf_8
7de92e4fc0e2889e335d9e11549b64d8
function convert_nldn_text_to_bin(source_filename, source_dir, dest_dir) % convert_nldn_text_to_bin(source_filename, source_dir, dest_dir) % Convert ASCII NLDN files to Matlab files % % INPUTS % source_filename (optional): an .asc file to convert. If none given, run % on all files in source_dir % source_dir (optional...
github
dgolden1/vlf_software-master
convert_gld360_text_to_bin.m
.m
vlf_software-master/nldn/convert_gld360_text_to_bin.m
2,218
utf_8
24ff1345014b4562767c5e82cf8c8afb
function convert_gld360_text_to_bin(source_filename, source_dir, dest_dir) % convert_gld360_text_to_bin(source_filename, source_dir, dest_dir) % Convert ASCII GLD360 files to Matlab files % % INPUTS % source_filename (optional): an .asc file to convert. If none given, run % on all files in source_dir % source_dir (op...
github
dgolden1/vlf_software-master
generate_nldn_statistics.m
.m
vlf_software-master/nldn/generate_nldn_statistics.m
6,854
utf_8
63415e5b55208a58b9475b665d35e31e
function generate_nldn_statistics % generate_nldn_statistics % Generate lightning statistics for lightning flashes in the vicinity of % Palmer's conjugate point in 2003 % % The output will be an arbitrary unit of "lightning intensity" which is % defined as follows: % o In the given hours, take all lightning strokes wi...
github
dgolden1/vlf_software-master
nldn_hiss_correlation_plots.m
.m
vlf_software-master/nldn/nldn_hiss_correlation_plots.m
6,010
utf_8
686797ab214e5b6faaa4d22d50299b10
function nldn_hiss_correlation_plots % Load up hourly vectors with hiss, dst and nldn data and look for % correlation! % By Daniel Golden (dgolden1 at stanford dot edu) % $Id$ %% Setup % close all; input_dir = '/home/dgolden/vlf/case_studies/nldn/statistics'; dst_stats = load(fullfile(input_dir, 'dst_statistics.ma...
github
dgolden1/vlf_software-master
emstat_bayesian_predictors.m
.m
vlf_software-master/emission_statistics/emstat_bayesian_predictors.m
8,503
utf_8
58f3b0b4ae8b8713f6af42f9b56e17e4
function emstat_bayesian_predictors % How can the presence of a given emission type predict the future presence % of another emission type? Simple application of conditional probability, and % borrows a bunch of code from emstat_crosscorr % By Daniel Golden (dgolden1 at stanford dot edu) September 2008 % $Id$ %% Setu...
github
dgolden1/vlf_software-master
plot_flashes_per_hour_hist_with_error_bars.m
.m
vlf_software-master/emission_statistics/plot_flashes_per_hour_hist_with_error_bars.m
1,853
utf_8
72b3e80272b6fafa6294920bfe9af39f
function plot_flashes_per_hour_hist_with_error_bars % Function to plot a histogram of "fraction of hours with hiss" vs flashes % per hour, with error bars % The error bars are complicated % By Daniel Golden (dgolden1 at stanford dot edu) September 2009 % $Id$ %% Setup % close all; % clear; load ~/temp/nldn_epoch_outp...
github
dgolden1/vlf_software-master
plot_cum_spec.m
.m
vlf_software-master/emission_statistics/plot_cum_spec.m
1,677
utf_8
a99a9c54371359b688c2b80f2511a6a5
function h = plot_cum_spec(events, em_type) % h = plot_cum_spec(events, em_type) % Plot a "cumulative spectrogram" view of events % Events are represented as overlapping semi-translucent boxes % By Daniel Golden (dgolden1 at stanford dot edu) December 2007 % $Id$ %% Do the plotting global T_LOW T_HIGH T_LOW = 5/60/2...
github
dgolden1/vlf_software-master
emstat_crosscorr.m
.m
vlf_software-master/emission_statistics/emstat_crosscorr.m
8,578
utf_8
e9a3a5ff63e04b36b9643c3e799a45aa
function emstat_crosscorr % Find the cross-correlation between different types of emissions occurring % in their emission intervals on the same day % By Daniel Golden (dgolden1 at stanford dot edu) September 2008 % $Id$ %% Setup % PALMER_LONGITUDE = -64.05; % PALMER_T_OFFSET = PALMER_LONGITUDE/360; PALMER_T_OFFSET = ...
github
dgolden1/vlf_software-master
emstat_hist_year_occur.m
.m
vlf_software-master/emission_statistics/emstat_hist_year_occur.m
3,916
utf_8
1a6ba9d8576d47174e98e087510a5bef
function emstat_hist_year_occur(these_events, synoptic_epochs, em_type, ax) % Plot histogram of emission occurrence, by year % By Daniel Golden (dgolden1 at stanford dot edu) September 2010 % $Id$ %% Setup b_overlay_ae_kp = true; %% Create histograms % Number of events per year start_datenums = [these_events.start_d...
github
dgolden1/vlf_software-master
emstat_hist_solarcycle_occur.m
.m
vlf_software-master/emission_statistics/emstat_hist_solarcycle_occur.m
5,239
utf_8
327c676895a24f6006396e1209bb80dd
function emstat_hist_solarcycle_occur(these_events, synoptic_epochs, em_type, ax) % Plot histogram of emission occurrence, over the course of a solar cycle % By Daniel Golden (dgolden1 at stanford dot edu) September 2010 % $Id$ %% Setup b_overlay_ae_kp = true; MIN_DAYS_PER_MONTH = 12; %% Make bin edges on month edg...
github
dgolden1/vlf_software-master
emstat_hist_month_occur.m
.m
vlf_software-master/emission_statistics/emstat_hist_month_occur.m
3,636
utf_8
1b11767dcc47353e88bf444ba14d539f
function emstat_hist_month_occur(these_events, synoptic_epochs, em_type, ax) % Plot histogram of emission occurrence, by month % By Daniel Golden (dgolden1 at stanford dot edu) July 2008 % $Id$ %% Setup b_overlay_ae_kp = true; %% Make histograms start_datenums = [these_events.start_datenum].'; % Total synoptic epo...
github
dgolden1/vlf_software-master
plot_all_spectra.m
.m
vlf_software-master/emission_statistics/hiss_spectrum/plot_all_spectra.m
999
utf_8
7f36520ba54145d0f73424b2ad5185a8
function plot_all_spectra addpath(fullfile(danmatlabroot, 'vlf', 'vlftool_24_hour_fcn')); figure; hold on; %% Hiss only load hiss_spec [em_psd, freq] = prepare_data(em_psd, freq); [B_cal, unit_str] = cal_2003(sqrt(em_psd).', freq.', 512, 10e3); plot(freq/1e3, B_cal, 'g', 'LineWidth', 3); %% Chorus only load chorus...
github
dgolden1/vlf_software-master
plot_all_spectra.m
.m
vlf_software-master/emission_statistics/spectra/plot_all_spectra.m
1,515
utf_8
d421f0cdd2279e8d4f68a22f4b9eac82
function plot_all_spectra addpath(fullfile(danmatlabroot, 'vlf', '..', '..', 'vlftool_24_hour_fcn')); figure; hold on; ssr = 100; %% Hiss only load hiss_spec [em_psd, freq] = prepare_data(em_psd, freq); [B_cal, unit_str] = cal_2003(sqrt(em_psd).', freq.', 512, 10e3); % lhiss = plot(freq/1e3, B_cal, 'g', 'LineWidt...
github
dgolden1/vlf_software-master
make_chorus_hiss_wave_map_movie.m
.m
vlf_software-master/themis_chorus/make_chorus_hiss_wave_map_movie.m
14,727
utf_8
70698a95142e893cbd29dc3cbafbc214
function make_chorus_hiss_wave_map_movie(start_datenum, end_datenum, dt) % Show evolution of a wave map with both chorus and hiss over an actual % time period % By Daniel Golden (dgolden1 at stanford dot edu) January 2012 % $Id$ %% Setup t_net_start = now; addpath(fullfile(danmatlabroot, 'vlf', 'plasmapause')); % Fo...
github
dgolden1/vlf_software-master
plot_model_performance.m
.m
vlf_software-master/themis_chorus/plot_model_performance.m
5,067
utf_8
727d7668925b6fd241f9bded69ba8239
function varargout = plot_model_performance(L_edges, L_centers, MLT_edges, MLT_centers, lat_edges, lat_centers, r, n_eff, str_plot_plane) % Plot model performance (coefficient of determination) and effective % number of samples % % [h_r, h_neff] = plot_model_performance(L_edges, L_centers, MLT_edges, MLT_centers, lat_...
github
dgolden1/vlf_software-master
model_flythrough_chorus_hiss.m
.m
vlf_software-master/themis_chorus/model_flythrough_chorus_hiss.m
3,793
utf_8
8c6c47029aabda2b27587903fb51be70
function model_flythrough_chorus_hiss % Fly through model output along with THEMIS spacecraft and compare % amplitudes % % This uses output from an OLD chorus model from March 14, 2012 % By Daniel Golden (dgolden1 at stanford dot edu) March 2012 % $Id$ %% Setup close all; addpath(fullfile(danmatlabroot, 'vlf', 'the...
github
dgolden1/vlf_software-master
make_chorus_wave_map_movie.m
.m
vlf_software-master/themis_chorus/make_chorus_wave_map_movie.m
11,071
utf_8
4301855d84a1799543c96b2cef4f126c
function make_chorus_wave_map_movie(varargin) % Show evolution of a wave map over an actual time period % % PARAMETERS % start_datenum: default: 2008-09-03 00:00 % end_datenum: default: 2008-09-05 06:00 % dt: time step in days (default: 1/144 = 10 min) % fake_data: some fake data on which to run the model; a struct wi...
github
dgolden1/vlf_software-master
model_flythrough_chorus_only.m
.m
vlf_software-master/themis_chorus/model_flythrough_chorus_only.m
7,415
utf_8
d5e3ab5e0428879e258e874e38a715ae
function model_flythrough_chorus_only(start_datenum, end_datenum, b_ae_kp_only) % Fly through chorus model output along with THEMIS spacecraft and compare % amplitudes % By Daniel Golden (dgolden1 at stanford dot edu) June 2012 % $Id$ %% Setup % close all; if ~exist('end_datenum', 'var') || isempty(end_datenum) st...
github
dgolden1/vlf_software-master
plot_effective_num_samples.m
.m
vlf_software-master/themis_chorus/plot_effective_num_samples.m
1,382
utf_8
1deb1afe1a5f2993fd654c111476eef7
function plot_effective_num_samples % Plot effective number of samples at different latitudes vs L and MLT % By Daniel Golden (dgolden1 at stanford dot edu) April 2012 % $Id$ %% Setup close all; %% Load data n = []; load(fullfile(vlfcasestudyroot, 'themis_chorus', 'themis_chorus_regression.mat')); [L_mat, MLT_mat] ...
github
dgolden1/vlf_software-master
run_parametric_analysis.m
.m
vlf_software-master/themis_chorus/run_parametric_analysis.m
6,182
utf_8
6ebe10a4a029546859f1418d68d80641
function varargout = run_parametric_analysis(parameter_names, b_make_movie) % Run a parametric analysis by varying a bunch of different parameters, one % at a time, to see how the output changes % [chorus_ampl_map, epoch_vec, fake_data, model] = run_parametric_analysis(parameter_names, b_make_movie) % By Daniel Golden...
github
dgolden1/vlf_software-master
plot_themis_polar_ephemeris.m
.m
vlf_software-master/themis_chorus/plot_themis_polar_ephemeris.m
3,172
utf_8
c2dc3f77484d0562c546b08f53612f7b
function plot_themis_polar_ephemeris % Plot L-MLT plots of the THEMIS and Polar ephemeris, to find regions of % overlap % By Daniel Golden (dgolden1 at stanford dot edu) February 2011 % $Id$ %% Setup close all; addpath(fullfile(danmatlabroot, 'vlf', 'themis')); %% Make Polar plots polar = load('/home/dgolden/vlf/ca...
github
dgolden1/vlf_software-master
per_bin_regress_them_chorus.m
.m
vlf_software-master/themis_chorus/per_bin_regress_them_chorus.m
9,855
utf_8
6b9c1c2e6ab0325aaf15e4b94e765df7
function per_bin_regress_them_chorus(b_ae_kp_only, output_dir) % Make a per-bin linear regression model for chorus data from THEMIS and % Polar % By Daniel Golden (dgolden1 at stanford dot edu) February 2012 % $Id$ %% Setup addpath(fullfile(danmatlabroot, 'vlf', 'themis')); if ~exist('b_ae_kp_only', 'var') b_ae_kp...
github
dgolden1/vlf_software-master
them_chorus_select_features.m
.m
vlf_software-master/themis_chorus/them_chorus_select_features.m
3,578
utf_8
3672acffc4412e9b926157886a710acc
function [selected_idx, X_names_selected, selected_idx_ordered] = them_chorus_select_features(X, X_names, y, epoch, max_num_features, b_verbose) % Sequential feature selection for THEMIS/Polar data % % OUTPUTS % selected_idx: binary indices of X_names that were selected % X_names_selected: equal to X_names(selected_id...
github
dgolden1/vlf_software-master
set_up_predictor_matrix_v2.m
.m
vlf_software-master/themis_chorus/set_up_predictor_matrix_v2.m
7,477
utf_8
9c16d13568a28cb78fdc0232f51feb7f
function [X_sorted, X_names_sorted] = set_up_predictor_matrix_v2(epoch, varargin) % Set up a predictor matrix of solar wind and (optionally) ephemeris % Used logarithmically spaced # hours history % % [X_sorted, X_names_sorted] = set_up_predictor_matrix_v2(epoch, varargin) % % PARAMETERS % num_min: number of minutes ...
github
dgolden1/vlf_software-master
plot_example_polar_data.m
.m
vlf_software-master/themis_chorus/plot_example_polar_data.m
3,692
utf_8
e83a52095673b1c8ba97fc81e84235ac
function plot_example_polar_data % Plot some example Polar data, just to figure out if I can read Nick's % data properly % By Daniel Golden (dgolden1 at stanford dot edu) January 2012 % $Id$ %% Setup close all; % clear; load('/home/dgolden/vlf/case_studies/polar/PolarChorusDatabase_p.mat', 'Bw', 'Xsm', 'Ysm', 'Zsm') ...