Skip to content

Instantly share code, notes, and snippets.

View douglasgoodwin's full-sized avatar

Doug Goodwin douglasgoodwin

View GitHub Profile
@douglasgoodwin
douglasgoodwin / README.md
Created January 30, 2020 16:33
For a lecture on Histograms and dynamic range

Uses this file: Close-up of leaves, from directly above, In Glacier National Park, Montana

@douglasgoodwin
douglasgoodwin / frameanalysis.ipynb
Created December 9, 2019 22:41
Analysis of frames from the camera makes a coarse image
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@douglasgoodwin
douglasgoodwin / sealevel_data.csv
Created November 20, 2019 05:49
the sea level data with empty columns removed and the date fraction broken out into year, month, and day
We can make this file beautiful and searchable if this error is corrected: It looks like row 10 should actually have 16 columns, instead of 4. in line 9.
,altimeter type,merged file cycle,fraction of year,number of observations,weighted observations,GMSL,standard deviation GMSL,smoothed GMSL,GMS variation 20 year mean,standard deviation GMSL.1,smoothed 20 year mean,smoothed annual semi-annual signal,year,month,day
0,0,11,1993.0115260000002,466462,337277.0,-37.24,92.66,-37.02,-37.24,92.66,-37.02,-37.55,1993,1,5
1,0,12,1993.038692,460889,334037.31,-40.35,95.39,-38.2,-40.34,95.39,-38.19,-38.06,1993,1,15
2,0,13,1993.065858,472123,342416.09,-40.17,92.29,-38.28,-40.16,92.29,-38.27,-37.6,1993,1,25
3,0,14,1993.093025,421377,306050.59,-41.92,96.2,-38.56,-41.89,96.19,-38.54,-37.45,1993,2,3
4,0,15,1993.120191,459548,331094.09,-36.89,94.64,-37.87,-36.85,94.63,-37.83,-36.44,1993,2,13
5,0,16,1993.147357,416480,300344.81,-35.69,93.22,-36.96,-35.65,93.21,-36.93,-35.31,1993,2,23
6,0,17,1993.1745230000001,467980,337061.91,-36.09,91.67,-36.14,-36.05,91.67,-36.09,-34.28,1993,3,5
7,0,18,1993.201689,466075,335414.41,-34.7,91.95,-35.53,-34.65,91.94,-35.48,-33.5,1993,3,15
8,0,19,1993
altimeter type merged file cycle year fraction of year number of observations weighted observations GMSL standard deviation GMSL smoothed GMSL GMS variation 20 year mean standard deviation GMSL smoothed 20 year mean smoothed annual semi-annual signal
0 11 1993 1993.011526 466462 337277 -37.24 92.66 -37.02 -37.24 92.66 -37.02 -37.55
0 12 1993 1993.038692 460889 334037.31 -40.35 95.39 -38.2 -40.34 95.39 -38.19 -38.06
0 13 1993 1993.065858 472123 342416.09 -40.17 92.29 -38.28 -40.16 92.29 -38.27 -37.6
0 14 1993 1993.093025 421377 306050.59 -41.92 96.2 -38.56 -41.89 96.19 -38.54 -37.45
0 15 1993 1993.120191 459548 331094.09 -36.89 94.64 -37.87 -36.85 94.63 -37.83 -36.44
0 16 1993 1993.147357 416480 300344.81 -35.69 93.22 -36.96 -35.65 93.21 -36.93 -35.31
0 17 1993 1993.174523 467980 337061.91 -36.09 91.67 -36.14 -36.05 91.67 -36.09 -34.28
0 18 1993 1993.201689 466075 335414.41 -34.7 91.95 -35.53 -34.65 91.94 -35.48 -33.5
0 19 1993 1993.228855 461207 331521.09 -34.04 91.7 -35.18 -33.98 91.68 -35.12 -32.94

[fit] Computational Photography 1


[fit] Douglas Goodwin | Baxter 106 | 11a-1p


[fit] camera + computer = ??

@douglasgoodwin
douglasgoodwin / metadata.py
Last active August 30, 2019 05:50
Let's use a Python module to investigate the metadata of an image file
# What about the file's metadata?
import exifread
imgpath = "IMG_9590_original.jpg"
f = open(imgpath, 'rb')
# Return Exif tags
tags = exifread.process_file(f)
@douglasgoodwin
douglasgoodwin / getinfo.ipynb
Last active August 16, 2019 22:58
example of how to get Metro's parking information
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@douglasgoodwin
douglasgoodwin / mobilerouters.csv
Last active August 10, 2019 01:04
My initial research into the mobile routers. ts is second since the epoch, dt is the current datestring, id is the vehicle id. Columns startying with "a" indicate Anderson's feed, "nb" is Nextbus.
We can make this file beautiful and searchable if this error is corrected: It looks like row 10 should actually have 11 columns, instead of 9. in line 9.
ts,dt,id,alon,alat,aheading,nblat,nblon,nbsecsSinceReport,nbheading,nbspeedKmHr
1565397858.298165,2019-08-09 17:44:18,6043,-118.247974,34.042951,0000,33.9928352,-118.3187675,4645,-4,0
1565397858.367101,2019-08-09 17:44:18,5977,-118.2790555,33.8591537,0000,33.9928352,-118.3187675,4645,-4,0
1565397858.4071512,2019-08-09 17:44:18,6049,-118.3152797,34.0036958,0894,33.9928352,-118.3187675,4645,-4,0
1565397858.442306,2019-08-09 17:44:18,9349,-118.4588267,34.051113,1114,33.9928352,-118.3187675,4645,-4,0
1565397858.499375,2019-08-09 17:44:18,8114,-118.3827582,34.0852588,0000,33.9928352,-118.3187675,4645,-4,0
1565397858.552875,2019-08-09 17:44:18,9233,-118.3905742,34.2550065,0000,33.9928352,-118.3187675,4645,-4,0
1565397858.5882418,2019-08-09 17:44:18,8298,-118.5984565,34.2375582,0000,33.9928352,-118.3187675,4645,-4,0
1565397858.636938,2019-08-09 17:44:18,9535,-118.5983435,34.2387738,3359,33.9928352,-118.3187675,4645,-4,0
1565397858.6991339,2019-08-09 17:44:18,9360,-118.2311967,34.0572362,0973,33.9928352,-118.3187675,
@douglasgoodwin
douglasgoodwin / diagrammer.ipynb
Created May 7, 2019 05:37
NLTK analysis of Jane Austen
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@douglasgoodwin
douglasgoodwin / makemidi.ipynb
Last active April 19, 2019 14:51
a clumsy little test to generate random MIDI files. There are dso many ways to represent MIDI data as ASCII. This one lends itself to creating melodic lines that follow the ways that Python can navigate lists. Try throwing a sorting algorithm at it -- how would that sound?
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.