This isn't Python, but I made a handy web page tool for viewing images in a directory. Just dump this photo_viewer.php page in a public_html web directory with images in it, and this page will let you view the images by hovering a mouse over buttons with the image names, clicking the buttons, or selecting images from an option box.
https://github.com/blaylockbk/Web-Homepage/blob/master/photo_viewer/photo_viewer.php
Example page: http://home.chpc.utah.edu/~u0553130/PhD/UWFPS_2017/time-height/photo_viewer.php
This page demonstrates Python tips and tricks that I use in my everyday programming as an atmospheric science graduate student.
-Brian Blaylock
Tuesday, February 14, 2017
Friday, January 13, 2017
CGI: Plot mult-station time series
I created a quick web interface for plotting time series from multiple weather stations on the same plot. See here: http://home.chpc.utah.edu/~u0553130/Brian_Blaylock/cgi-bin/plot_ts_multistations.cgi
The code to create this is on github:
The web interface: https://github.com/blaylockbk/Web-Homepage/blob/master/cgi-bin/ts_multistations.cgi
The plotting function: https://github.com/blaylockbk/Web-Homepage/blob/master/cgi-bin/plot_ts_multistations.cgi
The code to create this is on github:
The web interface: https://github.com/blaylockbk/Web-Homepage/blob/master/cgi-bin/ts_multistations.cgi
The plotting function: https://github.com/blaylockbk/Web-Homepage/blob/master/cgi-bin/plot_ts_multistations.cgi
Thursday, January 5, 2017
Friday, November 11, 2016
Verifying GFS dewpoint data with MesoWest observations
For a class assignment, I needed to verify GFS model output with MesoWest data. I used pygrib to read in the grib file, then used some custom functions that grab data from the MesoWest API.
Here is the output figures and my code.
The output:
gist:
Here is the output figures and my code.
The output:
gist:
Thursday, November 3, 2016
PEP 8 Coding Standards for Python
For standardized python scripting, study this resource...
https://www.python.org/dev/peps/pep-0008/
https://www.python.org/dev/peps/pep-0008/
Subscribe to:
Posts (Atom)