OpenCPN Partial API docs
Loading...
Searching...
No Matches
GribRequestDialog.h File Reference

GRIB Weather Data Request and Download Management. More...

#include "wx/wx.h"
#include "GribUIDialogBase.h"
#include "GribUIDialog.h"
#include "pi_ocpndc.h"
#include "wx/jsonreader.h"

Go to the source code of this file.

Classes

class  GribRequestSetting
 Manages GRIB file request configuration and downloads. More...
 

Macros

#define XYGRIB_MAX_DOWNLOADABLE_GRIB_SIZE_MB   10
 

Enumerations

enum  GribDownloadType {
  WORLD , LOCAL , LOCAL_CATALOG , XYGRIB ,
  NONE
}
 

Variables

const std::string CATALOG_URL
 

Detailed Description

GRIB Weather Data Request and Download Management.

Provides comprehensive functionality for requesting and downloading GRIB weather forecast data from multiple sources:

Download Sources:

  • Global models (GFS, ECMWF, etc.)
  • XyGrib specialized marine weather service
  • Local GRIB catalogs and repositories
  • Email-based request services

Key Features:

  • Interactive geographic zone selection
  • Multiple forecast model support
  • Resolution and time range configuration
  • File size estimation and validation
  • Download progress tracking
  • Catalog management and updates
  • Email request template generation

The interface provides visual feedback during zone selection and supports both manual coordinate entry and graphical region selection. It handles different download methods including direct HTTP(S) downloads and email-based requests with size and coverage validation.

Definition in file GribRequestDialog.h.

Macro Definition Documentation

◆ XYGRIB_MAX_DOWNLOADABLE_GRIB_SIZE_MB

#define XYGRIB_MAX_DOWNLOADABLE_GRIB_SIZE_MB   10

Definition at line 71 of file GribRequestDialog.h.

Enumeration Type Documentation

◆ GribDownloadType

Enumerator
WORLD 

Global forecast downloads (e.g., GFS)

LOCAL 

Downloads from local sources.

LOCAL_CATALOG 

Downloads from configured catalogs.

XYGRIB 

Downloads from XyGrib service.

NONE 

No download source selected.

Definition at line 59 of file GribRequestDialog.h.

Variable Documentation

◆ CATALOG_URL

const std::string CATALOG_URL
Initial value:
=
"https://raw.githubusercontent.com/chartcatalogs/gribcatalog/main/"
"sources.json"

Definition at line 67 of file GribRequestDialog.h.