Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ center_tol = 30
|
|
| 17 |
morph_dia = 5
|
| 18 |
min_rad = 70
|
| 19 |
|
| 20 |
-
def fetch_sdo_images(start_date, end_date, ident="0745", size="
|
| 21 |
"""Fetch SDO images from NASA URL for a given date range."""
|
| 22 |
try:
|
| 23 |
start = datetime.strptime(start_date, "%Y-%m-%d %H:%M:%S")
|
|
@@ -256,9 +256,9 @@ with gr.Blocks(title="Solar CME Detection") as demo:
|
|
| 256 |
gif_input = gr.File(label="Upload Solar GIF (optional)", file_types=[".gif"])
|
| 257 |
start_date = gr.Textbox(label="Start Date (YYYY-MM-DD HH:MM:SS)", value="2025-05-24 00:00:00")
|
| 258 |
end_date = gr.Textbox(label="End Date (YYYY-MM-DD HH:MM:SS)", value="2025-05-24 23:59:59")
|
| 259 |
-
ident = gr.Textbox(label="Image Identifier", value="
|
| 260 |
-
size = gr.Textbox(label="Image Size", value="
|
| 261 |
-
tool = gr.Textbox(label="Instrument", value="
|
| 262 |
fetch_button = gr.Button("Fetch Images from URL")
|
| 263 |
|
| 264 |
gr.Markdown("### Analysis Parameters")
|
|
|
|
| 17 |
morph_dia = 5
|
| 18 |
min_rad = 70
|
| 19 |
|
| 20 |
+
def fetch_sdo_images(start_date, end_date, ident="0745", size="1024by960", tool="ccor1"):
|
| 21 |
"""Fetch SDO images from NASA URL for a given date range."""
|
| 22 |
try:
|
| 23 |
start = datetime.strptime(start_date, "%Y-%m-%d %H:%M:%S")
|
|
|
|
| 256 |
gif_input = gr.File(label="Upload Solar GIF (optional)", file_types=[".gif"])
|
| 257 |
start_date = gr.Textbox(label="Start Date (YYYY-MM-DD HH:MM:SS)", value="2025-05-24 00:00:00")
|
| 258 |
end_date = gr.Textbox(label="End Date (YYYY-MM-DD HH:MM:SS)", value="2025-05-24 23:59:59")
|
| 259 |
+
ident = gr.Textbox(label="Image Identifier", value="0745")
|
| 260 |
+
size = gr.Textbox(label="Image Size", value="1024by960")
|
| 261 |
+
tool = gr.Textbox(label="Instrument", value="ccor1")
|
| 262 |
fetch_button = gr.Button("Fetch Images from URL")
|
| 263 |
|
| 264 |
gr.Markdown("### Analysis Parameters")
|