-
(no author) authored
moving the reports and some other things I missed the first time around to use the new constants module git-svn-id: https://svn.ssec.wisc.edu/repos/glance/trunk@203 8a9318a1-56ba-4d59-b755-99d26321be01
(no author) authoredmoving the reports and some other things I missed the first time around to use the new constants module git-svn-id: https://svn.ssec.wisc.edu/repos/glance/trunk@203 8a9318a1-56ba-4d59-b755-99d26321be01
inspectvariablereport.txt 1.65 KiB
<%doc>
This Mako template is intended to create a variable specific report page for Glance.
Created by Eva Schiffer May 2012.
Copyright (c) 2012 University of Wisconsin SSEC. All rights reserved.
</%doc>
<%!
import glance.report as report
import glance.constants as constants
%>
<%inherit file="variablereport.txt"/>
<%block name="title">
<%
variableName = runInfo[constants.VARIABLE_TECH_NAME_KEY]
variableDisplayName = variableName
if (runInfo.has_key(constants.DISPLAY_NAME_KEY)):
variableDisplayName = runInfo[constants.DISPLAY_NAME_KEY]
%>
${variableDisplayName} Variable Analysis
</%block>
## additional filtering information specific to the variable being analyzed
<%block name="additionalFilterInfo">
## display info about the basic data filters if the data was filtered
% if (constants.FILTER_FUNCTION_A_KEY in runInfo) and (not (runInfo[constants.FILTER_FUNCTION_A_KEY] is None)) :
Note: The data for this variable was filtered.<br>
<% wasFiltered = True %>
% endif
</%block>
## this is the summary of how the data was compared
<%block name="comparisonSummary">
<h3>Analysis Information</h3>
## comparison parameters
<p>
## display the variable names
variable name: ${runInfo[constants.VARIABLE_TECH_NAME_KEY]} <br>
## display the missing value
"missing" data value: ${str(runInfo[constants.FILL_VALUE_KEY])}<br>
## if there are units available, display those
% if (constants.VAR_UNITS_A_KEY in runInfo) and (runInfo[constants.VAR_UNITS_A_KEY] is not None) :
units in A: ${str(runInfo[constants.VAR_UNITS_A_KEY])}<br>
% endif
</p>
</%block>