codes:dbaccess
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| codes:dbaccess [2025/10/14 13:34] – [Brewer Summary] ajberjon | codes:dbaccess [2026/09/11 11:45] (current) – [Process O3L1_5] ajberjon | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| * Optionally, an enddate input parameter can be provided: [[http:// | * Optionally, an enddate input parameter can be provided: [[http:// | ||
| * The functions accept a format input parameter for formatting the output in different ways: [[http:// | * The functions accept a format input parameter for formatting the output in different ways: [[http:// | ||
| - | |||
| - | **Description of the DS Get Function**: | ||
| - | * Function: DS | ||
| - | * Description: | ||
| - | * Inputs: | ||
| - | - brewerid: see [[codes: | ||
| - | - date: see [[codes: | ||
| - | - enddate: see [[codes: | ||
| - | - format: see [[codes: | ||
| - | * Output: Direct Sun individual measures with extra values comming from: | ||
| - | - Summary: temp (temperature), | ||
| - | - B file: date (in ISO 8601 format) | ||
| - | - HG measures: hg_test (0: measures is not between two correct HG tests; 1: measure between two correct HG tests) | ||
| There is a [[codes: | There is a [[codes: | ||
| Line 35: | Line 22: | ||
| ===== COMMON ===== | ===== COMMON ===== | ||
| - | ==== Format ==== | ||
| - | The access functions provide four different ways of data access using the format input parameter. | ||
| - | ^ Format input ^ Description ^ Example ^ | ||
| - | ^ jsonM | JSON matrix formed by lists of lists (default value). The first list is formed by the value names and the following lists are the query outputs | [[http:// | ||
| - | ^ jsonO | JSON object of lists, where each key is the value name and its value is the time sorted list of them| [[http:// | ||
| - | ^ text | Human readable comma separated values where first row is the value names and the following are the query outputs | [[http:// | ||
| - | ^ csv | CSV direct download where first row are the value names and the following are the query outputs | [[http:// | ||
| - | |||
| ==== Common Inputs ==== | ==== Common Inputs ==== | ||
| Almost all functions accept the following input options: | Almost all functions accept the following input options: | ||
| Line 53: | Line 32: | ||
| See also the code examples in [[codes: | See also the code examples in [[codes: | ||
| + | |||
| + | ==== Format ==== | ||
| + | The access functions provide four different ways of data access using the format input parameter. | ||
| + | ^ Format input ^ Description ^ Example ^ | ||
| + | ^ jsonM | JSON matrix formed by lists of lists (default value). The first list is formed by the value names and the following lists are the query outputs | [[http:// | ||
| + | ^ jsonO | JSON object of lists, where each key is the value name and its value is the time sorted list of them| [[http:// | ||
| + | ^ text | Human readable comma separated values where first row is the value names and the following are the query outputs | [[http:// | ||
| + | ^ csv | CSV direct download where first row are the value names and the following are the query outputs | [[http:// | ||
| + | |||
| ==== Means ==== | ==== Means ==== | ||
| For selected functions, passing the ''& | For selected functions, passing the ''& | ||
| Line 100: | Line 88: | ||
| ==== Descriptions ==== | ==== Descriptions ==== | ||
| + | |||
| === DS === | === DS === | ||
| * Function: DS | * Function: DS | ||
| Line 194: | Line 183: | ||
| * Output: Zenith Sky individual measures with extra values comming from: | * Output: Zenith Sky individual measures with extra values comming from: | ||
| - Summary: temp (temperature), | - Summary: temp (temperature), | ||
| + | * Example: http:// | ||
| ---- | ---- | ||
| Line 573: | Line 563: | ||
| * Description: | * Description: | ||
| * Inputs: | * Inputs: | ||
| - | - brewerid: see [[codes: | + | - brewerid: see [[codes: |
| + | - stationid or gaw_id or woudc_id: Eubrewnet, GAW or WOUDC ID of the station. If a brewer is not selected, data from any brewer that has measured at the selected station will be returned. | ||
| - date: see [[codes: | - date: see [[codes: | ||
| - enddate: see [[codes: | - enddate: see [[codes: | ||
| Line 593: | Line 584: | ||
| * Description: | * Description: | ||
| * Inputs: | * Inputs: | ||
| - | - brewerid: see [[codes: | + | - brewerid: see [[codes: |
| + | - stationid or gaw_id or woudc_id: Eubrewnet, GAW or WOUDC ID of the station. If a brewer is not selected, data from any brewer that has measured at the selected station will be returned. | ||
| - date: see [[codes: | - date: see [[codes: | ||
| - enddate: see [[codes: | - enddate: see [[codes: | ||
| Line 609: | Line 601: | ||
| * Description: | * Description: | ||
| * Inputs: | * Inputs: | ||
| - | - brewerid: see [[codes: | + | - brewerid: see [[codes: |
| + | - stationid or gaw_id or woudc_id: Eubrewnet, GAW or WOUDC ID of the station. If a brewer is not selected, data from any brewer that has measured at the selected station will be returned. | ||
| - date: see [[codes: | - date: see [[codes: | ||
| - enddate: see [[codes: | - enddate: see [[codes: | ||
| - format: see [[codes: | - format: see [[codes: | ||
| - | - debug: change the ouput to see the corrections that are being applied. (True) | ||
| - | - rejected: returns the filtered data, too (True) | ||
| * Outputs: Ozone calculated from the DS raw counts using standard algorithm from [[devel: | * Outputs: Ozone calculated from the DS raw counts using standard algorithm from [[devel: | ||
| - Filter flag | - Filter flag | ||
| Line 719: | Line 710: | ||
| * Examples: https:// | * Examples: https:// | ||
| * Input: | * Input: | ||
| - | - '' | + | - '' |
| + | - '' | ||
| - '' | - '' | ||
| - '' | - '' | ||
| Line 735: | Line 727: | ||
| * Examples: https:// | * Examples: https:// | ||
| * Input: | * Input: | ||
| - | - '' | + | - '' |
| + | - '' | ||
| - '' | - '' | ||
| - '' | - '' | ||
| Line 798: | Line 791: | ||
| ==== Process O3L1_5 ==== | ==== Process O3L1_5 ==== | ||
| * Function: O3L1_5 | * Function: O3L1_5 | ||
| - | * Description: | + | * Description: |
| * Inputs: | * Inputs: | ||
| - brewerid: see [[codes: | - brewerid: see [[codes: | ||
| Line 804: | Line 797: | ||
| - enddate: see [[codes: | - enddate: see [[codes: | ||
| - format: see [[codes: | - format: see [[codes: | ||
| - | - debug: change the ouput to see the corrections that are being applied. | + | |
| - | - rejected: | + | |
| + | - rejected: | ||
| + | - allowfilter: | ||
| + | - allowtag: see [[codes: | ||
| * Outputs: Ozone calculated from the DS raw counts using standard algorithm from [[devel: | * Outputs: Ozone calculated from the DS raw counts using standard algorithm from [[devel: | ||
| - Filter flag | - Filter flag | ||
| Line 1041: | Line 1037: | ||
| both the FLAG_OZONE_STD_FILT and FLAG_HG_FILT data filters will be ignored and all the data will have a '' | both the FLAG_OZONE_STD_FILT and FLAG_HG_FILT data filters will be ignored and all the data will have a '' | ||
| + | |||
| + | Also, '' | ||
| ---- | ---- | ||
codes/dbaccess.1760448849.txt.gz · Last modified: 2025/10/14 13:34 by ajberjon