Skip to content
Snippets Groups Projects
inspectmainreport.txt 2.79 KiB
<%doc>
This Mako template is intended to create a summary report page about
a single file for Glance's inspection report.

Created by Eva Schiffer Nov 2011.
Copyright (c) 2011 University of Wisconsin SSEC. All rights reserved.
</%doc>

<%!
    import glance.report as report
    import glance.constants as constants
%>

<%inherit file="basereport.txt"/>

<%block name="title">File Analysis Summary</%block>

## there isn't any disparity to display here because there's only one file
<%block name="spatialInvalidity"></%block>

## this is the main body block that includes most of the info
<%block name="comparedData">
    
    ## list all of the variables that were examined (if any)
    <%block name="analyzedVariablesList">
    
    % if len(variables.keys()) > 0 : 
    
        <h3>Analyzed Variables</h3>
        
        ## report on all the variables that were analyzed
        <blockquote>
            <p>
                ## TODO replace the table with floating boxes at some point
                <table> 
                    % for variableKey in sorted(list(variables)) :
                        <%
                            # get some information about the variable, for convenience
                            tempVariableInfo = variables[variableKey]
                            tempVarRunInfo   = tempVariableInfo[constants.VARIABLE_RUN_INFO_KEY]
                            
                            technicalName  = tempVarRunInfo[constants.VARIABLE_TECH_NAME_KEY]
                            varDisplayName = technicalName
                            if constants.DISPLAY_NAME_KEY in tempVarRunInfo :
                                varDisplayName = tempVarRunInfo[constants.DISPLAY_NAME_KEY]
                        %>
                        <tr>
                            <td>
                                ## for spacing
                            </td>
                            <td>
                                Variable: <a href="${tempVarRunInfo[constants.VAR_REPORT_PATH_KEY]}">${varDisplayName}</a> <br>
                            </td>
                        </tr>
                    % endfor
                </table>
            </p>
        </blockquote>
    
    % endif
    
    </%block>
    
    ## report the names of variables shared between the two files, if any
    <%block name="allVariablesList">
    
    <% possVars = varNames[constants.POSSIBLE_NAMES_KEY] %>
    % if len(possVars) > 0 :
        <h3>Possible Variables</h3>
        <p>