<commit_before>{# This template is used as the landing page for Geographic Raster Resource #}

{% extends "pages/genericresource.html" %}
{% load geoanalytics_tags pages_tags mezzanine_tags crispy_forms_tags %}

{% block extended_metadata %}
    {% if extended_metadata_exists %}
        <div class="row">
            <div class="col-md-12">
                <div>
                    {% if originalCoverage %}
                        <h4><strong>Original Spatial Coverage:</strong></h4>
                        <hr style="margin-top: 0px;margin-bottom: 2px">
                        {% if originalCoverage.name %}
                            <div class="row">
                                <div class="col-sm-4"><strong>Place/Area Name:</strong></div>
                                <div class="col-sm-8">{{ originalCoverage.name}}</div>
                            </div>
                        {% endif %}
                        {% if originalCoverage.projection %}
                            <div class="row">
                                <div class="col-sm-4"><strong>Coordinate System/Geographic Projection:</strong></div>
                                <div class="col-sm-8">{{ originalCoverage.projection}}</div>
                            </div>
                        {% endif %}
                        {% if originalCoverage.northlimit %}
                            <div class="row">
                                <div class="col-sm-4"><strong>North Latitude:</strong></div>
                                <div class="col-sm-8">{{ originalCoverage.northlimit }}</div>
                            </div>
                        {% endif %}
                        {% if originalCoverage.eastlimit %}
                            <div class="row">
                                <div class="col-sm-4"><strong>East Longitude:</strong></div>
                                <div class="col-sm-8">{{ originalCoverage.eastlimit }}</div>
                            </div>
                        {% endif %}
                        {% if originalCoverage.southlimit %}
                            <div class="row">
                                <div class="col-sm-4"><strong>South Latitude:</strong></div>
                                <div class="col-sm-8">{{ originalCoverage.southlimit }}</div>
                            </div>
                        {% endif %}
                        {% if originalCoverage.westlimit %}
                            <div class="row">
                                <div class="col-sm-4"><strong>West Longitude:</strong></div>
                                <div class="col-sm-8">{{ originalCoverage.westlimit}}</div>
                            </div>
                        {% endif %}
                        {% if originalCoverage.units %}
                            <div class="row">
                                <div class="col-sm-4"><strong>Coordinate Units:</strong></div>
                                <div class="col-sm-8">{{ originalCoverage.units}}</div>
                            </div>
                        {%  endif %}
                    <hr>
                    {% endif %}
                </div>

                <div>
                    {% if cellInformation %}
                        <h4><strong>Cell Information:</strong></h4>
                        <hr style="margin-top: 0px;margin-bottom: 2px">
                        <div class="row">
                            <div class="col-sm-4"><strong>Rows:</strong></div>
                            <div class="col-sm-8">{{ cellInformation.rows }}</div>
                        </div>
                        <div class="row">
                            <div class="col-sm-4"><strong>Columns:</strong></div>
                            <div class="col-sm-8">{{ cellInformation.columns }}</div>
                        </div>
                        <div class="row">
                            <div class="col-sm-4"><strong>CellSizeXValue:</strong></div>
                            <div class="col-sm-8">{{ cellInformation.cellSizeXValue }}</div>
                        </div>
                        <div class="row">
                            <div class="col-sm-4"><strong>CellSizeYValue:</strong></div>
                            <div class="col-sm-8">{{ cellInformation.cellSizeYValue }}</div>
                        </div>
                        <div class="row">
                            <div class="col-sm-4"><strong>CellSizeUnit:</strong></div>
                            <div class="col-sm-8">{{ cellInformation.cellSizeUnit }}</div>
                        </div>
                        <div class="row">
                            <div class="col-sm-4"><strong>CellDataType:</strong></div>
                            <div class="col-sm-8">{{ cellInformation.cellDataType }}</div>
                        </div>
                        {% if cellInformation.noDataValue %}
                            <div class="row">
                                <div class="col-sm-4"><strong>NoDataValue:</strong></div>
                                <div class="col-sm-8">{{ cellInformation.noDataValue }}</div>
                            </div>
                        {% endif %}
                    <hr style="border:0">
                    {% endif %}
                </div>

                <div>
                    {% if bandInformation %}
                        <h4><strong>Band Information:</strong></h4>
                        <hr style="margin-top: 0px;margin-bottom: 2px">
                        {% for band in bandInformation %}
                            <div class="row">
                                <div class="col-sm-4"><strong>BandName:</strong></div>
                                <div class="col-sm-8">{{ band.name }}</div>
                            </div>
                            <div class="row">
                                <div class="col-sm-4"><strong>VariableName:</strong></div>
                                <div class="col-sm-8">{{ band.variableName }}</div>
                            </div>
                            <div class="row">
                                <div class="col-sm-4"><strong>VariableUnit:</strong></div>
                                <div class="col-sm-8">{{ band.variableUnit }}</div>
                            </div>
                            {% if band.method %}
                                <div class="row">
                                    <div class="col-sm-4"><strong>Method:</strong></div>
                                    <div class="col-sm-8">{{ band.method }}</div>
                                </div>
                            {% endif %}
                            {% if band.comment %}
                                <div class="row">
                                    <div class="col-sm-4"><strong>Comment:</strong></div>
                                    <div class="col-sm-8">{{ band.comment }}</div>
                                </div>
                            {% endif %}
                        {% endfor %}
                    {% endif %}
                </div>
            </div>
        </div>
    {% endif %}
{% endblock %}
{% block extra_js %}
    {{ block.super }}
    {# resource specific js can go here #}
{% endblock %}<commit_msg>[#324] spatial reference metadata view mode update<commit_after>{# This template is used as the landing page for Geographic Raster Resource #}

{% extends "pages/genericresource.html" %}
{% load geoanalytics_tags pages_tags mezzanine_tags crispy_forms_tags %}

{% block extended_metadata %}
    {% if extended_metadata_exists %}
        <div class="row">
            <div class="col-md-12">
                <div>
                    {% if originalCoverage %}
                        <h4><strong>Spatial Reference:</strong></h4>
                        <hr style="margin-top: 0px;margin-bottom: 2px">
                        {% if originalCoverage.projection %}
                            <div class="row">
                                <div class="col-sm-4"><strong>Coordinate Reference System:</strong></div>
                                <div class="col-sm-8">{{ originalCoverage.projection}}</div>
                            </div>
                        {% endif %}
                        {% if originalCoverage.units %}
                            <div class="row">
                                <div class="col-sm-4"><strong>Coordinate Reference System Unit:</strong></div>
                                <div class="col-sm-8">{{ originalCoverage.units}}</div>
                            </div>
                        {%  endif %}
                        {% if originalCoverage.northlimit %}
                            <div class="row">
                                <div class="col-sm-4"><strong>Extent:</strong></div>
                            </div>
                            <div class="row">
                                <div class="col-sm-4" style="text-indent:40px"><strong>North</strong></div>
                                <div class="col-sm-8">{{ originalCoverage.northlimit }}</div>
                            </div>
                        {% endif %}
                        {% if originalCoverage.eastlimit %}
                            <div class="row">
                                <div class="col-sm-4"style="text-indent:40px"><strong>East</strong></div>
                                <div class="col-sm-8">{{ originalCoverage.eastlimit }}</div>
                            </div>
                        {% endif %}
                        {% if originalCoverage.southlimit %}
                            <div class="row">
                                <div class="col-sm-4" style="text-indent:40px"><strong>South</strong></div>
                                <div class="col-sm-8">{{ originalCoverage.southlimit }}</div>
                            </div>
                        {% endif %}
                        {% if originalCoverage.westlimit %}
                            <div class="row">
                                <div class="col-sm-4" style="text-indent:40px"><strong>West</strong></div>
                                <div class="col-sm-8">{{ originalCoverage.westlimit}}</div>
                            </div>
                        {% endif %}

                    <hr>
                    {% endif %}
                </div>

                <div>
                    {% if cellInformation %}
                        <h4><strong>Cell Information:</strong></h4>
                        <hr style="margin-top: 0px;margin-bottom: 2px">
                        <div class="row">
                            <div class="col-sm-4"><strong>Rows:</strong></div>
                            <div class="col-sm-8">{{ cellInformation.rows }}</div>
                        </div>
                        <div class="row">
                            <div class="col-sm-4"><strong>Columns:</strong></div>
                            <div class="col-sm-8">{{ cellInformation.columns }}</div>
                        </div>
                        <div class="row">
                            <div class="col-sm-4"><strong>CellSizeXValue:</strong></div>
                            <div class="col-sm-8">{{ cellInformation.cellSizeXValue }}</div>
                        </div>
                        <div class="row">
                            <div class="col-sm-4"><strong>CellSizeYValue:</strong></div>
                            <div class="col-sm-8">{{ cellInformation.cellSizeYValue }}</div>
                        </div>
                        <div class="row">
                            <div class="col-sm-4"><strong>CellDataType:</strong></div>
                            <div class="col-sm-8">{{ cellInformation.cellDataType }}</div>
                        </div>
                        {% if cellInformation.noDataValue %}
                            <div class="row">
                                <div class="col-sm-4"><strong>NoDataValue:</strong></div>
                                <div class="col-sm-8">{{ cellInformation.noDataValue }}</div>
                            </div>
                        {% endif %}
                    <hr style="border:0">
                    {% endif %}
                </div>

                <div>
                    {% if bandInformation %}
                        <h4><strong>Band Information:</strong></h4>
                        <hr style="margin-top: 0px;margin-bottom: 2px">
                        {% for band in bandInformation %}
                            <div class="row">
                                <div class="col-sm-4"><strong>BandName:</strong></div>
                                <div class="col-sm-8">{{ band.name }}</div>
                            </div>
                            <div class="row">
                                <div class="col-sm-4"><strong>VariableName:</strong></div>
                                <div class="col-sm-8">{{ band.variableName }}</div>
                            </div>
                            <div class="row">
                                <div class="col-sm-4"><strong>VariableUnit:</strong></div>
                                <div class="col-sm-8">{{ band.variableUnit }}</div>
                            </div>
                            {% if band.method %}
                                <div class="row">
                                    <div class="col-sm-4"><strong>Method:</strong></div>
                                    <div class="col-sm-8">{{ band.method }}</div>
                                </div>
                            {% endif %}
                            {% if band.comment %}
                                <div class="row">
                                    <div class="col-sm-4"><strong>Comment:</strong></div>
                                    <div class="col-sm-8">{{ band.comment }}</div>
                                </div>
                            {% endif %}
                        {% endfor %}
                    {% endif %}
                </div>
            </div>
        </div>
    {% endif %}
{% endblock %}
{% block extra_js %}
    {{ block.super }}
    {# resource specific js can go here #}
{% endblock %}
{'fraction_non_alphanumeric': 0.1392590525361055, 'fraction_numerical': 0.007953673341240494, 'mean_word_length': 0.9438567941415785, 'pattern_counts': {'":': 0, '<': 351, '<?xml version=': 0, '>': 351, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5393417', 'n_tokens_mistral': 3646, 'n_tokens_neox': 3248, 'n_words': 568}