https://stephens999.github.io/fiveMinuteStats/MH-examples1.html
This site is to serve as my note-book and to effectively communicate with my students and collaborators. Every now and then, a blog may be of interest to other researchers or teachers. Views in this blog are my own. All rights of research results and findings on this blog are reserved. See also http://youtube.com/c/hongqin @hongqin
https://www.coursera.org/learn/mcmc-bayesian-statistics/home/week/3
R code
== pre-class to do:
calendar email invitation: including guests; done.
socrative questions (midterm exam, questions on contents from last lecture ). done
update Canvas course materials, update learning objectives. assignments as needed. done
* make sure grades are NOT shown on Canvas.
Test-run code: ipynb. NA
learning objectives: updated on canvas, NA
== In-class to do:
clean up desktop space, calendars":
ZOOM, live transcript (start video recording). Turn the computer speaker on.
Socrative sign in
Give time for students to take course surveys
* ask students to share projects. Need to work on writing.
* discussion covid19 transmission
https://www.nature.com/articles/s41467-021-21358-2
Easy MCMC
https://stephens999.github.io/fiveMinuteStats/MH-examples1.html
Socrative
Slides
ask students to share their screen
Last times, I let students worked on replacingExample1.py
=======lesson plan ==========
15 minutes:
Go over Socrative review questions.
10 minutes:
whileExample1.py :: line.strip()
5 minutes:
whileExample2.py :: line.split()
10 minutes:
=> ask student to modify whileExample2 to process gleep2. This is whileExample3.py
15 minutes
csvHandler.py
20 minutes:
=> Lab exercise 1. datetime.datetime
=> datePython.py
== pre-class to do:
calendar email invitation: including guests; done.
socrative questions (midterm exam, questions on contents from last lecture ). done
update Canvas course materials, update learning objectives. assignments as needed. done
* make sure grades are NOT shown on Canvas.
Test-run code: ipynb. NA
learning objectives: updated on canvas, NA
== In-class to do:
clean up desktop space, calendars":
ZOOM, live transcript (start video recording). Turn the computer speaker on.
Socrative sign in
Give time for students to take course surveys
* ask students to share projects. Need to work on writing.
* Show my ERA5 land weather data
https://cyberedwiki.org/index.php?title=Welcome_to_CyberEd_Wiki
https://www.caeresource.directory/home
The template pbs is:
-bash-4.2$ cat ts_grib_job_template.pbs
#!/bin/bash -l
#$ -S /bin/bash
#$ -N pygrib_NUMBER
#$ -cwd
. /etc/profile.d/modules.sh
module load anaconda
source activate grib
python parse_grib_4JHU-debug.py STARTINDEX ENDINDEX
-bash-4.2$
Qin used a python code to generate pbs jobs, and then submit them using shell script.
-bash-4.2$ cat generate_PBS_bash.py
import os
import re
filebatchshell = "submit_PBS.sh"
fshell = open(filebatchshell, "w")
step = 15
for i in range( 0, 600, step):
fin = open("ts_grib_job_template.pbs", "r")
LinesIn = fin.readlines()
fin.close()
LinesIn[2] = "#$ -N pygrib_" + str(i) + "\n"
LinesIn[7] = "python parse_grib_4JHU.py " + str(i) + " " + str(i + step) + " \n"
fileout = "ts_" + str(i) + ".pbs"
fout = open(fileout, "w")
for line in LinesIn:
fout.write(line)
fout.close()
buffer = "qsub " + fileout + "\n"
fshell.write(buffer)
fshell.close()
To parse the 2m-dew point, I used generate_PBS_bash_dewpoint.py
This is a 7-day run. The last t2m output is on Nov 20, and the last dewpoint file output is on Nov 21.
On Nov 21, I use github to backup running logs, and output csv files
grbs = pygrib.open('2020-2021NovT2m-dewpoint.grib') #does not work
grbs = pygrib.open('2019-2020June10.grib') #works
It would be strange if grib format changed. I need to redownload the grib file. again
6pm, Qin found out that remove the time selection, and the codes runs on 2021 GRIB file.
8140 certification replace 8570 certification.
https://www.comptia.org/blog/what-is-dod-8140-cybersecurity-certifications-and-requirements
https://webapp.utc.edu/common/faculty-ratings/index2.php
https://www.computer.org/csdl/journal/bd
https://conferenceindex.org/disciplines
Springer: International Journal of Data Science and Analytics
ACM Transactions on Knowledge Discovery from Data
UTC course scheduling, time slots
Aquarium fish tank video with Yolo
https://github.com/Developer-Y/cs-video-courses#software-engineering
Generate PBS submission jobs
* python generate_PBS_bash.py
* sh submit_PBS_small.sh
-bash-4.2$ cat submit_PBS_small.sh
qsub PBS/ts_1_2.pbs
qsub PBS/ts_2_3.pbs
qsub PBS/ts_3_4.pbs
qsub PBS/ts_4_5.pbs
qsub PBS/ts_5_6.pbs
qsub PBS/ts_6_7.pbs
qsub PBS/ts_7_8.pbs
qsub PBS/ts_8_9.pbs
qsub PBS/ts_9_10.pbs
qsub PBS/ts_10_11.pbs
-bash-4.2$ qstat | head
job-ID prior name user state submit/start at queue slots ja-task-ID
-----------------------------------------------------------------------------------------------------------------
40904 0.50500 epi_job1 hqin r 11/10/2021 01:16:14 all.q@ts26.cm.cluster 1
40905 0.50500 epi_job2 hqin r 11/10/2021 01:16:14 all.q@ts19.cm.cluster 1
40906 0.50500 epi_job3 hqin r 11/10/2021 01:16:14 all.q@ts01.cm.cluster 1
40907 0.50500 epi_job4 hqin r 11/10/2021 01:16:14 all.q@ts33.cm.cluster 1
40909 0.50500 epi_job6 hqin r 11/10/2021 01:16:14 all.q@ts19.cm.cluster 1
40910 0.50500 epi_job7 hqin r 11/10/2021 01:16:14 all.q@ts01.cm.cluster 1
40912 0.50500 epi_job9 hqin r 11/10/2021 01:16:14 all.q@ts29.cm.cluster 1
40914 0.50500 epi_job11 hqin r 11/10/2021 01:16:14 all.q@ts26.cm.cluster 1
total 209792
-rw-r--r-- 1 hqin simctr 23771 Nov 14 04:43 Suffolk_NewYork_US_v2.csv