|
RCube
Rcube Rest Server calculates sail routes based on Grib files and sailing boat polar files
|

Go to the source code of this file.
Functions | |
| double | zoneTimeDiff (const Zone *zone1, const Zone *zone0) |
| return difference in hours between two zones (current zone and Wind zone) | |
| void | findWindGrib (double lat, double lon, double t, double *u, double *v, double *gust, double *w, double *twd, double *tws) |
| use findflow to get wind and waves | |
| double | findRainGrib (double lat, double lon, double t) |
| double | findPressureGrib (double lat, double lon, double t) |
| void | findCurrentGrib (double lat, double lon, double t, double *uCurr, double *vCurr, double *tcd, double *tcs) |
| use findflow to get current | |
| char * | gribToStr (const Zone *zone, char *str, size_t maxLen) |
| write Grib information in string | |
| void | printGrib (const Zone *zone, const FlowP *gribData) |
| print Grib u v ... for all lat lon time information | |
| bool | checkGribInfoToStr (int type, Zone *zone, char *buffer, size_t maxLen) |
| check Grib information and write (add) report in the buffer return false if something wrong | |
| bool | checkGribToStr (bool hasCurrentGrib, char *buffer, size_t maxLen) |
| check Grib information and write report in the buffer return false if something wrong | |
| char * | gribToStrJson (const char *fileName, char *out, size_t maxLen) |
| write grib meta information in string | |
| float * | buildUVGWarray (const Zone *zone, const char *initialOfNames, const FlowP *gribData, size_t *outNValues) |
| return array of outNvalues floats n = nTimeStamp * nbLat * nbLon * nShortNames values = [u1, v0, g0, w0, u1, v1, g1, w1, ...] g, w are optionnal | |
| bool | uvPresentGrib (const Zone *zone) |
| true if u and v (or uCurr, vCurr) are in zone | |
| bool | isPresentGrib (const Zone *zone, const char *name) |
| true if shortname in zone | |
|
extern |
return array of outNvalues floats n = nTimeStamp * nbLat * nbLon * nShortNames values = [u1, v0, g0, w0, u1, v1, g1, w1, ...] g, w are optionnal
Definition at line 33 of file r3grib.c.
References FlowP::g, Zone::nbLat, Zone::nbLon, Zone::nTimeStamp, FlowP::u, FlowP::v, FlowP::w, and zone.
Referenced by launchAction().

|
extern |
check Grib information and write (add) report in the buffer return false if something wrong
Definition at line 207 of file r3grib.c.
References Zone::allTimeStepOK, checkGrib(), consistentGrib(), EPSILON, g_strlcat, CheckGrib::gMissing, CheckGrib::gStrange, Zone::latMax, Zone::latMin, Zone::latStep, Zone::lonLeft, Zone::lonRight, Zone::lonStep, MAX_SIZE_LINE, Zone::nbLat, Zone::nbLon, Zone::nDataDate, Zone::nDataTime, Zone::nTimeStamp, Zone::numberOfValues, CheckGrib::outZone, Zone::stepUnits, timeStepRegularGrib(), CheckGrib::uMissing, CheckGrib::uStrange, uvPresentGrib(), CheckGrib::vMissing, CheckGrib::vStrange, Zone::wellDefined, WIND, CheckGrib::wMissing, CheckGrib::wStrange, and zone.
Referenced by checkGribToStr().


|
extern |
check Grib information and write report in the buffer return false if something wrong
Definition at line 316 of file r3grib.c.
References checkGribInfoToStr(), CURRENT, currentZone, g_strlcat, geoIntersectGrib(), MAX_SIZE_LINE, Zone::nbLat, timeIntersectGrib(), WIND, and zone.
Referenced by launchAction(), and optionManage().


|
extern |
use findflow to get current
Definition at line 507 of file r3grib.c.
References Par::constCurrentD, Par::constCurrentS, CURRENT, currentZone, DEG_TO_RAD, findFlow(), fTwd(), fTws(), KN_TO_MS, Zone::nTimeStamp, par, tGribData, and Zone::timeStamp.
Referenced by buildNextIsochrone().


|
extern |
|
extern |
|
extern |
use findflow to get wind and waves
Definition at line 488 of file r3grib.c.
References Par::constWave, Par::constWindTwd, Par::constWindTws, DEG_TO_RAD, findFlow(), fTwd(), fTws(), KN_TO_MS, par, tGribData, WIND, and zone.
Referenced by buildNextIsochrone(), goalP(), infoCoordToJson(), simpleGoalP(), and statRoute().


|
extern |
write Grib information in string
Definition at line 530 of file r3grib.c.
References Zone::centreId, Zone::dataDate, Zone::dataTime, Par::dispDms, Zone::editionNumber, g_strlcat, g_strlcpy, Zone::latMax, Zone::latMin, Zone::latStep, latToStr(), Zone::lonLeft, Zone::lonRight, Zone::lonStep, lonToStr(), MAX_SIZE_LINE, MAX_SIZE_NAME, meteoTab, name, Zone::nbLat, Zone::nbLon, Zone::nDataDate, Zone::nDataTime, newDate(), Zone::nMessage, Zone::nShortName, Zone::nTimeStamp, Zone::numberOfValues, par, Zone::shortName, Zone::stepUnits, Zone::timeStamp, Zone::wellDefined, and zone.
Referenced by optionManage().


|
extern |
write grib meta information in string
Definition at line 586 of file r3grib.c.
References buildRootName(), Zone::centreId, Zone::dataDate, Zone::dataTime, Zone::editionNumber, g_path_get_basename(), g_strlcat, g_strlcpy, gribDateTimeToEpoch(), Zone::latMax, Zone::latMin, Zone::latStep, Zone::lonLeft, Zone::lonRight, Zone::lonStep, MAX_SIZE_FILE_NAME, MAX_SIZE_LINE, MAX_SIZE_NAME, MAX_SIZE_TEXT, meteoTab, N_METEO_ADMIN, name, Zone::nbLat, Zone::nbLon, Zone::nDataDate, Zone::nDataTime, newDate(), Zone::nShortName, Zone::nTimeStamp, Zone::numberOfValues, readGribLists(), readGribParameters(), Zone::shortName, and Zone::timeStamp.
Referenced by launchAction().


|
extern |
true if shortname in zone
Definition at line 169 of file r3grib.c.
References name, Zone::nShortName, Zone::shortName, and zone.
Referenced by buildInitialOfShortNameList().

print Grib u v ... for all lat lon time information
Definition at line 69 of file r3grib.c.
References Zone::nbLat, Zone::nbLon, Zone::nTimeStamp, Zone::timeStamp, and zone.
Referenced by optionManage().

|
extern |
true if u and v (or uCurr, vCurr) are in zone
Definition at line 155 of file r3grib.c.
References Zone::nShortName, Zone::shortName, and zone.
Referenced by buildInitialOfShortNameList(), and checkGribInfoToStr().

return difference in hours between two zones (current zone and Wind zone)
Definition at line 19 of file r3grib.c.
References Zone::dataDate, Zone::dataTime, gribDateTimeToEpoch(), and Zone::wellDefined.
Referenced by initRouting().

