climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prami...@apache.org
Subject svn commit: r1517753 [33/33] - in /incubator/climate/branches/rcmet-2.1.1: ./ src/ src/main/ src/main/python/ src/main/python/bin/ src/main/python/docs/ src/main/python/docs/_static/ src/main/python/docs/_templates/ src/main/python/rcmes/ src/main/pyth...
Date Tue, 27 Aug 2013 05:35:49 GMT
Added: incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/common/header.php
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/common/header.php?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/common/header.php (added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/common/header.php Tue Aug
27 05:35:42 2013
@@ -0,0 +1,35 @@
+<?php
+?>
+<!DOCTYPE html>
+<html>
+<head>
+<title>RCMES Client Toolkit</title>
+
+<!-- Base stylesheets -->
+<link rel="stylesheet" type="text/css" href="<?php echo SITE_ROOT?>/static/bootstrap/css/bootstrap.min.css"/>
+<link rel="stylesheet" type="text/css" href="<?php echo SITE_ROOT?>/static/css/style.css"/>
+
+<!-- Base Javascript -->
+<script type="text/javascript" type="text/javascript" src="<?php echo SITE_ROOT?>/static/js/jquery-1.8.0.min.js"></script>
+
+<!-- Dynamically Added Stylesheets -->
+<!-- STYLESHEETS -->
+
+<!-- Dynamically Added Javascripts -->
+<!-- JAVASCRIPTS -->
+
+<!-- Site specific stylesheet overrides -->
+<link rel="stylesheet" type="text/css" href="<?php echo SITE_ROOT .'/static/css/site.css'?>"/>
+
+</head>
+<body>
+<header>
+    <p>&nbsp;</p>
+</header>
+<div class="container">
+    <div id="content" role="main">
+        <h1>Regional Climate Model Evaluation Toolkit (RCMET)
+	        <span style="font-size:0.50em;color:#686;">beta</span>
+	    </h1>
+	    <div class="page">
+            <?php echo App::Get()->GetMessages(); ?>

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/common/header.php
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/errors/404.php
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/errors/404.php?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/errors/404.php (added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/errors/404.php Tue Aug 27
05:35:42 2013
@@ -0,0 +1,5 @@
+<?php
+
+?>
+<h1>404 - Not Found</h1>
+<p>The resource you requested (<?php echo App::Get()->request->uri?>) could
not be found.
\ No newline at end of file

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/errors/404.php
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/index.php
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/index.php?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/index.php (added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/index.php Tue Aug 27 05:35:42
2013
@@ -0,0 +1,42 @@
+<div class="section">
+    <div class="row">
+	    <div class="box span6">
+	        <div class="box-content">
+		        <h3><a href="http://rcmes.jpl.nasa.gov/rcmed/datasets/">Browse the
Database</a></h3>
+		        The Regional Climate Model Evaluation Database contains
+		        decades of observational datasets from NASA and other
+		        organizations.
+		    </div> 
+	    </div>
+	    <div class="box span6">
+	        <div class="box-content">
+		        <h3><a href="<?php echo SITE_ROOT?>/wizard/init">Begin an Evaluation</a></h3>
+		        Combine local model data with observations from the database
+		        to perform analysis and generate visualizations.
+	        </div>
+	    </div>
+	    
+    </div>
+    <div class="row">
+        <div class="box span12">
+            <div class="box-content">
+	            
+	            <img src="<?php echo SITE_ROOT?>/static/img/rcmes-logo.png" id="rcmes-logo"/>
+	            <h5>Background Information</h5>
+	            <p>
+	            The Regional Climate Model Evaluation Toolkit is comprised of 
+	            scripts and interfaces that make it easy to interact with the observational
+	            data provided by the Regional Climate Model Evaluation Database for the 
+	            purpose of conducting model-to-data intercomparison and validation.
+	            </p>
+	            <h5>Getting Help</h5>
+	            <p>
+	            The Regional Climate Model Evaluation System is actively being developed
+	            at the NASA Jet Propulsion Laboratory (JPL), in collaboration with the UCLA
Joint
+	            Institute for Regional Earth System Science and Engineering (JIFRESSE). The

+	            latest information is always available on the official
+	            <a href="http://rcmes.jpl.nasa.gov">RCMES Website</a>.
+            </div>
+        </div>
+    </div>
+</div>

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/index.php
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/help.php
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/help.php?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/help.php (added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/help.php Tue Aug 27
05:35:42 2013
@@ -0,0 +1,17 @@
+<?php
+/**
+ * Help file for the RCMET Model Evaluation Toolkit Wizard
+ * 
+ * This file contains instructions and helpful information to guide
+ * users through the process of using the RCMET wizard to complete
+ * a model evaluation study. 
+ * 
+ */
+?>
+<h1>RCMET Wizard Help</h1>
+<hr/>
+
+<h2>Step: Selecting Local Model Data</h2>
+<h2>Step: Obtaining Observational Data from RCMED</h2>
+<h2>Step: Choosing an Operation to perform</h2>
+<h2>Step: Selecting Output Format and Visualization Options</h2>
\ No newline at end of file

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/help.php
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/init.php
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/init.php?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/init.php (added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/init.php Tue Aug 27
05:35:42 2013
@@ -0,0 +1,32 @@
+<?php
+require_once(HOME . "/classes/RCMETWizardTask.class.php");
+if (isset($_POST['init'])) {
+	
+	// Clear any old task information from the session
+	$task = new RCMETWizardTask();
+	
+	// Go to the first wizard step
+	$task->firstStep();
+}
+
+?>
+<div class="section">
+<div class="row">
+<div class="span12">
+<h2 class="title">Begin a New Evaluation Task</h2>
+<div class="box">
+<div class="box-content">
+<fieldset>
+<legend>You will be asked a series of questions to determine what type of plot to generate:</legend>
+<div class="alert alert-info">
+<strong>Note:</strong> By continuing, any previous task information will be discarded.
+</div>
+<form method="post">
+	<input type="submit" name="init" value="Start" class="btn btn-primary"/>
+</form>
+</fieldset>
+</div>
+</div>
+</div>
+</div>
+</div>

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/init.php
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/step.php
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/step.php?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/step.php (added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/step.php Tue Aug 27
05:35:42 2013
@@ -0,0 +1,26 @@
+<?php
+/**
+ * RCMET Model Evaluation Toolkit - Wizard
+ * 
+ * The wizard helps users step through the process of
+ * 
+ * 1) Selecting locally stored model data output for use in the run
+ * 2) Selecting compatible observational data from the RCMED
+ * 3) Selecting an operation to perform on the two datasets
+ * 4) Selecting an output format and/or visualization style
+ * 
+ * 
+ */
+
+
+$segments = App::Get()->request->segments;
+if (!isset($segments[0])) {
+	die("Missing required parameters. Please specify a wizard step in the URL");
+}
+if (!is_file(HOME . '/views/wizard/steps/' . $segments[0] . '.php')) {
+	die("Invalid step requested. See the <a href='./help'>Wizard Help</a> for more
information");
+} else {
+	
+	// Widgetize the requested wizard step
+	App::Get()->WidgetizeView("/wizard/steps/" . $segments[0]);
+}

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/step.php
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/generatePlots.php
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/generatePlots.php?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/generatePlots.php
(added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/generatePlots.php
Tue Aug 27 05:35:42 2013
@@ -0,0 +1,125 @@
+<?php
+// Get the task from the session
+require_once(HOME . "/classes/RCMETWizardTask.class.php");
+$task = unserialize($_SESSION['wizardTask']);
+$task->setStep('generatePlots');
+
+$task->showPreviousNextLinks();
+?>
+<script type="text/javascript">
+	$(document).ready(function() {
+
+		$('#btnBegin').click(function() {
+			$('#working').show();
+
+			/** 
+			 * All values hardcoded to test webapp <--> Bottle integration
+			 **/
+			$.post(<?php echo SITE_ROOT?>'/plots.do',{
+				"action"        : "GENERATE",
+
+				"obsDatasetId"   : "<?php echo $task->observationalDatasetId?>",
+				"obsParameterId" : "<?php echo $task->observationalParameterId?>",
+				"startTime"      : "<?php echo $task->rangeStart?>",
+				"endTime"        : "<?php echo $task->rangeEnd?>",
+				"latMin"         : "<?php echo $task->modelBounds['lat']['min']?>",
+				"latMax"         : "<?php echo $task->modelBounds['lat']['max']?>",
+				"lonMin"         : "<?php echo $task->modelBounds['lon']['min']?>",
+				"lonMax"         : "<?php echo $task->modelBounds['lon']['max']?>",
+				"filelist"       : "<?php echo $task->modelFilePaths[0]?>",
+				"modelVarName"   : "<?php echo $task->modelParameter?>",
+				/*precipFlag*/
+				"modelTimeVarName":"<?php echo $task->modelVars['time']?>",
+				"modelLatVarName" :"<?php echo $task->modelVars['lat']?>",
+				"modelLonVarName" :"<?php echo $task->modelVars['lon']?>",
+				"regridOption"    :"<?php echo $task->spatialRegridOption?>",
+				"timeRegridOption":"<?php echo $task->temporalRegridOption?>",
+				/*seasonalCycleOption*/
+				"metricOption"    :"<?php echo $task->metric?>",
+				/*titleOption*/
+				/*plotFileNameOption*/
+				/*maskOption*/
+				/*maskLatMin*/
+				/*maskLatMax*/
+				/*maskLonMin*/
+				/*maskLonMax*/
+			// Callback
+			},function(data) {
+				loadResults(data);
+			},"json");		
+		});
+	});
+
+	
+	function loadResults(data) {
+		// Path to .png server script
+		var base = "<?php echo SITE_ROOT?>/plotView.do?path=";
+		
+		$('#working').hide();
+		$('#results').show();
+		$('#results')
+			.append($('<a>')
+				.attr('href',base + data.modelPath)
+				.attr('target','new')
+				.text('Model Data Plot'));
+		$('#results').append('<br/>');
+		$('#results')
+			.append($('<a>')
+				.attr('href',base + data.obsPath)
+				.attr('target','new')
+				.text('Observational Data Plot'));
+		$('#results').append('<br/>');
+		$('#results')
+			.append($('<a>')
+				.attr('href',base + data.comparisonPath)
+				.attr('target','new')
+				.text('Comparison Plot'))
+	}
+</script>
+<div class="section">
+<div class="row">
+<div class="span12">
+<h2 class="title">Task Summary</h2>
+<div class="box">
+<div class="box-content">
+<div id="preview">
+<fieldset>
+<legend>
+Please review the settings below before submitting your job: </legend>
+<table class="table">
+<tr><th>Model File:</th>             <td><?php echo $task->modelFilePaths[0]?></td></tr>
+<tr><th>Latitude Range (var): </th>  <td><strong>FROM:</strong>
<?php echo $task->modelBounds['lat']['min'] . ', <strong>TO:</strong> '
. $task->modelBounds['lat']['max'].", <strong>USING:</strong> \"".$task->modelVars['lat']."\""?></td></tr>
+<tr><th>Longitude Range (var):</th>  <td><strong>FROM:</strong>
<?php echo $task->modelBounds['lon']['min'] . ', <strong>TO:</strong> '
. $task->modelBounds['lon']['max'].", <strong>USING:</strong> \"".$task->modelVars['lon']."\""?></td></tr>
+<tr><th>Time Range (var):</th>       <td><strong>FROM:</strong>
<?php echo $task->rangeStart . ', <strong>TO:</strong> ' . $task->rangeEnd.",
<strong>USING:</strong> \"".$task->modelVars['time']."\""?></td></tr>
+<tr><th>Model Parameter:</th>        <td><?php echo $task->modelParameter?></td></tr>
+<tr><th>Observational Dataset:</th>  <td><?php echo $task->observationalDataset?>
(id:<?php echo $task->observationalDatasetId?>)</td></tr>
+<tr><th>Observational Parameter:</th><td><?php echo $task->observationalParameter?>
(id:<?php echo $task->observationalParameterId?>)</td></tr>
+<tr><th>Spatial Regrid Option:</th><td><?php echo $task->dictSpatialRegrid($task->spatialRegridOption)?></td></tr>
+<tr><th>Temporal Regrid Option:</th><td><?php echo $task->dictTemporalRegrid($task->temporalRegridOption)?></td></tr>
+<tr><th>Metric Calculated:</th><td><?php echo $task->dictMetrics($task->metric)?></td></tr>
+
+</table>
+
+<hr class="space"/>
+<div style="text-align:right;">
+<p>If the information above is correct, please click: 
+<input type="button" id="btnBegin" value="Generate Plots" class="btn btn-primary"/>
+<a href="../init" class="btn">Start Over</a>
+</p>
+</div>
+
+
+<div id="working" style="display:none;">working... (this may take up to 10 minutes)</div>
+<div id="results" style="display:none;">
+	<h2>Plotted Results</h2>
+	<p>Your plotted files are ready. To view, click on a link below. Each link opens
+	   in a new window.</p>
+	<hr/>
+</div>
+</fieldset>
+</div>
+</div>
+</div>
+</div>
+</div>
+</div>

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/generatePlots.php
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectLatLonVars.php
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectLatLonVars.php?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectLatLonVars.php
(added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectLatLonVars.php
Tue Aug 27 05:35:42 2013
@@ -0,0 +1,63 @@
+<?php
+// Get the task from the session
+require_once(HOME . "/classes/RCMETWizardTask.class.php");
+$task = unserialize($_SESSION['wizardTask']);
+$task->setStep('selectLatLonVars');
+	
+	
+if (isset($_POST['save'])) {
+	// Store the model lat/lon variables and bounds
+	$task->modelVars['lat']  = $_POST['latname'];
+	$task->modelVars['lon']  = $_POST['lonname'];
+	$task->modelBounds['lat'] = array("min" => $_POST['latmin'], "max" => $_POST['latmax']);
+	$task->modelBounds['lon'] = array("min" => $_POST['lonmin'], "max" => $_POST['lonmax']);
+	
+	// Go to the next step
+	$task->nextStep();
+	
+} else {
+	$path = $task->modelFilePaths[0];
+	$srvcPath = 'http://localhost:8082/list/latlon/"' . $path . '"';
+	$data = json_decode(file_get_contents($srvcPath));
+}
+?>
+<div class="section">
+<div class="row">
+<div class="span12">
+<h2 class="title">Spatial Boundaries</h2>
+<div class="box">
+<div class="box-content">
+<fieldset id="variableAssignmentSelector" class="">
+	<legend>Confirm Latitude and Longitude Selection</legend>
+<form method="POST">
+	The following information has been auto-detected for latitude and longitude by examining

+	the file specified in the previous step:<hr/>
+	<div>
+	<h5>Latitude</h5>
+	<table>
+		<tr><th>Var:</th><td id="latVariable"><input type="text" name="latname"
value="<?php echo $data->latname?>"/></td><td class="note">The variable
in the model file that will be used to represent Latitude</td> </tr>
+		<tr><th>Min:</th><td id="latMinValue"><input type="text" name="latmin"
 value="<?php echo $data->latMin?>"/></td><td class="note">The minimum
Latitude value detected in the model file</td></tr>
+		<tr><th>Max:</th><td id="latMaxValue"><input type="text" name="latmax"
 value="<?php echo $data->latMax?>"/></td><td class="note">The maximum
Latitude value detected in the model file</td></tr>
+	</table>
+	</div>
+	<div>
+	<h5>Longitude</h5>
+	<table>
+		<tr><th>Var:</th><td id="lonVariable"><input type="text" name="lonname"
value="<?php echo $data->lonname?>"/></td><td class="note">The variable
in the model file that will be used to represent Longitude</td></tr>
+		<tr><th>Min:</th><td id="lonMinValue"><input type="text" name="lonmin"
 value="<?php echo $data->lonMin?>"/></td><td class="note">The minimum
Longitude value detected in the model file</td></tr>
+		<tr><th>Max:</th><td id="lonMaxValue"><input type="text" name="lonmax"
 value="<?php echo $data->lonMax?>"/></td><td class="note">The maximum
Longitude value detected in the model file</td></tr>
+	</table>
+	</div>
+	<br/>
+	<div>
+	<p>If the information above is correct, please click: 
+	<input type="submit" name="save" value="Continue" class="btn btn-primary"/>
+	</p>
+	</div>
+</form>
+</fieldset>
+</div>
+</div>
+</div>
+</div>
+</div>

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectLatLonVars.php
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectMetricOptions.php
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectMetricOptions.php?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectMetricOptions.php
(added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectMetricOptions.php
Tue Aug 27 05:35:42 2013
@@ -0,0 +1,49 @@
+<?php
+// Get the task from the session
+require_once(HOME . "/classes/RCMETWizardTask.class.php");
+$task = unserialize($_SESSION['wizardTask']);
+$task->setStep('selectMetricOptions');
+
+if (isset($_POST['save'])) {
+	$task->metric  = $_POST['metric'];
+	
+	$task->nextStep();
+}
+$task->showPreviousNextLinks();
+?>
+<div class="section">
+<div class="row">
+<div class="span12">
+<h2 class="title">Calculation Metric</h2>
+<div class="box">
+<div class="box-content">
+<fieldset id="variableAssignmentSelector" class="">
+	<legend>Specify The Metric to Calculate</legend>
+<form method="POST">
+	The toolkit can compute results for a number of pre-defined metrics:<hr/>
+	
+	<h4>Calculation Metric</h4>
+	<select name="metric">
+		<option value="-1">Please select an option...</option>
+		<option value="bias">Bias: mean bias across full time range</option>
+		<option value="mae">Mean Absolute Error: across full time range</option>
+		<option value="difference">Difference: calculated at each time unit</option>
+		<option value="acc">Anomaly Correlation</option>
+		<option value="patcor">Pattern Correlation</option>
+		<option value="pdf" disabled="disabled">Probability Distribution Function similarity
score</option>
+		<option value="rms">RMS Error</option>
+	</select>
+
+	<br/><br/>
+	<div>
+	<p>If the information above is correct, please click: 
+	<input type="submit" name="save" value="Continue" class="btn btn-primary"/>
+	</p>
+	</div>	
+</form>
+</fieldset>
+</div>
+</div>
+</div>
+</div>
+</div>

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectMetricOptions.php
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectModelFiles.php
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectModelFiles.php?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectModelFiles.php
(added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectModelFiles.php
Tue Aug 27 05:35:42 2013
@@ -0,0 +1,75 @@
+<?php
+// Get the task from the session
+require_once(HOME . "/classes/RCMETWizardTask.class.php");
+$task = unserialize($_SESSION['wizardTask']);
+$task->setStep('selectModelFiles');
+
+if (isset($_POST['save'])) {
+	if (!$task) { header("Location: " . SITE_ROOT . '/wizard/init'); }
+	
+	// Store the model file path information
+	$task->modelFilePaths[0] = $_POST['txtModelFilePath'];
+	
+	// Go to the next step
+	$task->nextStep('selectModelFiles');
+}
+
+?>
+<script type="text/javascript">
+var autocomplete;
+$(document).ready(function() {
+	$('#txtModelFilePath').keyup(function(e) {
+		var code = (e.keyCode) ? e.keyCode : e.which;
+		if (code == 191) {/* forward slash (/) */
+			// Load a new set of autocomplete options based
+			// on the latest directory path requested
+			fetchFiles($(this).val());
+			
+		} else {
+			// Filter the existing autocomplete options based 
+			// on the new keypress
+		}
+	});
+
+	$('#pathAutocomplete li span').live('click',function(e) {
+		val = $(e.target).text();
+		$('#txtModelFilePath').val($('#txtModelFilePath').val() + val);
+		if (val[val.length - 1] == '/')
+			fetchFiles($('#txtModelFilePath').val());
+	});
+});
+
+function fetchFiles(path) {
+	$.get('/dirlist.do?path='+path,{},
+		function(data) {
+			autocomplete = data;
+			updateAutocomplete();					
+	},'json');
+}
+function updateAutocomplete() {
+	$('#pathAutocomplete li').remove();
+	$.each(autocomplete,function(i,v) {
+		$('#pathAutocomplete').append($('<li>').html($('<span>').text(v)));
+	});
+}
+</script>
+<div class="section">
+<div class="row">
+<div class="span12">
+<h2 class="title">Select a Model File</h2>
+<div class="box">
+<div class="box-content">
+    <fieldset id="modelFileSelector">
+    <form method="post">
+	    <legend>Please select the file that contains your model data:</legend>
+	    <input type="file" id="txtModelFilePath" name="txtModelFilePath" value=""/>
+	    <input id="btnLoadModelFile" type="submit" name="save" value="Load" class="btn btn-primary"/>
+	    <br/>
+	    <p class="hint">Acceptable formats are <strong>NetCDF</strong> (*.nc)</p>
+    </form>
+    </fieldset>
+</div>
+</div>
+</div>
+</div>
+</div>

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectModelFiles.php
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectModelVar.php
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectModelVar.php?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectModelVar.php
(added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectModelVar.php
Tue Aug 27 05:35:42 2013
@@ -0,0 +1,53 @@
+<?php
+// Get the task from the session
+require_once(HOME . "/classes/RCMETWizardTask.class.php");
+$task = unserialize($_SESSION['wizardTask']);
+$task->setStep('selectModelVar');
+	
+	
+if (isset($_POST['save'])) {
+	// Store the model parameter that is to be evaluated
+	$task->modelParameter   = $_POST['modelParameter'];
+	
+	// Go to the next step
+	$task->nextStep();
+	
+} else {
+	$path = $task->modelFilePaths[0];
+	$srvcPath = 'http://localhost:8082/list/vars/"' . $path . '"';
+	$data = json_decode(file_get_contents($srvcPath));
+}
+
+
+$task->showPreviousNextLinks('selectModelVar');
+?>
+<div class="section">
+<div class="row">
+<div class="span12">
+<h2 class="title">Model Parameter</h2>
+<div class="box">
+<div class="box-content">
+<fieldset class="">
+	<legend>Select a Model Parameter to Evaluate</legend>
+	<form method="POST">
+		The following parameter information has been auto-detected from the model input file:<hr/>
+		<h5>Available Parameters</h5>
+		<select name="modelParameter">
+			<?php foreach ($data->variables as $var):?>
+				<option value="<?php echo $var?>"><?php echo $var?></option>
+			<?php endforeach ?>
+		</select>
+		<span class="note">The variable in the model file that will be used in calculations</span>
+        <br/><br/>
+		<div>
+		<p>If the information above is correct, please click: 
+		<input type="submit" name="save" value="Continue" class="btn btn-primary"/>
+		</p>
+		</div>
+	</form>
+</fieldset>
+</div>
+</div>
+</div>
+</div>
+</div>

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectModelVar.php
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectObservationalData.php
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectObservationalData.php?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectObservationalData.php
(added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectObservationalData.php
Tue Aug 27 05:35:42 2013
@@ -0,0 +1,86 @@
+<?php
+// Get the task from the session
+require_once(HOME . "/classes/RCMETWizardTask.class.php");
+$task = unserialize($_SESSION['wizardTask']);
+$task->setStep('selectObservationalData');
+
+	
+if (isset($_POST['save'])) {
+	// Store the model parameter that is to be evaluated
+	$task->observationalDataset   = $_POST['observationalDataset'];
+	$task->observationalDatasetId = $_POST['observationalDatasetId'];
+	$task->observationalParameter = $_POST['observationalParameter'];
+	$task->observationalParameterId = $_POST['observationalParameterId'];
+
+	// Go to the next step
+	$task->nextStep();
+	
+} else {
+	$path = App::Get()->settings['rcmed_query_api_url_base'] . "/datasets.php";
+	$data = json_decode(file_get_contents($path));
+}
+
+$task->showPreviousNextLinks();
+?>
+<script type="text/javascript">
+var parameterServicePath = <?php echo SITE_ROOT?>'/rcmed.do';
+$(document).ready(function() {
+	$('#observationalDataset').change(function(e) {
+		datasetId = $(this).children('option:selected').attr('title');
+		$('#obsDatasetId').val(datasetId);
+		$.get(parameterServicePath,{'action':'parameters','dataset':$(this).val()},function(data)
{
+			$paramSelector = $('<select>').attr('name','observationalParameter').addClass('observationalParameter');
+			$paramSelector.append($('<option>')
+				.attr('value',0)
+				.text('Please select a parameter...'));
+			$.each(data,function(i,v) {
+				$option = $('<option>')
+					.attr('title',v.parameter_id)
+					.attr('value',v.shortName)
+					.text(v.longName);
+				$paramSelector.append($option);
+			});
+			$('#parameterList').html($paramSelector);
+		},"json");
+
+	});
+	$('.observationalParameter').live('change',function(e) {
+		paramId = $(e.target).children('option:selected').attr('title');
+		$('#obsParamId').val(paramId);
+	});
+
+});
+</script>
+<div class="section">
+<div class="row">
+<div class="span12">
+<h2 class="title">Observational Data</h2>
+<div class="box">
+<div class="box-content">
+<fieldset id="modelFileSelector">
+	<legend>Select an observational dataset and parameter for comparison:</legend>
+	<p>The following information is retrieved automatically from the Regional Climate
Model Evaluation Database:
+	<form method="post">
+		<h4>Available Datasets</h4>
+		<input type="hidden" id="obsDatasetId" name="observationalDatasetId" value=""/>
+		<input type="hidden" id="obsParamId"   name="observationalParameterId" value=""/>
+		<select id="observationalDataset" name="observationalDataset">
+			<option value="0" selected="selected">Please select a dataset...</option>
+			<?php foreach ($data as $dataset): ?>
+				<option value="<?php echo $dataset->shortName?>" title="<?php echo $dataset->dataset_id?>"><?php
echo $dataset->longName?> (<?php echo $dataset->shortName?>)</option>
+			<?php endforeach ?>
+		</select>
+		<span id="parameterList"></span>
+		<br/><br/>
+		<div style="">
+		<p>If the information above is correct, please click: 
+		<input type="submit" name="save" value="Continue" class="btn btn-primary"/>
+		</p>
+		</div>
+	</form>
+</fieldset>
+</div>
+</div>
+</div>
+</div>
+</div>

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectObservationalData.php
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectOptionalTasks.php
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectOptionalTasks.php?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectOptionalTasks.php
(added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectOptionalTasks.php
Tue Aug 27 05:35:42 2013
@@ -0,0 +1,45 @@
+<?php
+// Get the task from the session
+require_once(HOME . "/classes/RCMETWizardTask.class.php");
+$task = unserialize($_SESSION['wizardTask']);
+$task->setStep('selectOptionalTasks');
+
+if (isset($_POST['save'])) {
+	
+	// Nothing to save, yet.
+	$task->nextStep();
+}
+$task->showPreviousNextLinks();
+?>
+<div class="section">
+<div class="row">
+<div class="span12">
+<h2 class="title">Optional Tasks</h2>
+<div class="box">
+<div class="box-content">
+<fieldset id="variableAssignmentSelector" class="">
+	<legend>Specify Optional Processing Steps to Perform</legend>
+<form method="POST">
+	The toolkit can optionally perform a number of optional processing steps based upon
+	preferences specified here:<hr/>
+	
+	<h4>Spatial Regridding Options</h4>
+	<input type="checkbox" name="areaAverages" disabled="disabled" style="vertical-align:middle;"/>
Do you wish to calculate area averages over a masked region of interest?
+	
+	<h4>Seasonal Cycle Option</h4>
+	<input type="checkbox" name="seasonalCycle" disabled="disabled" style="vertical-align:middle;"/>
Do you wish to composite the data to show seasonal cycles?
+	
+	
+	<br/><br/>
+	<div style="text-align:right;">
+	<p>If the information above is correct, please click: 
+	<input type="submit" name="save" value="Continue" class="btn btn-primary"/>
+	</p>
+	</div>		
+</form>
+</fieldset>
+</div>
+</div>
+</div>
+</div>
+</div>

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectOptionalTasks.php
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectPlotOptions.php
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectPlotOptions.php?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectPlotOptions.php
(added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectPlotOptions.php
Tue Aug 27 05:35:42 2013
@@ -0,0 +1,42 @@
+<?php
+// Get the task from the session
+require_once(HOME . "/classes/RCMETWizardTask.class.php");
+$task = unserialize($_SESSION['wizardTask']);
+$task->setStep('selectPlotOptions');
+
+if (isset($_POST['save'])) {
+	// Nothing to save, yet
+	
+	$task->nextStep();
+}
+$task->showPreviousNextLinks();
+?>
+<div class="section">
+<div class="row">
+<div class="span12">
+<h2 class="title">Plot Options</h2>
+<div class="box">
+<div class="box-content">
+<fieldset id="variableAssignmentSelector" class="">
+	<legend>Custom Plotting Options</legend>
+<form method="POST">
+	Depending upon your current settings, it may be possible to
+	customize some aspects of the generated plots:<hr/>
+	
+<h3>Customize Plots</h3>
+	<input type="checkbox" name="seasonalCycle" disabled="disabled" style="vertical-align:middle;"/>

+		Do you wish to customize the plots generated by this toolkit?
+	
+	<br/><br/>
+	<div>
+	<p>If the information above is correct, please click: 
+	<input type="submit" name="save" value="Continue" class="btn btn-primary"/>
+	</p>
+	</div>	
+</form>
+</fieldset>
+</div>
+</div>
+</div>
+</div>
+</div>

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectPlotOptions.php
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectRegrid.php
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectRegrid.php?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectRegrid.php
(added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectRegrid.php
Tue Aug 27 05:35:42 2013
@@ -0,0 +1,58 @@
+<?php
+// Get the task from the session
+require_once(HOME . "/classes/RCMETWizardTask.class.php");
+$task = unserialize($_SESSION['wizardTask']);
+$task->setStep('selectRegrid');
+if (isset($_POST['save'])) {
+	$task->spatialRegridOption  = $_POST['spatialRegridOption'];
+	$task->temporalRegridOption = $_POST['temporalRegridOption'];
+
+	$task->nextStep();
+}
+$task->showPreviousNextLinks();
+?>
+<div class="section">
+<div class="row">
+<div class="span12">
+<h2 class="title">Regridding Properties</h2>
+<div class="box">
+<div class="box-content">
+<fieldset id="variableAssignmentSelector" class="">
+	<legend>Specify parameters for spatial and temporal regridding:</legend>
+<form method="POST">
+	Provide details about the methods to use for regridding the observational and 
+	model data in both space and time:<hr/>
+	
+	<h4>Spatial Regridding Options</h3>
+	<select name="spatialRegridOption">
+		<option value="-1">Please select an option...</option>
+		<option value="obs">Use Observational Data Grid</option>
+		<option value="model">Use Model Data Grid</option>
+		<option value="regular" disabled="disabled">Define a New Regular lat/lon Grid</option>
+	</select>
+	<span class="note">Specify the spatial grid to use as a reference when calculating
</span>
+	
+	<h4>Temporal Regridding Options</h3>
+	<select name="temporalRegridOption">
+		<option value="-1">Please select an option...</option>
+		<option value="full">Calculate time mean for full period</option>
+		<option value="annual">Calculate annual means</option>
+		<option value="monthly">Calculate monthly means</option>
+		<option value="daily">Calculate daily means (from sub-daily data)</option>
+	</select>
+	<span class="note">Specify the temporal gridding options to use when calculating </span>
+	
+
+	<br/><br/>
+	<div>
+	<p>If the information above is correct, please click: 
+	<input type="submit" name="save" value="Continue" class="btn btn-primary"/>
+	</p>
+	</div>	
+</form>
+</fieldset>
+</div>
+</div>
+</div>
+</div>
+</div>

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectRegrid.php
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectTimeRange.php
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectTimeRange.php?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectTimeRange.php
(added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectTimeRange.php
Tue Aug 27 05:35:42 2013
@@ -0,0 +1,83 @@
+<?php
+// Get the task from the session
+require_once(HOME . "/classes/RCMETWizardTask.class.php");
+$task = unserialize($_SESSION['wizardTask']);
+$task->setStep('selectTimeRange');
+
+if (isset($_POST['save'])) {
+	$task->rangeStart = $_POST['rangeStart'] . ' 00:00:00';
+	$task->rangeEnd   = $_POST['rangeEnd']   . ' 00:00:00';
+	$task->nextStep();
+}
+
+// Compute the tiems to show for the observational dataset
+list($obsStartTime,$obsEndTime) = $task->getTimeRange($task->observationalDatasetId);
+
+// Compute the times to show for the overlap
+list($overlapStart,$overlapEnd) = $task->computeOverlap(
+	$task->modelBounds['time']['min'],   // model start
+	$task->modelBounds['time']['max'],   // model end
+	$obsStartTime,                       // obs start time
+	$obsEndTime);                        // obs end time
+
+$task->showPreviousNextLinks();
+?>
+<link rel="stylesheet" type="text/css" href="<?echo SITE_ROOT?>/static/css/jquery-ui-1.7.1.custom.css"/>
+<script type="text/javascript" src="<?php echo SITE_ROOT?>/static/js/jquery-ui-1.7.1.custom.min.js"></script>
+<script type="text/javascript">
+$(document).ready(function() {
+	// Initialize Date Pickers
+	$('#overlap-start').datepicker({changeMonth: true, changeYear: true, dateFormat: 'yy-mm-dd'});
+	$('#overlap-end').datepicker({changeMonth: true, changeYear: true, dateFormat: 'yy-mm-dd'});

+
+});
+</script>
+<div class="section">
+<div class="row">
+<div class="span12">
+<h2 class="title">Comparison Time Range</h2>
+<div class="box">
+<div class="box-content">
+<fieldset id="variableAssignmentSelector" class="">
+	<legend>Specify a Time Range Over Which to Operate</legend>
+<form method="POST">
+	The following information has been auto-detected using the model and observational
+	data specified in the previous steps:<hr/>
+	<div class="row">
+	    <div class="span4">
+	    <h3>Model:</h3>
+	    <label>Range Start:</label>
+	    <input type="text" disabled="disabled" value="<?php echo substr($task->modelBounds['time']['min'],0,10)?>"/>
+	    <label>Range End:</label>
+	    <input type="text" disabled="disabled" value="<?php echo substr($task->modelBounds['time']['max'],0,10)?>"/>
+	    </div>
+	    <div class="span4">
+	    <h3>Observations:</h3>
+	    <label>Range Start:</label>
+	    <input type="text" disabled="disabled" value="<?php echo substr($obsStartTime,0,10)?>"/>
+	    <label>Range End:</label>
+	    <input type="text" disabled="disabled" value="<?php echo substr($obsEndTime,0,10)?>"/>
+	    </div>
+	    <div class="span3">
+	    <h3>Comparison:</h3>
+	    <label>Range Start:</label>
+	    <input type="text" id="overlap-start" name="rangeStart" value="<?php echo substr($overlapStart,0,10)?>"/>
+	    <label>Range End:</label>
+	    <input type="text" id="overlap-end"   name="rangeEnd" value="<?php echo substr($overlapEnd,0,10)?>"/>
+	    </div>
+	</div>
+	
+	<br/><br/>
+	<div>
+	<p>If the information above is correct, please click: 
+	<input type="submit" name="save" value="Continue" class="btn btn-primary"/>
+	</p>
+	</div>
+	
+</form>
+</fieldset>
+</div>
+</div>
+</div>
+</div>
+</div>

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectTimeRange.php
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectTimeVars.php
URL: http://svn.apache.org/viewvc/incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectTimeVars.php?rev=1517753&view=auto
==============================================================================
--- incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectTimeVars.php
(added)
+++ incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectTimeVars.php
Tue Aug 27 05:35:42 2013
@@ -0,0 +1,52 @@
+<?php
+// Get the task from the session
+require_once(HOME . "/classes/RCMETWizardTask.class.php");
+$task = unserialize($_SESSION['wizardTask']);
+$task->setStep('selectTimeVars');
+	
+	
+if (isset($_POST['save'])) {
+	// Store the time bounds
+	$task->modelVars['time']   = $_POST['timename'];
+	$task->modelBounds['time'] = array("min" => $_POST['timeMin'], "max" => $_POST['timeMax']);
+	
+	// Go to the next step
+	$task->nextStep();
+	
+} else {
+	$path = $task->modelFilePaths[0];
+	$srvcPath = 'http://localhost:8082/list/time/"' . $path . '"';
+	$data = json_decode(file_get_contents($srvcPath));
+}
+
+$task->showPreviousNextLinks('selectTimeVars');
+?>
+<div class="section">
+<div class="row">
+<div class="span12">
+<h2 class="title">Temporal Boundaries</h2>
+<div class="box">
+<div class="box-content">
+<fieldset class="">
+	<legend>Confirm Temporal Variable Selection</legend>
+	<form method="POST">
+		The following information has been auto-detected for time:<hr/>
+		<h5>Time</h5>
+		<table>
+			<tr><th>Var:</th><td id="timeVariable"><input type="text" name="timename"
value="<?php echo $data->timename?>"/></td><td class="note">The variable
in the model file that will be used to represent Time</td></tr>
+			<tr><th>Min:</th><td id="timeMinValue"><input type="text" name="timeMin"
 value="<?php echo $data->start_time?>"/></td><td class="note">The
earliest Time value detected in the model file</td></tr>
+			<tr><th>Max:</th><td id="timeMaxValue"><input type="text" name="timeMax"
 value="<?php echo $data->end_time?>"/></td><td class="note">The most
recent Time value detected in the model file</td></tr>
+		</table>
+		<div>
+		<br/>
+		<p>If the information above is correct, please click: 
+		<input type="submit" name="save" value="Continue" class="btn btn-primary"/>
+		</p>
+		</div>
+	</form>
+</fieldset>
+</div>
+</div>
+</div>
+</div>
+</div>

Propchange: incubator/climate/branches/rcmet-2.1.1/src/main/webapp/views/wizard/steps/selectTimeVars.php
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message