Add filename for LeafInputData details
This commit is contained in:
@@ -11,56 +11,28 @@
|
||||
@RendDistinctValues("Latitude [°]", Model.Select(m => m.Site.Latitude?.ToString()))
|
||||
@RendDistinctValues("Longitude [°]", Model.Select(m => m.Site.Longitude?.ToString()))
|
||||
@RendDistinctValues("Elevation [m]", Model.Select(m => m.Site.Elevation?.ToString()))
|
||||
@*@RendDistinctValues("CO2S",
|
||||
Model.Select(m =>
|
||||
m.SiteName + " (" + m.Id + "): " +
|
||||
string.Join(", ",
|
||||
m.Data?.Select(d => d.CO2S?.ToString())
|
||||
)
|
||||
|
||||
), "<br />"
|
||||
)
|
||||
@RendDistinctValues("CO2S Min", Model.Select(m =>
|
||||
m.SiteName + " (" + m.Id + "): " +
|
||||
m.Data?.Min(d => d.CO2S).ToString()), "<br />")
|
||||
@RendDistinctValues("CO2S Average", Model.Select(m =>
|
||||
m.SiteName + " (" + m.Id + "): " +
|
||||
m.Data?.Average(d => d.CO2S).ToString()), "<br />")
|
||||
@RendDistinctValues("CO2S Max", Model.Select(m =>
|
||||
m.SiteName + " (" + m.Id + "): " +
|
||||
m.Data?.Max(d => d.CO2S).ToString()), "<br />")
|
||||
@RendDistinctValues("CO2S Range", Model.Select(m =>
|
||||
m.SiteName + " (" + m.Id + "): " +
|
||||
(m.Data?.Max(d => d.CO2S)
|
||||
- m.Data?.Min(d => d.CO2S))), "<br />")
|
||||
@RendValue("CO2S Min Range", Model.Min(m =>
|
||||
m.Data?.Max(d => d.CO2S)
|
||||
- m.Data?.Min(d => d.CO2S))?.ToString())*@
|
||||
|
||||
@RendValue("CO2 response curves (CO2S) Max range", Model.Max(m =>
|
||||
m.Data?.Max(d => d.CO2S)
|
||||
- m.Data?.Min(d => d.CO2S))?.ToString())
|
||||
@RendValueRange("CO2 response curves (CO2S) range [umol/mol]", curveData => curveData.CO2S)
|
||||
@RendValueRange("Light response curves (PARi) range [umol/m2/s]", curveData => curveData.PARi)
|
||||
@RendValueRange("Temperature response curves (Tleaf) range [oC]", curveData => curveData.Tleaf)
|
||||
@RendValueRange("Fluorometry measurements (PhiPS2) range", curveData => curveData.PhiPS2)
|
||||
|
||||
@RendValue("Light response curves (PARi) Max range", Model.Max(m =>
|
||||
m.Data?.Max(d => d.PARi)
|
||||
- m.Data?.Min(d => d.PARi))?.ToString())
|
||||
|
||||
@RendValue("Temperature response curves (Tleaf) Max Range", Model.Max(m =>
|
||||
m.Data?.Max(d => d.Tleaf)
|
||||
- m.Data?.Min(d => d.Tleaf))?.ToString())
|
||||
|
||||
@RendValue("Fluorometry measurements (PhiPS2) Max Range", Model.Max(m =>
|
||||
m.Data?.Max(d => d.PhiPS2)
|
||||
- m.Data?.Min(d => d.PhiPS2))?.ToString())
|
||||
@helper RendValueRange(string label, Func<LeafInputDataCurveViewModel, double?> getVar)
|
||||
{
|
||||
@RendDistinctValues(label, Model.Select(m =>
|
||||
m.FilenameOriginal + ": " +
|
||||
(m.Data?.Max(getVar) - m.Data?.Min(getVar))), "<br />")
|
||||
}
|
||||
|
||||
@helper RendValue(string label, string value)
|
||||
{
|
||||
<div class="row pb-lg-2 pb-sm-1 @if (ViewData.Model == null || string.IsNullOrEmpty(value)){<text>d-none</text> }">
|
||||
<div class="col-sm-5 text-truncate border-right border-bottom pl-4 pl-sm-5">
|
||||
<div class="col-sm-5 border-right border-bottom pl-4 pl-sm-5">
|
||||
@Html.Raw(label)
|
||||
</div>
|
||||
<div class="col-sm-7 border-bottom pl-5 pl-sm-2">
|
||||
@Html.Raw(@value)
|
||||
@Html.Raw(value)
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user