Science Coding EAS 31119
*City College Course Website
(designed and administered by James Booth)*
Instructor: Professor James Booth
Contact Information: jbooth AT ccny.cuny.edu
Meeting time: Mon.,
Weds.
3:30-4:45 pm
Classroom: NAC 1/302
Course summary:
An introductory survey of writing science code for data analysis.
For more details, including grading rupric, see the syllabus.
SYLLABUS (with details on class location and course
grading rupric)
EAS 31119/B9039
(pdf)
Possible reference textbooks:
Computational Physics, by Mark Newman (uses Python)
Numerical Methods Using Matlab, by John H. Matthews and Kurtis D. Fink
COURSE DATES
(htm)
Links to data
This website will be used like a blog, to document each course
activity.
The files and data for the course
will all be posted here:
Link to course work website on dropbox
Please remember to download the data directly instead of linking it to
your own dropbox account.
Course #1, Wednesday, Aug 28, 2019
Notes from Course #1
Course #2, Wednesday, Sept 4, 2019
Notes from Course #2
Course #3, Thursday, Sept 5, 2019
Notes from Course #3
Course #4, Monday, Sept 9, 2019
Today we covered functions and for-loops.
Notes from Course #4
Course #5, Wednesday, Sept 11, 2019
Today we: reviewed logicals, size.m, length.m, find.m
Then we loaded a time-series of precipitation.
We learned about two commands: datenum.m, datestr.m
Key: for all of these commands: if you type >> help
name-of-command
Then you will see the information about how the command works.
There is no separate "notes" documents today.
=============== HOMEWORK #1 is posted ================
Go to the course Dropbox site, see the directory HW1
It is due on Wednesday, Sept 18
=============== HOMEWORK #1 is posted ================
Course #6, Monday, Sept 16, 2019
Today we reviewed: datenum/datestr, then studied
using nanmean, and
nested for-loops.
Notes for course #6
Here is a review for plotting:
Notes on plotting
Course #7, Wednesday, Sept 18, 2019
Learning a new datatype: structures
Notes for course #7
Course #8, Monday, Sept 23, 2019
Review Structures/Dictionaries
Chopping a daily time-series into annual components, using nanmean,
and nested indices.
Notes for course #8
Course #9, Wednesday, Sept 25, 2019
We reviewed HW 1 answers.
Link to the homeworks
The startup.m file
Plotting and colormaps
Course #10, Wednesday, Oct 2, 2019
Using for loops to load multiple files.
Notes for course #10
Course #11, Monday, Oct 7, 2019
Statistics!!! standard deviation, covariance, and Pearson's correlation coefficient.
<<<<<<<<<<<<<<<<<<<<<<<->>>>>>>>>>>>>>>>>>>>>>>>>>>
Homework #2 is posted. See the Dropbox folder.
There is a .docx file and two .mat files.
HW2 is due on Weds. Oct 16, don't sleep on this one.
ps: this class is getting real. get to work!
<<<<<<<<<<<<<<<<<<<<<<<<->>>>>>>>>>>>>>>>>>>>>>>>>>
Course #12, Wednesday, Oct 16, 2019
Review of datestr/datenum, review of statistics
Update: many students have told me that they are not sure how to study
for this class.
So, I am going to try a new format: more homeworks. they will be
short!
------------------
HW #3 is posted. See the dropbox folder.
------------------
Course #13, Monday, Oct 21, 2019
We went over homework #2.
We discussed numerical derivatives, using this set of 3 slides:
Slides on numerical derivatives
Course #14, Wesdnesday, Oct 23, 2019
Numerical derivatives with examples, see dropbox folder L14
------------------
HW #4 is posted. See the dropbox folder.
------------------
Course #15, Monday, Oct 28, 2019
Introduction to Integrals
Slides on numerical integration
Course #16, Wednesday, Oct 30, 2019
Review of HW4 and discussion of find_overlap_non.m
Course #17, Monday, Nov 4, 2019
Numerical Integration: the trapezoid method
**************** HW #5 is posted, due in 1 week **************
Course #18, Wednesday, Nov 6, 2019
Spatial integration using the globally averaged surface temperature.
Course #19, Monday, Nov 11, 2019
Loading ascii files, and formatted files, using: textscan
Course #20, Wednesday, Nov 13, 2019
Review of HW5 and intro discussion on Fourier Transforms and time filtering.
**************** !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! **************
Exam #1 is posted on the dropbox website.
You must answer the questions alone, without talking with other
students.
This exam is due Monday, Nov 18, 2019, by the start of the course.
You must email me your exam.
The exam must be titled:
31119_exam1_YourLastName
or
B9039_exam1_YourLastName
**************** !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! **************
Course #21, Monday, Nov 18, 2019
The fast fourier transform in matlab. Understanding the frequency
domain.
Course #22, Wednesday, Nov 20, 2019
Reading in an excel or a csv file.
Course #23, Monday, Nov 25, 2019
========================================
Extra Credit, due at 3:30pm on Monday, Dec 2:
Use statistical analysis of the daily precipitation data from
LaGuardia for 1979 - 2014 to answer the question:
Does it rain more
often on Saturday and Sunday, as compared to the other days of the
week?
========================================
Course #24, Wednesday, Nov 27, 2019
No class - compensating for late classes earlier in the semester.
Course #25, Monday, Dec 2, 2019
Review of key concepts for analyzing matrix data.
Course #26, Wednesday, Dec 4, 2019
More linear statistics: testing the significance of a trend.
Course #27, Monday, Dec 9, 2019
Review for exam #2.
See working directory for summary of all lectures.
=======================================================
!!! EXAM #2 POSTED IN WORKING DIRECTORY !!!!!!!!!!!!!!!
=======================================================
Course #28, Wednesday, Dec 11, 2019
The Lorenz 1963 Coupled set of ODE's (chaos in a simple model of weather).
==================================
Meeting times for exit interviews:
times table (pddf)
==================================
END OF WEBPAGE.