User Tools

Site Tools


codes:accessfunctions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
codes:accessfunctions [2015/05/25 16:05] bhcruzcodes:accessfunctions [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-====== ACCESS FUNCTIONS ====== 
-**Definition of the access functions that are developed in [[http://rbcce.aemet.es/eubrewnet|Eubrewnet]]** 
-There is [[codes:accessfunctions#function_table|Table]] with a summary of the available functions and their links as example. 
  
-**For security purposes user authentication has been added to this tools.** 
-Examples of connections in [[codes:accessfunctions#matlab|matlab]] and [[codes:accessfunctions#python|python]] are provided for understanding. 
----- 
-===== FUNCTION TABLE ===== 
- 
-^ Function ^ Short Description ^ Long Description ^Link          ^ 
-^ getETC    | Returns the ETC on Ozone ratio from ICFS     |[[codes:accessfunctions#getetc|getETC]] |[[http://rbcce.aemet.es/eubrewnet/getdata/getETC?brewerid=157|Get ETC]]        | 
-^ getDS    | Returns the DS measures of a brewer for a date     |[[codes:accessfunctions#getds|getDS]] |[[http://rbcce.aemet.es/eubrewnet/getdata/getDS?brewerid=157&date=2015-01-01|Get DS]]        | 
-^ getDSinterval    | Returns the DS measures of a brewer for a range of dates     |[[codes:accessfunctions#getdsinterval|getDSinterval]] |[[http://rbcce.aemet.es/eubrewnet/getdata/getDSinterval?brewerid=157&date=2015-01-01&enddate=2015-01-07|Get DSinterval]]        | 
-^ getZS    | Returns the ZS measures of a brewer for a date     |[[codes:accessfunctions#getzs|getZS]] |[[http://rbcce.aemet.es/eubrewnet/getdata/get>S?brewerid=157&date=2015-01-01|Get ZS]]        | 
-^ getSL    | Returns the SL measures of a brewer for a date     |[[codes:accessfunctions#getsl|getSL]] |[[http://rbcce.aemet.es/eubrewnet/getdata/getSL?brewerid=157&date=2015-01-01|Get SL]]        | 
-^ getConfigbyDate    | Returns the available Configuration of a brewer for a date    |[[codes:accessfunctions#getconfigbydate|getConfigbyDate]] |[[http://rbcce.aemet.es/eubrewnet/getdata/getConfigbyDate?brewerid=033&date=2005-07-01|Get Config by Date]]        | 
-^ getDSS    | Returns the DS summaries of a brewer for a date     |[[codes:accessfunctions#getdss|getDSS]] |[[http://rbcce.aemet.es/eubrewnet/getdata/getDSS?brewerid=157&date=2015-01-01|Get DSS]]        | 
-^ getZSS    | Returns the ZS summaries of a brewer for a date     |[[codes:accessfunctions#getzss|getZSS]] |[[http://rbcce.aemet.es/eubrewnet/getdata/getZSS?brewerid=157&date=2015-01-01|Get ZSS]]        | 
-^ getSLS    | Returns the SL summaries of a brewer for a date     |[[codes:accessfunctions#getsls|getSLS]] |[[http://rbcce.aemet.es/eubrewnet/getdata/getSLS?brewerid=157&date=2015-01-01|Get SLS]]        | 
-^ getHG    | Returns the mercury lamp tests of a brewer for a date     |[[codes:accessfunctions#gethg|getHG]] |[[http://rbcce.aemet.es/eubrewnet/getdata/getHG?brewerid=157&date=2015-01-01|Get HG]]        | 
-^ getFileStatus    | Returns the status of the received files     |[[codes:accessfunctions#getfilestatus|getFileStatus]] |[[http://rbcce.aemet.es/eubrewnet/getdata/getFileStatus?file=B00115.157|Get FileStatus]]        | 
-^ getUmkehr    | Returns the Umkehr measures for a date     |[[codes:accessfunctions#getumkehr|getUmkehr]] |[[http://rbcce.aemet.es/eubrewnet/getdata/getUmkehr?brewerid=48&date=2015-03-03|Get Umkehr]]        | 
-^ getBfileAvailable    | Returns the available B files for a year     |[[codes:accessfunctions#getbfileavailable|getBfileAvailable]] |[[http://rbcce.aemet.es/eubrewnet/getdata/getBfileAvailable?brewerid=157&year=2015|Get BfileAvailable]]        | 
-^ getHGInterval    | Returns the HG tests for an interval     |[[codes:accessfunctions#gethginterval|getHGInterval]] |[[http://rbcce.aemet.es/eubrewnet/getdata/getHGInterval?brewerid=157&date=2015-01-01&enddate=2015-01-10|Get HG Interval]]        | 
----- 
-===== Descriptions ===== 
-==== getETC ==== 
-  * Function: getETC 
-  * Inputs: 
-      - brewerid: Id of Brewer 
-  * Outputs: A list of (brewerid, date('YYYY-MM-DD'), etc) that comes from the ICF that are stored in the Eubrewnet Database. 
-==== getDS ==== 
-  * Function: getDS 
-  * Inputs: 
-      - brewerid: Id of Brewer 
-      - date: date('YYYY-MM-DD') of the measures 
-  * Outputs: A list where the first element is the list of parameters and the rest of them are the DS measures with some extra fields as temperature or number of summary for a day. 
-==== getDSinterval ==== 
-  * Function: getDSinterval 
-  * Inputs: 
-      - brewerid: Id of Brewer 
-      - date: start date('YYYY-MM-DD') of the range of measures 
-      - enddate: end date('YYYY-MM-DD') of the range of measures 
-  * Outputs: A list where the first element is the list of parameters and the rest of them are the DS measures with some extra fields as temperature or number of summary for the whole range of dates. 
-==== getZS ==== 
-  * Function: getZS 
-  * Inputs: 
-      - brewerid: Id of Brewer 
-      - date: date('YYYY-MM-DD') of the measures 
-  * Outputs: A dictionary with the ZS measures that for a brewer and a day. The key is the datetime('YYYY-MM-DD HH:MM:SS') and the value is a dictionary formed by pairs of <value name, value>. 
-==== getSL ==== 
-  * Function: getSL 
-  * Inputs: 
-      - brewerid: Id of Brewer 
-      - date: date('YYYY-MM-DD') of the measures 
-  * Outputs: A dictionary with the SL measures that for a brewer and a day. The key is the datetime('YYYY-MM-DD HH:MM:SS') and the value is a dictionary formed by pairs of <value name, value>. 
-==== getConfigbyDate ==== 
-  * Function: getConfigbyDate 
-  * Inputs: 
-      - brewerid: Id of Brewer 
-      - date: date('YYYY-MM-DD') of the available configuration 
-  * Outputs: A dictionary with the available Configuration for a brewer and a day formed by pairs of <constant name, constant value>. The available configuration is the last configuration stored or the information of the header of the bfile for that day. 
-==== getDSS ==== 
-  * Function: getDSS 
-  * Inputs: 
-      - brewerid: Id of Brewer 
-      - date: date('YYYY-MM-DD') of the measures 
-  * Outputs: A list where the first element is the list of parameters and the rest of them are the DS summaries for a day. 
-==== getZSS ==== 
-  * Function: getZSS 
-  * Inputs: 
-      - brewerid: Id of Brewer 
-      - date: date('YYYY-MM-DD') of the measures 
-  * Outputs: A list where the first element is the list of parameters and the rest of them are the ZS summaries for a day. 
-==== getSLS ==== 
-  * Function: getSLS 
-  * Inputs: 
-      - brewerid: Id of Brewer 
-      - date: date('YYYY-MM-DD') of the measures 
-  * Outputs: A list where the first element is the list of parameters and the rest of them are the SL summaries for a day. 
-==== getHG ==== 
-  * Function: getHG 
-  * Inputs: 
-      - brewerid: Id of Brewer 
-      - date: date('YYYY-MM-DD') of the measures 
-  * Outputs: A list where the first element is the list of parameters and the rest of them are the mercury lamp test for a day. 
-==== getFileStatus ==== 
-  * Function: getFileStatus 
-  * Inputs: 
-      - file: Name of the file for status check 
-      - brewerid: Id of Brewer 
-      - date: date('YYYY-MM-DD') or start date if end date is provided 
-      - enddate: end date('YYYY-MM-DD') of the date range 
-  * Outputs: A list where the first element is a list with the fields and the rest are the status of a file with full information if file is provided or a short information with file name, process time and status for all the files between dates. 
-==== getUmkehr ==== 
-  * Function: getUmkehr 
-  * Inputs: 
-      - brewerid: Id of Brewer 
-      - date: date('YYYY-MM-DD') of the measures 
-  * Outputs: A list where the first element is the list of measure fields and the rest of them are the umkehr measures for a day from the B files. 
-==== getBfileAvailable ==== 
-  * Function: getBfileAvailable 
-  * Inputs: 
-      - brewerid: Id of Brewer 
-      - year: date('YYYY' 
-  * Outputs: A list whit the dates of the received B files in Eubrewnet. 
-==== getHGInterval ==== 
-  * Function: getHGInterval 
-  * Inputs: 
-      - brewerid: Id of Brewer 
-      - date: start date('YYYY-MM-DD') of the period of tests 
-      - date: end date('YYYY-MM-DD') of the period of tests 
-  * Outputs: A list where first element is a list with the field names of the HG tests and the rest are the different measures between date and enddate. 
----- 
- 
-===== EXAMPLES ===== 
-==== MATLAB ==== 
-A [[http://rbcce.aemet.es/svn/matlab/get_dss_auth.m|matlab function]] is available for users for understanding the Authentication method. 
-<code matlab |t get_dss_auth.m> 
-extern> http://rbcce.aemet.es/svn/matlab/get_dss_auth.m 
-</code> 
- 
-==== PYTHON ==== 
-A [[http://rbcce.aemet.es/svn/python/connect_example.py|python script]] is available for users for understanding the Authentication method. 
-<code python |t connect_example.py> 
-extern> http://rbcce.aemet.es/svn/python/connect_example.py 
-</code> 
codes/accessfunctions.1432569952.txt.gz · Last modified: 2015/05/25 16:05 by bhcruz