Movatterモバイル変換


[0]ホーム

URL:


RClimacell0.1.4

Introduction

Source:vignettes/cc1_intro.Rmd
cc1_intro.Rmd

The {RClimacell} R package provides a high level wrapper around the Climacell version 4 API using theTimeline Interface. Currently, the {RClimacell} package only provides access to theCore data fields using theTimeline Interface. Each function call results in one API call and the free API (registration required) has both hourly rate limits and daily limits.

Functions

The {RClimacell} package consists of five functions:

  • climacell_temperature: obtains temperature related variables
  • climacell_wind: obtains wind related variables
  • climacell_precip: obtains precipitation related variables
  • climacell_celestial: obtains the sunrise time, sunset time, and the moon phase
  • climacell_core: obtains all of the data fields from theCore data layer using the Timeline interface

Each of these functions returns a formatted tibble in which each column is correctly encoded.

Climacell API Core Data Layer Fields

The following table summarizes which Core layers are available in the current package version (all of these fields can be obtained using theclimacell_core() function):

API Field{RClimacell} Equivalent NameImplemented in package?Part of Function
temperaturetemp_cyesclimacell_temperature()
temperatureApparenttemp_feel_cyesclimacell_temperature()
dewPointdewpointyesclimacell_temperature()
humidityhumidityyesclimacell_temperature()
windSpeedwind_speedyesclimacell_wind()
windDirectionwind_directionyesclimacell_wind()
windGustwind_gustyesclimacell_wind()
pressureSurfaceLevelpressure_surface_levelyesclimacell_precip()
pressureSeaLevelpressure_sea_levelyesclimacell_precip()
precipitationIntensityprecipitation_intensityyesclimacell_precip()
precipitationProbabilityprecipitation_probabilityyesclimacell_precip()
precipitationTypeprecipitation_typeyesclimacell_precip()
sunriseTimesunrise_timeyesclimcell_celestial()
sunsetTimesunset_timyesclimcell_celestial()
solarGHIsolar_ghiyesclimacell_precip()
visibilityvisibilityyesclimacell_precip()
cloudCovercloud_coveryesclimacell_precip()
cloudBasecloud_baseyesclimacell_precip()
cloudCeilingcloud_ceilingyesclimacell_precip()
moonPhasemoon_phase_codeyesclimcell_celestial()
weatherCodeweather_codeyesclimacell_precip()

Limitations

API Call Limits

The Climacell API has certain limitations based on the subscription tier. This package is tested using the free tier. Due to this limitation, the author is only able to provide access to the Core layers. Note that the free tierallows for 500 calls per day, 25 calls per hour, and 3 calls per second (these limitations can change without notice).

Date/Time Range Limits

Thetimestep argument defines the intervals at which to retrieve the data (e.g., daily, hourly, etc.). Valid values are:

TimestepIntervalLower LimitUpper Limit
1m1 minute (per minute)6 hours prior to actual current UTC time6 hours ahead of actual current UTC time
15m15 minutes6 hours prior to actual current UTC time6 hours ahead of actual current UTC time
30m30 minutes6 hours prior to actual current UTC time6 hours ahead of actual current UTC time
1h1 hour (hourly)6 hours prior to actual current UTC time108 hours ahead of actual current UTC time
1d1 day (daily)actual current UTC time15 days ahead of actual current UTC time
currentn/aactual current UTC timeactual current UTC time

Up to date information on these limits can be foundhere.

Units

Version 4 of the Climacell API returns all values in metric and UTC times. The {RClimacell} package is designed to return the values returned by the API call with minimal modifications. Most of the modifications are to ensure that the appropriate data value types are used. For instance, codes are typically integers and are coded as such.

Please note that the UTC times are inISO 8601 standard.

Missing Values

At times, the API will not return values for every data field. This can be due to a variety of reasons and no explanation or warning is provided by the API.NA values simply imply that no value was returned by the API for the respective data field.


[8]ページ先頭

©2009-2025 Movatter.jp