devel:brewerjsonpythonmodule
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| devel:brewerjsonpythonmodule [2016/05/18 19:56] – ajberjon | devel:brewerjsonpythonmodule [2022/10/20 08:00] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 28: | Line 28: | ||
| ^ [[devel: | ^ [[devel: | ||
| ^ [[devel: | ^ [[devel: | ||
| + | |||
| === getDataList() === | === getDataList() === | ||
| - | This function retrieve a list of [[http://rbcce.aemet.es/ | + | This function retrieve a list of [[http://eubrewnet.aemet.es/ |
| The returned dictionaries structures depend on the // | The returned dictionaries structures depend on the // | ||
| ^ // | ^ // | ||
| - | ^ 'getDS' | [[http://rbcce.aemet.es/ | + | ^ 'DS' | [[http://eubrewnet.aemet.es/ |
| - | ^ 'getSL' | [[http://rbcce.aemet.es/ | + | ^ 'SL' | [[http://eubrewnet.aemet.es/ |
| - | ^ 'getConfigsbyDate' | + | ^ 'ConfigbyDate' | [[http://eubrewnet.aemet.es/ |
| **Example** | **Example** | ||
| Line 46: | Line 47: | ||
| d1=datetime.date(2014, | d1=datetime.date(2014, | ||
| d2=datetime.date(2014, | d2=datetime.date(2014, | ||
| - | data=brewerjson.getDataList(37,' | + | data=brewerjson.getDataList(185,' |
| - | === getdata() === | ||
| - | This function retrieves brewer data using the interface described in the [[codes: | + | === writejson() === |
| - | **Example** | + | This function |
| - | import brewerjson | + | |
| - | import datetime | + | |
| - | + | ||
| - | params={} | + | |
| - | params[' | + | |
| - | params[' | + | |
| - | params[' | + | |
| - | params[' | + | |
| - | params[' | + | |
| - | data=brewerjson.getdata(params) | + | |
| - | + | ||
| - | In this example we retrieve data from the url: http:// | + | |
| - | + | ||
| - | This function | + | |
| - | + | ||
| - | + | ||
| - | + | ||
| - | === formatConfig() === | + | |
| - | + | ||
| - | This function returns | + | |
| **Example** | **Example** | ||
| Line 78: | Line 58: | ||
| import datetime | import datetime | ||
| | | ||
| - | | + | |
| - | | + | |
| - | params[' | + | data=brewerjson.getDataList(185,' |
| - | params[' | + | brewerjson.getdata(data,' |
| - | params[' | + | |
| - | params[' | + | |
| - | data=brewerjson.getdata(params) | + | |
| - | | + | |
| + | This function accepts two input parameters: //' | ||
| - | === formatDS() === | + | * //' |
| + | * //' | ||
| - | This function returns a [[ http:// | ||
| - | **Example** | + | === readjson() === |
| - | import brewerjson | + | |
| - | import datetime | + | |
| - | + | ||
| - | params={} | + | |
| - | params[' | + | |
| - | params[' | + | |
| - | params[' | + | |
| - | params[' | + | |
| - | params[' | + | |
| - | data=brewerjson.getdata(params) | + | |
| - | ds = brewerjson.formatDS(data) | + | |
| - | + | ||
| - | + | ||
| - | === formatUV() === | + | |
| - | This function | + | This function |
| **Example** | **Example** | ||
| Line 114: | Line 77: | ||
| import datetime | import datetime | ||
| | | ||
| - | | + | brewerjson.getdata('input.txt') |
| - | params[' | + | |
| - | params[' | + | |
| - | params[' | + | |
| - | params[' | + | |
| - | params[' | + | |
| - | data=brewerjson.getdata(params) | + | |
| - | uv = brewerjson.formatUV(data) | + | |
| - | === formatUVR() === | ||
| - | |||
| - | This function returns a [[ http:// | ||
| - | |||
| - | **Example** | ||
| - | import brewerjson | ||
| - | import datetime | ||
| - | | ||
| - | params={} | ||
| - | params[' | ||
| - | params[' | ||
| - | params[' | ||
| - | params[' | ||
| - | params[' | ||
| - | data=brewerjson.getdata(params) | ||
| - | uvr = brewerjson.formatUVR(data) | ||
devel/brewerjsonpythonmodule.1463601385.txt.gz · Last modified: 2016/05/18 19:56 by ajberjon