Ignore:
Timestamp:
Jun 2, 2014, 10:30:18 AM (11 years ago)
Author:
aslmd
Message:

MCD web interface converted to version 5.1 (no retrocompatibility to 5.0, simply come back to previous version for 5.0 support). Added dev mode to mcdcgi.py (simply have to set dev on on HTML form to get it) -- an unique page index_dev.html for tests. Added the possibilty to use space as a separator. Also make the web pages self aware for reload.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UTIL/PYTHON/mcd/proto/index5.html

    r1077 r1276  
    99</head>
    1010
    11 <body onload="DefaultDateValues();DefaultTimeValues();Convert2Ls();PlaceValues(0.,0.);DefaultSpaceTime()">
    12 
    13 <form name="calendar" action="./cgi-bin/mcdcgi.py" method="post" target="_blank">
     11<body onload="DefaultDateValues();DefaultTimeValues();Convert2Ls();PlaceValues('all','all');DefaultSpaceTime()">
     12
     13<!--<form name="calendar" action="./cgi-bin/mcdcgi.py" method="post" target="_blank"> -->
     14<form name="calendar" action="./cgi-bin/mcdcgi.py" method="get" target="_blank">
    1415<!-- aussi possible: get a la place de post. pour avoir un beau lien -->
    1516
    1617<center>
    1718<b style="font-size: 125%;">Mars Climate Database: The Web Interface</b><br>
    18 <a href="index5.html"><img src="PIA03610_red.jpg" height=80 width=1200></a><br>
     19<a href="#" onclick="window.location.reload(true);"><img src="PIA03610_red.jpg" height=80 width=1200></a><br>
    1920</center>
    2021
     
    5051Solar longitude <input type="text" size="3" name="ls"> degrees<br />
    5152Local Time <input type="text" size="3" name="localtime" value="0."> Martian hour<br />
    52 <span style="font-size: 80%;">write a value (or) a range val1;val2 (or) 'all'</span><br />
     53<span style="font-size: 80%;">write a value (or) a range 'val1 val2' (or) 'all'</span><br />
    5354<br />
    5455<input type="radio" name="datekeyhtml" value="0">
     
    9091<td align="center">
    9192<b>CUSTOMIZE COORDINATES ON MARS</b><br />
    92 <span style="font-size: 80%;">write a value (or) a range val1;val2 (or) 'all'</span><br />
     93<span style="font-size: 80%;">write a value (or) a range 'val1 val2' (or) 'all'</span><br />
    9394<ul>
    9495<li>Latitude <input type="text" size="7" name="latitude" value="0."> degree North
     
    122123<li>Interpolate using MOLA topography <input type="radio" name="hrkey" value="1" checked /> on <input type="radio" name="hrkey" value="0" /> off </li>
    123124<li> MCD version
    124 <input type="radio" name="betatest" value="on"  checked /> 5.0
     125<input type="radio" name="betatest" value="on"  checked /> 5.1
    125126</span>
    126127</li>
     
    163164<option value="h2oice"        >Water ice mixing ratio (mol/mol)</option>
    164165<option value="co2ice"        >surface CO2 ice layer (kg/m2)</option>
     166<option value="groundice"     >surface H2O ice layer (kg/m2, 0.5: perennial)</option>
    165167<option value="pbl"           >Convective PBL height (m)</option>
    166168<option value="stress"        >Surf. wind stress (Kg/m/s2)</option>
     
    182184<option value="co2col"        >CO2 column (kg/m2)</option>
    183185<option value="arcol"         >Ar column (kg/m2)</option>
     186<option value="n2col"         >N2 column (kg/m2)</option>
    184187<option value="cocol"         >CO column (kg/m2)</option>
    185188<option value="o3col"         >O3 column (kg/m2)</option>
    186189<option value="co2"           >[CO2] vol. mixing ratio (mol/mol)</option>
    187190<option value="ar"            >[Ar] vol. mixing ratio (mol/mol)</option>
     191<option value="n2"            >[N2] vol. mixing ratio (mol/mol)</option>
    188192<option value="co"            >[CO] vol. mixing ratio (mol/mol)</option>
    189193<option value="o3"            >[O3] ozone vol. mixing ratio (mol/mol)</option>
     
    192196<option value="hydro"         >[H] vol. mixing ratio (mol/mol)</option>
    193197<option value="hydro2"        >[H2] vol. mixing ratio (mol/mol)</option>
    194 <option value="e"             >[e-] vol. mixing ratio (mol/mol)</option>
    195 <option value="ecol"          >e- column (kg/m2)</option>
     198<option value="e"             >electron number density (cm-3)</option>
     199<option value="ecol"          >Total Electronic Content (TEC) (m-2)</option>
    196200<option value="cp"            >Air heat capacity Cp (J kg-1 K-1)</option>
    197201<option value="visc"          >Air viscosity estimation (N s m-2)</option>
     
    218222<option value="h2oice"        >Water ice mixing ratio (mol/mol)</option>
    219223<option value="co2ice"        >surface CO2 ice layer (kg/m2)</option>
     224<option value="groundice"     >surface H2O ice layer (kg/m2, 0.5: perennial)</option>
    220225<option value="pbl"           >Convective PBL height (m)</option>
    221226<option value="stress"        >Surf. wind stress (Kg/m/s2)</option>
     
    237242<option value="co2col"        >CO2 column (kg/m2)</option>
    238243<option value="arcol"         >Ar column (kg/m2)</option>
     244<option value="n2col"         >N2 column (kg/m2)</option>
    239245<option value="cocol"         >CO column (kg/m2)</option>
    240246<option value="o3col"         >O3 column (kg/m2)</option>
    241247<option value="co2"           >[CO2] vol. mixing ratio (mol/mol)</option>
    242248<option value="ar"            >[Ar] vol. mixing ratio (mol/mol)</option>
     249<option value="n2"            >[N2] vol. mixing ratio (mol/mol)</option>
    243250<option value="co"            >[CO] vol. mixing ratio (mol/mol)</option>
    244251<option value="o3"            >[O3] ozone vol. mixing ratio (mol/mol)</option>
     
    247254<option value="hydro"         >[H] vol. mixing ratio (mol/mol)</option>
    248255<option value="hydro2"        >[H2] vol. mixing ratio (mol/mol)</option>
    249 <option value="e"             >[e-] vol. mixing ratio (mol/mol)</option>
    250 <option value="ecol"          >e- column (kg/m2)</option>
     256<option value="e"             >electron number density (cm-3)</option>
     257<option value="ecol"          >Total Electronic Content (TEC) (m-2)</option>
    251258<option value="cp"            >Air heat capacity Cp (J kg-1 K-1)</option>
    252259<option value="visc"          >Air viscosity estimation (N s m-2)</option>
     
    273280<option value="h2oice"        >Water ice mixing ratio (mol/mol)</option>
    274281<option value="co2ice"        >surface CO2 ice layer (kg/m2)</option>
     282<option value="groundice"     >surface H2O ice layer (kg/m2, 0.5: perennial)</option>
    275283<option value="pbl"           >Convective PBL height (m)</option>
    276284<option value="stress"        >Surf. wind stress (Kg/m/s2)</option>
     
    292300<option value="co2col"        >CO2 column (kg/m2)</option>
    293301<option value="arcol"         >Ar column (kg/m2)</option>
     302<option value="n2col"         >N2 column (kg/m2)</option>
    294303<option value="cocol"         >CO column (kg/m2)</option>
    295304<option value="o3col"         >O3 column (kg/m2)</option>
    296305<option value="co2"           >[CO2] vol. mixing ratio (mol/mol)</option>
    297306<option value="ar"            >[Ar] vol. mixing ratio (mol/mol)</option>
     307<option value="n2"            >[N2] vol. mixing ratio (mol/mol)</option>
    298308<option value="co"            >[CO] vol. mixing ratio (mol/mol)</option>
    299309<option value="o3"            >[O3] ozone vol. mixing ratio (mol/mol)</option>
     
    302312<option value="hydro"         >[H] vol. mixing ratio (mol/mol)</option>
    303313<option value="hydro2"        >[H2] vol. mixing ratio (mol/mol)</option>
    304 <option value="e"             >[e-] vol. mixing ratio (mol/mol)</option>
    305 <option value="ecol"          >e- column (kg/m2)</option>
     314<option value="e"             >electron number density (cm-3)</option>
     315<option value="ecol"          >Total Electronic Content (TEC) (m-2)</option>
    306316<option value="cp"            >Air heat capacity Cp (J kg-1 K-1)</option>
    307317<option value="visc"          >Air viscosity estimation (N s m-2)</option>
     
    328338<option value="h2oice"        >Water ice mixing ratio (mol/mol)</option>
    329339<option value="co2ice"        >surface CO2 ice layer (kg/m2)</option>
     340<option value="groundice"     >surface H2O ice layer (kg/m2, 0.5: perennial)</option>
    330341<option value="pbl"           >Convective PBL height (m)</option>
    331342<option value="stress"        >Surf. wind stress (Kg/m/s2)</option>
     
    347358<option value="co2col"        >CO2 column (kg/m2)</option>
    348359<option value="arcol"         >Ar column (kg/m2)</option>
     360<option value="n2col"         >N2 column (kg/m2)</option>
    349361<option value="cocol"         >CO column (kg/m2)</option>
    350362<option value="o3col"         >O3 column (kg/m2)</option>
    351363<option value="co2"           >[CO2] vol. mixing ratio (mol/mol)</option>
    352364<option value="ar"            >[Ar] vol. mixing ratio (mol/mol)</option>
     365<option value="n2"            >[N2] vol. mixing ratio (mol/mol)</option>
    353366<option value="co"            >[CO] vol. mixing ratio (mol/mol)</option>
    354367<option value="o3"            >[O3] ozone vol. mixing ratio (mol/mol)</option>
     
    357370<option value="hydro"         >[H] vol. mixing ratio (mol/mol)</option>
    358371<option value="hydro2"        >[H2] vol. mixing ratio (mol/mol)</option>
    359 <option value="e"             >[e-] vol. mixing ratio (mol/mol)</option>
    360 <option value="ecol"          >e- column (kg/m2)</option>
     372<option value="e"             >electron number density (cm-3)</option>
     373<option value="ecol"          >Total Electronic Content (TEC) (m-2)</option>
    361374<option value="cp"            >Air heat capacity Cp (J kg-1 K-1)</option>
    362375<option value="visc"          >Air viscosity estimation (N s m-2)</option>
     
    402415<tr>
    403416<td align="center">
    404 <input type="button" value="Values" style="font-weight:bold" onClick="submit_form_beginner()"/>
    405 <input type="button" value="Daily cycle" style="font-weight:bold" onClick="PlaceValues2('all');submit_form_beginner()"/><br />
    406 <input type="button" value="Vertical profile" style="font-weight:bold" onClick="PlaceValues3('all');submit_form_beginner()"/>
     417<input type="button" value="Values" style="font-weight:bold" onClick="CorrectValue();submit_form_beginner()"/>
     418<input type="button" value="Daily cycle" style="font-weight:bold" onClick="CorrectValue();PlaceValues2('all');submit_form_beginner()"/><br />
     419<input type="button" value="Vertical profile" style="font-weight:bold" onClick="CorrectValue();PlaceValues3('all');submit_form_beginner()"/>
    407420<input type="button" value="Global map" style="font-weight:bold" onClick="PlaceValues('all','all');submit_form_beginner()"/><br />
    408421</td>
    409422<td align="center">
    410423<input type="button" value="SUBMIT" style="font-weight:bold" onClick="submit_form()"/>
    411 <input type="button" value="RESET" style="font-weight:bold" onClick="window.open('index5.html','_self')"/><br />
     424<input type="button" value="RESET" style="font-weight:bold" onClick="window.location.reload(true);"/><br />
    412425</td>
    413426<td align="center">
Note: See TracChangeset for help on using the changeset viewer.