Users Guide
Section 1. Introduction
This is a how-to for users of the CMWS Model Application.
Section 2. Pre-Requisites
2.1 Hardware Requirements
Intel x86 with Windows, Linux or Sun Solaris
Software Requirements
On win32, recommend using cygwin and PostgreSQL
Python
PostgreSQL or MySQL
MySQLdb Python API for MySQL
Psycopg2 Python API for PostgreSQL
Gnuplot
ImageMagick
2.2 Example Server Configuration on Windows XP with cygwin
Cygwin version 1.5.25-15
Psycopg2 version 2.2.0 (downloaded separately)
Python version 2.5.1 (r251:54863) (included in cygwin install)
PostgreSQL version 8.0.7 (included in cygwin in install)
Gnuplot version 4.2 patchlevel 2 (included in cygwin in install)
ImageMagick version 6.3.0 (included in cygwin in install)
2.3 Example Server Configuration on Red Hat Linux Enterprise 4
MySQLdb version 1.0.0-1 (included in os installation)
Python version 2.3.4 (included in os installation)
MySQL version 4.1.7 (included in os installation)
Gnuplot version 4.0 patchlevel 0 (included in os installation)
ImageMagick version 6.0.7 (included in os installation)
2.4 Example Server Configuration on Fedora Core 7
MySQLdb version 1.2.1_p2-2 (included in os installation)
Python version 2.5 (r25:41908) (included in os installation)
MySQL version 5.0.45 (included in os installation)
Gnuplot version 4.0 patchlevel 0 (included in os installation)
ImageMagick version 6.3.2 (included in os installation)
Section 3. Installation
3.1 Download CMWS Model Application
Download release 2.6.
3.2 Installation Script
Step 1. Untar downloaded version of the CMWS Model Application.
Step 2. Execute the following command:
If using MySQL
sh install.sh [new|upgrade] mysql [dbname] [host] [username] [password] default
if using PostgreSQL
sh install.sh [new|upgrade] pgsql [dbname] [host] [username] [password] default
Section 4. Running the CMWS Model Application
4.1 Manual Execution
if uploading to a remote host then execute the following
cmws_model_run remote [remotedir] [remotehost] [username] [password]
if copying to a local directory
cmws_model_run local [localdir]
4.2 Automated Execution
Interval depends on Hardware CPU Speed and RAM.
Consider upload time if transfering generated files to a remote host.
Server: http://www.agtucast.com
Hardware: AMD CPU @ 1.7MHZ with 1GB RAM, Fedora Core 7
Software: MySQL - MySQLdb API, Python
Performance: CMWS Location takes ~20 seconds.
100 locations will take about 20 minutes, would execute once per hour.
Section 5. Formatting and Collecting Weather Station Data
5.1 Collecting Data
Davis Weather Monitor II Weather Station (used by CMWS)
Hardware: IBM Thinkpad x86, 166 MHZ INTEL CPU 32MB RAM
5.2 Formatting Data for CMWS Model Verification Analysis Graphs
The CMWS Model uses observed data for a particular location for the
verification analysis graphs.
Filename : spool_MMDDYYYY.dat
MM - 2 digit month 01-12
DD - 2 digit day 01-31
YYYY - 4 digit year
Content : MMDDYYYY HHMMSS INTMP OUTTMP WINDSPD WINDDIR PRESSURE INHUM OUTHUM PRECIP
MMDDYYYY - 2 digit month, 2 digit day , 4 digit year
HHMMSS - 2 digit hour, 2 digit minute, 2 digit second
INTMP - inside temperature (F)
OUTTMP - outside temperature (F)
WINDSPD - wind speed (mph)
WINDDIR - wind direction (degrees)
PRESSURE - air pressure (inhg)
INHUM - inside humidity (%)
OUTHUM - outside humidity (%)
PRECIP - precipitation (in)
|