nakas/NWPS_SWAN
0
1---2title: NWPS SWAN Wave Data Puller3emoji: ๐4colorFrom: blue5colorTo: green6sdk: docker7pinned: false8license: gpl-3.09app_port: 786010tags:11 - oceanography12 - wave-data13 - grib14 - arctic15 - meteorology16---17 18# ๐ NWPS SWAN Wave Data Puller19 20A comprehensive wave data extraction and visualization tool that fetches real-time wave data from global meteorological sources including ECMWF and NOAA.21 22## Features23 24- **Global GRIB Data**: Worldwide wave heights from ECMWF/NOAA GRIB files25- **Arctic Support**: Advanced Arctic wave data extraction with multiple fallback methods26- **Interactive Maps**: Real-time wave height visualization with Folium maps27- **Single Location Data**: NWPS SWAN model data for specific locations28- **Data Export**: JSON export functionality for analysis29 30## Arctic Data Extraction31 32This application includes advanced Arctic wave data extraction capabilities that handle the common ECCODES polar stereographic projection errors. The system automatically:33 34- Attempts multiple extraction methods (pygrib, wgrib2, CDO)35- Provides fallback methods for problematic Arctic GRIB files36- Returns data in standardized format regardless of extraction method37 38## Usage39 401. **Global GRIB Data**: Click "Fetch Global Wave Data" to download worldwide wave information412. **Single Location**: Use "Fetch Location Wave Data" for specific coordinates423. **Data Files**: View and analyze previously downloaded data files43 44## Technical Details45 46- Built with Gradio for interactive web interface47- Uses pygrib, cfgrib, and xarray for GRIB file processing48- Folium maps for visualization49- Docker containerized for consistent deployment50 51## Error Handling52 53The application gracefully handles:54- ECCODES polar stereographic errors in Arctic regions55- Temporary server unavailability 56- Invalid GRIB files57- Network connectivity issues58 59---60 61*Only real government/institutional wave data is supported - no synthetic data.*62 