CoolFace
Apppublic

nakas/NWPS_SWAN

sourceHugging Facegpl-3.0updated 1y agoView on Hugging Face
0likes
App README

๐ŸŒŠ NWPS SWAN Wave Data Puller

A comprehensive wave data extraction and visualization tool that fetches real-time wave data from global meteorological sources including ECMWF and NOAA.

Features

  • โ€”Global GRIB Data: Worldwide wave heights from ECMWF/NOAA GRIB files
  • โ€”Arctic Support: Advanced Arctic wave data extraction with multiple fallback methods
  • โ€”Interactive Maps: Real-time wave height visualization with Folium maps
  • โ€”Single Location Data: NWPS SWAN model data for specific locations
  • โ€”Data Export: JSON export functionality for analysis

Arctic Data Extraction

This application includes advanced Arctic wave data extraction capabilities that handle the common ECCODES polar stereographic projection errors. The system automatically:

  • โ€”Attempts multiple extraction methods (pygrib, wgrib2, CDO)
  • โ€”Provides fallback methods for problematic Arctic GRIB files
  • โ€”Returns data in standardized format regardless of extraction method

Usage

  1. 1.Global GRIB Data: Click "Fetch Global Wave Data" to download worldwide wave information
  2. 2.Single Location: Use "Fetch Location Wave Data" for specific coordinates
  3. 3.Data Files: View and analyze previously downloaded data files

Technical Details

  • โ€”Built with Gradio for interactive web interface
  • โ€”Uses pygrib, cfgrib, and xarray for GRIB file processing
  • โ€”Folium maps for visualization
  • โ€”Docker containerized for consistent deployment

Error Handling

The application gracefully handles:

  • โ€”ECCODES polar stereographic errors in Arctic regions
  • โ€”Temporary server unavailability
  • โ€”Invalid GRIB files
  • โ€”Network connectivity issues

Only real government/institutional wave data is supported - no synthetic data.