Spaces:
Sleeping
Sleeping
File size: 2,120 Bytes
56e2f55 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | # HDF5/NetCDF MCP Server - UI Quick Start Guide
## Getting Started
### 1. Launch the Interface
```bash
python app.py
```
Open your browser to: `http://localhost:7860`
---
## 2. Load a File (Required First Step)
The interface has three ways to load a file. **All return a `file_path` that you'll need for every other tool.**
### Option A: Example Datasets (Easiest)
- Navigate to **π₯ File Loading β Example Datasets**
- Select a dataset (e.g., `small_netcdf`)
- Click **Submit**
- **Copy the `file_path`** from the JSON result (e.g., `"/tmp/tmpxyz/tiny.nc"`)
### Option B: Download from URL
- Navigate to **π₯ File Loading β Download from URL**
- Paste a URL to an HDF5 or NetCDF file
- Click **Submit**
- **Copy the `file_path`** from the result
### Option C: Upload Local File
- Navigate to **π₯ File Loading β Local File**
- Select your .nc or .h5 file
- Click **Submit**
- **Copy the `file_path`** from the result
---
## 3. Use Any Tool
Once you have the `file_path`, the workflow for all tools is the same:
1. Navigate to the desired tool tab (Data Analysis or Visualizations)
2. **Paste the `file_path`** into the "File Path" field
3. Enter the dataset/variable name (e.g., "temperature")
4. *Optional*: Add a slice string for subsetting (e.g., "0:10, :, :" for first 10 time steps)
5. Click **Submit**
**Example workflow:**
```
1. Load file β Get file_path: "/tmp/tmpxyz/ocean.nc"
2. Structure & Info β Paste file_path β See available variables: ["temperature", "salinity"]
3. Compute Statistics β Paste file_path β Dataset: "temperature" β Slice: "0, :, :"
4. Heatmap β Paste file_path β Dataset: "temperature" β Slice: "0, :, :" β Download HTML
```
---
## Tips
- **Keep the file_path handy**: Copy it to a text editor - you'll use it repeatedly
- **Start with Structure & Info**: See what variables are available before analyzing
- **Use Preview first**: Check a few values before loading full datasets
- **Download visualizations**: All charts export as interactive HTML files
- **Slice large data**: Use slice strings (e.g., ":, 0:50, :") to work with subsets |