Skip to content

Commit

Permalink
Updated user input text
Browse files Browse the repository at this point in the history
  • Loading branch information
KatherineLukens-NOAA committed Nov 22, 2024
1 parent 4f2f5a7 commit 1898310
Showing 1 changed file with 19 additions and 10 deletions.
29 changes: 19 additions & 10 deletions utils/soca/fig_gallery/marine_vrfy_display/index_vrfy_marine.html
Original file line number Diff line number Diff line change
Expand Up @@ -399,11 +399,20 @@ <h1><font color="white">GFS<br>Experiment<br>Verification</font></h1>
</div>
<div id="main">
<h1><font color="blue">Marine Figures</font></h1>
<h2>Add path to the main verification directory:</h2>
<h2>Add path to main verification directory:</h2>
<div>
<!-- Path -->
<label for="inputVrfyPath">Path to /vrfy: </label>
<input type="text" id="inputVrfyPath" placeholder="" value="">
<label for="inputMainPath">Main Verification Path: </label>
<input type="text" id="inputMainPath" placeholder="" value="">
</div>
<h3>Are the figures in your COMROOT or from HPSS? For example:</h3>
If COMROOT, the main path should include everything before /gdas.YearMonthDay directories.
<br>
If HPSS, the main path should include everything before /YearMonthDayHour directories.
<div>
<!-- Path Choice -->
<label for="inputPathChoice">Enter COMROOT or HPSS: </label>
<input type="text" id="inputPathChoice" placeholder="" value="">
</div>

<h2>Choose a date and cycle time:</h2>
Expand Down Expand Up @@ -464,13 +473,13 @@ <h2>Choose a date and cycle time:</h2>
var month = document.getElementById('inputMonth').value;
var day = document.getElementById('inputDay').value;
var hour = document.getElementById('inputHour').value;
var vrfyMain = document.getElementById('inputVrfyPath').value;
//console.log("year = ",year);
//console.log("month = ",month);
//console.log("day = ",day);
//console.log("hour = ",hour);
var inputPath = vrfyMain+"/"+year+month+day+hour+"/gdas."+year+month+day+"/"+hour+"/analysis/ocean/vrfy/";
//console.log("inputPath = ",inputPath);
var pathMain = document.getElementById('inputMainPath').value;
var pathChoice = document.getElementById('inputPathChoice').value;
if (pathChoice == 'HPSS') {
var inputPath = pathMain+"/"+year+month+day+hour+"/gdas."+year+month+day+"/"+hour+"/analysis/ocean/vrfy/";
} else if (pathChoice == 'COMROOT') {
var inputPath = pathMain+"/gdas."+year+month+day+"/"+hour+"/analysis/ocean/vrfy/";
}

function showImagesBkgErrInc(figtype, variable, domain) {
thisFigType = figtype;
Expand Down

0 comments on commit 1898310

Please sign in to comment.