/** * Type definitions for the NOAA NCEI Climate Data Online (CDO) API v2. * * Documentation: https://www.ncei.noaa.gov/support/access-data-service-api-user-documentation */ /** * Pagination/result metadata returned by CDO list endpoints. */ export interface NCEIResultMetadata { resultset?: { offset: number; count: number; limit: number; }; } /** * A weather station as returned by the CDO /stations endpoint. */ export interface NCEIStation { id: string; name: string; latitude: number; longitude: number; elevation?: number; datacoverage?: number; mindate?: string; maxdate?: string; } /** * Response from the CDO /stations endpoint. */ export interface NCEIStationsResponse { metadata?: NCEIResultMetadata; results?: NCEIStation[]; } /** * A single climate-normals data value from the CDO /data endpoint. */ export interface NCEIDataPoint { date: string; datatype: string; station: string; attributes?: string; value: number; } /** * Response from the CDO /data endpoint. */ export interface NCEIDataResponse { metadata?: NCEIResultMetadata; results?: NCEIDataPoint[]; } /** * A station annotated with its distance (km) from a query point. */ export interface NCEIStationWithDistance extends NCEIStation { distanceKm: number; } //# sourceMappingURL=ncei.d.ts.map