Spaces:
Running
Running
swnesbitt commited on
Commit ·
a4cbd62
1
Parent(s): 8ed9e1a
Cosmetic update on stable base: title -> 'NEXRAD Level 2 low level sweep browser', remove Py-ART processing credit (+ add (S. Nesbitt) to region-dealias), one consistent dvh map height + tighter mobile layout. Text/CSS only — no ingest/functional changes.
Browse files
app.py
CHANGED
|
@@ -1508,7 +1508,7 @@ const SITE_ID = "__SITE__";
|
|
| 1508 |
// reflect the loaded radar site in the browser tab title (the tab shows the
|
| 1509 |
// top document's title; the bundle is same-origin with the app page)
|
| 1510 |
try { parent.document.title =
|
| 1511 |
-
SITE_ID + " \\u00b7 NEXRAD Level 2
|
| 1512 |
catch (e) { try { document.title = SITE_ID; } catch (e2) {} }
|
| 1513 |
const SHARE_BASE = "__SHAREBASE__";
|
| 1514 |
const QUADF = "All fields (4-panel)";
|
|
@@ -3684,11 +3684,23 @@ ILLINI_CSS = """
|
|
| 3684 |
@media (max-width: 900px) { #ctrl-row { flex-wrap: wrap !important; } }
|
| 3685 |
footer { display: none !important; }
|
| 3686 |
#dax-trigger, #rt-refresh, #rt-force, #site-go, #site-jump { display: none !important; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3687 |
@media (max-width: 700px) {
|
| 3688 |
.gradio-container { padding: 8px 10px 4px !important; }
|
| 3689 |
-
.gradio-container h1 { font-size:
|
| 3690 |
.gradio-container .prose, .gradio-container .prose p {
|
| 3691 |
-
font-size:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3692 |
}
|
| 3693 |
"""
|
| 3694 |
|
|
@@ -3720,7 +3732,7 @@ HEADER_HTML = f"""
|
|
| 3720 |
<div style="display:flex;align-items:center;gap:10px">
|
| 3721 |
{LOGO_HTML}
|
| 3722 |
<div>
|
| 3723 |
-
<h1>NEXRAD Level 2
|
| 3724 |
<p style="color:#C8C6C7;font-size:12px;margin:1px 0">
|
| 3725 |
Brought to you by the
|
| 3726 |
<a href="https://climas.illinois.edu" target="_blank"
|
|
@@ -3820,7 +3832,7 @@ addEventListener('DOMContentLoaded', function () {{
|
|
| 3820 |
|
| 3821 |
gr.set_static_paths(paths=[VOL_CACHE_DIR]) # serves warnings.json
|
| 3822 |
|
| 3823 |
-
with gr.Blocks(title="NEXRAD Level 2
|
| 3824 |
theme=ILLINI_THEME, css=ILLINI_CSS) as demo:
|
| 3825 |
gr.HTML(HEADER_HTML)
|
| 3826 |
with gr.Row(elem_id="ctrl-row"):
|
|
@@ -3977,10 +3989,8 @@ with gr.Blocks(title="NEXRAD Level 2 — 0.5° browser", head=OG_HEAD,
|
|
| 3977 |
gr.Markdown(
|
| 3978 |
"Level 2 decoding by [xradar](https://github.com/swnesbitt/xradar) "
|
| 3979 |
"(openradar; S. Nesbitt fork) "
|
| 3980 |
-
"· radar processing by [Py-ART](https://arm-doe.github.io/pyart/) "
|
| 3981 |
-
"(Helmus & Collis 2016, [doi:10.5334/jors.119](https://doi.org/10.5334/jors.119)) "
|
| 3982 |
"· velocity dealiasing by the Rust region-based dealiaser "
|
| 3983 |
-
"[region-dealias](https://github.com/swnesbitt/region-dealias) "
|
| 3984 |
"· colormaps from [cmweather](https://github.com/openradar/cmweather) "
|
| 3985 |
"and [CMasher](https://cmasher.readthedocs.io) "
|
| 3986 |
"· data from the [NOAA NEXRAD Level II archive on AWS](https://registry.opendata.aws/noaa-nexrad/) "
|
|
|
|
| 1508 |
// reflect the loaded radar site in the browser tab title (the tab shows the
|
| 1509 |
// top document's title; the bundle is same-origin with the app page)
|
| 1510 |
try { parent.document.title =
|
| 1511 |
+
SITE_ID + " \\u00b7 NEXRAD Level 2 low level sweep browser"; }
|
| 1512 |
catch (e) { try { document.title = SITE_ID; } catch (e2) {} }
|
| 1513 |
const SHARE_BASE = "__SHAREBASE__";
|
| 1514 |
const QUADF = "All fields (4-panel)";
|
|
|
|
| 3684 |
@media (max-width: 900px) { #ctrl-row { flex-wrap: wrap !important; } }
|
| 3685 |
footer { display: none !important; }
|
| 3686 |
#dax-trigger, #rt-refresh, #rt-force, #site-go, #site-jump { display: none !important; }
|
| 3687 |
+
/* Map panel: one consistent height across states; 100dvh so iOS Safari's
|
| 3688 |
+
address-bar show/hide doesn't resize the radar mid-scroll. */
|
| 3689 |
+
#map-html iframe {
|
| 3690 |
+
height: calc(100vh - 170px) !important;
|
| 3691 |
+
height: calc(100dvh - 170px) !important;
|
| 3692 |
+
min-height: 460px !important; box-sizing: border-box !important; }
|
| 3693 |
@media (max-width: 700px) {
|
| 3694 |
.gradio-container { padding: 8px 10px 4px !important; }
|
| 3695 |
+
.gradio-container h1 { font-size: 14px !important; letter-spacing: .03em !important; }
|
| 3696 |
.gradio-container .prose, .gradio-container .prose p {
|
| 3697 |
+
font-size: 10px !important; line-height: 1.3 !important; }
|
| 3698 |
+
#ctrl-row .block > label,
|
| 3699 |
+
#ctrl-row span[data-testid="block-info"] { font-size: 10px !important; }
|
| 3700 |
+
#map-html iframe {
|
| 3701 |
+
height: calc(100vh - 300px) !important;
|
| 3702 |
+
height: calc(100dvh - 300px) !important;
|
| 3703 |
+
min-height: 380px !important; }
|
| 3704 |
}
|
| 3705 |
"""
|
| 3706 |
|
|
|
|
| 3732 |
<div style="display:flex;align-items:center;gap:10px">
|
| 3733 |
{LOGO_HTML}
|
| 3734 |
<div>
|
| 3735 |
+
<h1>NEXRAD Level 2 low level sweep browser</h1>
|
| 3736 |
<p style="color:#C8C6C7;font-size:12px;margin:1px 0">
|
| 3737 |
Brought to you by the
|
| 3738 |
<a href="https://climas.illinois.edu" target="_blank"
|
|
|
|
| 3832 |
|
| 3833 |
gr.set_static_paths(paths=[VOL_CACHE_DIR]) # serves warnings.json
|
| 3834 |
|
| 3835 |
+
with gr.Blocks(title="NEXRAD Level 2 low level sweep browser", head=OG_HEAD,
|
| 3836 |
theme=ILLINI_THEME, css=ILLINI_CSS) as demo:
|
| 3837 |
gr.HTML(HEADER_HTML)
|
| 3838 |
with gr.Row(elem_id="ctrl-row"):
|
|
|
|
| 3989 |
gr.Markdown(
|
| 3990 |
"Level 2 decoding by [xradar](https://github.com/swnesbitt/xradar) "
|
| 3991 |
"(openradar; S. Nesbitt fork) "
|
|
|
|
|
|
|
| 3992 |
"· velocity dealiasing by the Rust region-based dealiaser "
|
| 3993 |
+
"[region-dealias](https://github.com/swnesbitt/region-dealias) (S. Nesbitt) "
|
| 3994 |
"· colormaps from [cmweather](https://github.com/openradar/cmweather) "
|
| 3995 |
"and [CMasher](https://cmasher.readthedocs.io) "
|
| 3996 |
"· data from the [NOAA NEXRAD Level II archive on AWS](https://registry.opendata.aws/noaa-nexrad/) "
|