This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Set up the file & handler | |
n_profiles = n_elements(lat) ; just pick any of your data arrays | |
fid=ncdf_create('FILENAME-GOES-HERE'+'.nc',/CLOBBER) | |
d=indgen(2,/LONG) ; number of dimensions that will be created | |
; Set Dimensions | |
d[0]=ncdf_dimdef(fid,'n_profiles',n_profiles) ; length 'j' | |
d[1]=ncdf_dimdef(fid,'n_bins',n_bins) ; length 'i' | |
; Define variables to be stored |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; --------------------------------------------------------------------- | |
; Plot the results | |
; --------------------------------------------------------------------- | |
; Configure display | |
; Load and modify color pallet. Using IDL 8.0 friendly pallet | |
common colors, r_orig,g_orig,b_orig,r_curr,g_curr,b_curr | |
loadct,12,/silent | |
!p.background=!d.n_colors-1 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; We have an array of values to save to a CSV file | |
delim = ',' | |
output_file = 'orbits.txt' | |
data_to_save=make_array(2, /string, value=-999) | |
data_to_save[0] = string(orbit_syear) | |
data_to_save[1] = string(orbit_sdoy, format='(I03)') | |
data_to_save[2] = string(orbit, format='(I05)') | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pro print_loi_box,nlat,slat,elon,wlon | |
; Box dimensions - Comment out for real use. | |
nlat=90.0 | |
slat=-43.0 | |
wlon=-70 | |
elon=180.0 | |
; Graphic parts | |
lg_offset = ' ' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function get_hdf5,f,branch,var_name | |
fid = h5f_open(f) ; open file | |
gid = h5g_open(fid,branch) ; access the branch | |
did = h5d_open(gid,var_name) ; access the variable | |
var = h5d_read(did) ; read the variable | |
h5d_close,did ; close the variable | |
h5f_close,fid ; close file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*********************************************************************** | |
* File name: penny.ino * | |
* * | |
* Purpose: Logs data from an array of digital weather sensors and * | |
* stores the data in CSV format on a standard SD Card. * | |
* * | |
* - File references: * | |
* Name I/O Description * | |
* ---------------------------------------------------------------- * | |
* * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Thermocouple */ | |
void setup() { | |
Serial.begin(9600); | |
} | |
void loop() { | |
int sensorValue = analogRead(A1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; pconfig | |
pconfig = {current:1, xrange:[0, 10], thick:1.5} | |
p = plot(x, y, name='my_plot', $ | |
_EXTRA = pconfig, $ | |
dimensions = [700, 800], $ | |
title = 'My Awesome Plot', $ | |
ytitle = 'F(x)') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for file in *.html; do | |
mv "$file" "`basename $file .html`.txt" | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Wind Rose Example</title> | |
<!-- You need to import these --> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
<script src="https://code.highcharts.com/highcharts.js"></script> | |
<script src="https://code.highcharts.com/highcharts-more.js"></script> |
OlderNewer