User Tools

Site Tools


devel:brewerpythonmodule

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
devel:brewerpythonmodule [2015/10/26 08:41]
ajberjon [Brewer Python Module]
devel:brewerpythonmodule [2022/10/20 08:00] (current)
Line 1: Line 1:
-====== Brewer Python ​Module ​======+====== Brewer Python ​Library ​======
  
-We describe here the functions and data structured implemented in brewer.py ​module. A Python ​interface ​to the Eubrewnet database can be found in the [[ http://rbcce.aemet.es/​dokuwiki/​doku.php?​id=devel:​brewerjsonpythonmodule | brewerjson module ]]. The last version of the brewer python ​module ​is available from [[http://​rbcce.aemet.es/​svn/​python/​libbrewer/​|rbcce subversion repository]].+We describe here the functions and data structured implemented in brewer.py ​library. A Python ​library ​to the Eubrewnet database can be found in the [[ http://eubrewnet.aemet.es/​dokuwiki/​doku.php?​id=devel:​brewerjsonpythonmodule | brewerjson module ]]. The last version of the brewer python ​library ​is available from [[http://​rbcce.aemet.es/​svn/​python/​libbrewer/​|rbcce subversion repository]].
  
 ===== Installation ===== ===== Installation =====
Line 20: Line 20:
 ===== Data structures ===== ===== Data structures =====
  
-Functions from //​brewer.py//​ module use four different data structures for both input and output. These structures are python dictionaries:​ //​measure//,​ //uv//, //hg//, //config// and //bdaily//. These structures can be generated by using [[http://rbcce.aemet.es/​dokuwiki/​doku.php?​id=devel:​brewerjsonpythonmodule|brewerjson module]].+Functions from //​brewer.py//​ module use four different data structures for both input and output. These structures are python dictionaries:​ //​measure//,​ //uv//, //hg//, //config// and //bdaily//. These structures can be generated by using [[http://eubrewnet.aemet.es/​dokuwiki/​doku.php?​id=devel:​brewerjsonpythonmodule|brewerjson module]].
  
 ==== measure ==== ==== measure ====
-Dictionary containing values of the DS and SL Brewer measurements. Some of the dictionary fields will be used as input to the calculations of the library functions, and others will be used as the output. The values can came from B files or from Eubrewnet database through its JSON interface by using [[http://rbcce.aemet.es/​dokuwiki/​doku.php?​id=devel:​brewerjsonpythonmodule|brewerjson module]]. It contains the following fields:+Dictionary containing values of the DS and SL Brewer measurements. Some of the dictionary fields will be used as input to the calculations of the library functions, and others will be used as the output. The values can came from B files or from Eubrewnet database through its JSON interface by using [[http://eubrewnet.aemet.es/​dokuwiki/​doku.php?​id=devel:​brewerjsonpythonmodule|brewerjson module]]. It contains the following fields:
  
 ^ Field ^ Description ^ ^ Field ^ Description ^
Line 67: Line 67:
 ==== uv ==== ==== uv ====
  
-Dictionary containing values of the UV Brewer measurements,​ including uv, ux, and ua. Some of the dictionary fields will be used as input to the calculations of the library functions, and others will be used as the output. The values can came from B files or from Eubrewnet database through its JSON interface by using [[http://rbcce.aemet.es/​dokuwiki/​doku.php?​id=devel:​brewerjsonpythonmodule|brewerjson module]]. It contains the following fields:+Dictionary containing values of the UV Brewer measurements,​ including uv, ux, and ua. Some of the dictionary fields will be used as input to the calculations of the library functions, and others will be used as the output. The values can came from B files or from Eubrewnet database through its JSON interface by using [[http://eubrewnet.aemet.es/​dokuwiki/​doku.php?​id=devel:​brewerjsonpythonmodule|brewerjson module]]. It contains the following fields:
  
 ^ Field ^ Description ^ ^ Field ^ Description ^
Line 102: Line 102:
  
 ==== hg ==== ==== hg ====
-Dictionary containing values of HG Brewer calibration. The values can came from B files or from Eubrewnet database through its JSON interface by using [[http://rbcce.aemet.es/​dokuwiki/​doku.php?​id=devel:​brewerjsonpythonmodule|brewerjson module]]. It contains the following fields:+Dictionary containing values of HG Brewer calibration. The values can came from B files or from Eubrewnet database through its JSON interface by using [[http://eubrewnet.aemet.es/​dokuwiki/​doku.php?​id=devel:​brewerjsonpythonmodule|brewerjson module]]. It contains the following fields:
  
 ^ Field ^ Description ^ ^ Field ^ Description ^
Line 109: Line 109:
  
 ==== config ==== ==== config ====
-Dictionary containing values of brewer settings. The values can came from B files, from ICF or from Eubrewnet database through its JSON interface by using [[http://rbcce.aemet.es/​dokuwiki/​doku.php?​id=devel:​brewerjsonpythonmodule|brewerjson module]]. It contains the following fields:+Dictionary containing values of brewer settings. The values can came from B files, from ICF or from Eubrewnet database through its JSON interface by using [[http://eubrewnet.aemet.es/​dokuwiki/​doku.php?​id=devel:​brewerjsonpythonmodule|brewerjson module]]. It contains the following fields:
  
 ^ Field ^ Description ^ ^ Field ^ Description ^
Line 231: Line 231:
     date1=datetime.date(2012,​2,​7)     date1=datetime.date(2012,​2,​7)
     date2=datetime.date(2012,​2,​8)     date2=datetime.date(2012,​2,​8)
-    ds=brewerjson.getDataList(brewerid,​user,​password,"​getDS",​date1,​date2) +    ds=brewerjson.getDataList(brewerid,​user,​password,"​DS",​date1,​date2) 
-    config=brewerjson.getDataList(brewerid,​user,​password,"​getConfigsbyDate",​date1,​date2)+    config=brewerjson.getDataList(brewerid,​user,​password,"​ConfigbyDate",​date1,​date2)
     ds=brewer.airmass_calcl(ds,​config)     ds=brewer.airmass_calcl(ds,​config)
  
Line 290: Line 290:
     date1=datetime.date(2012,​2,​7)     date1=datetime.date(2012,​2,​7)
     date2=datetime.date(2012,​2,​8)     date2=datetime.date(2012,​2,​8)
-    sl=brewerjson.getDataList(brewerid,​user,​password,"​getSL",​date1,​date2) +    sl=brewerjson.getDataList(brewerid,​user,​password,"​SL",​date1,​date2) 
-    config=brewerjson.getDataList(brewerid,​user,​password,"​getConfigsbyDate",​date1,​date2)+    config=brewerjson.getDataList(brewerid,​user,​password,"​ConfigbyDate",​date1,​date2)
     sl=brewer.instrumental_corl(sl,​config)     sl=brewer.instrumental_corl(sl,​config)
  
Line 346: Line 346:
     date1=datetime.date(2012,​2,​7)     date1=datetime.date(2012,​2,​7)
     date2=datetime.date(2012,​2,​8)     date2=datetime.date(2012,​2,​8)
-    ds=brewerjson.getDataList(brewerid,​user,​password,"​getDS",​date1,​date2) +    ds=brewerjson.getDataList(brewerid,​user,​password,"​DS",​date1,​date2) 
-    config=brewerjson.getDataList(brewerid,​user,​password,"​getConfigsbyDate",​date1,​date2)+    config=brewerjson.getDataList(brewerid,​user,​password,"​ConfigbyDate",​date1,​date2)
     ​     ​
     ds=brewer.airmass_calcl(ds,​config)     ds=brewer.airmass_calcl(ds,​config)
Line 520: Line 520:
     password='​password'​     password='​password'​
     date1=datetime.date(2012,​2,​7)     date1=datetime.date(2012,​2,​7)
-    ds=brewerjson.getDataList(brewerid,​user,​password,"​getDS",​date1)+    ds=brewerjson.getDataList(brewerid,​user,​password,"​DS",​date1)
     ​     ​
     dsf = brewer.temp_filter(ds,​[20])     dsf = brewer.temp_filter(ds,​[20])
Line 540: Line 540:
     password='​password'​     password='​password'​
     date1=datetime.date(2012,​2,​7)     date1=datetime.date(2012,​2,​7)
-    ds=brewerjson.getDataList(brewerid,​user,​password,"​getDS",​date1)+    ds=brewerjson.getDataList(brewerid,​user,​password,"​DS",​date1)
     ​     ​
     dsf=brewer.gmt_filter(ds,​[datetime.datetime(2012,​ 2, 7, 12, 0, 0),​datetime.datetime(2012,​ 2, 7, 15, 0, 0)])     dsf=brewer.gmt_filter(ds,​[datetime.datetime(2012,​ 2, 7, 12, 0, 0),​datetime.datetime(2012,​ 2, 7, 15, 0, 0)])
Line 562: Line 562:
     password='​password'​     password='​password'​
     date1=datetime.date(2012,​2,​7)     date1=datetime.date(2012,​2,​7)
-    ds=brewerjson.getDataList(brewerid,​user,​password,"​getDS",​date1)+    ds=brewerjson.getDataList(brewerid,​user,​password,"​DS",​date1)
     ​     ​
     dsf=brewer.outliers_filter(ds,​3)     dsf=brewer.outliers_filter(ds,​3)
Line 582: Line 582:
     password='​password'​     password='​password'​
     date1=datetime.date(2012,​2,​7)     date1=datetime.date(2012,​2,​7)
-    ds=brewerjson.getDataList(brewerid,​user,​password,"​getDS",​date1)+    ds=brewerjson.getDataList(brewerid,​user,​password,"​DS",​date1)
     ​     ​
     ds=brewer.airmass_calcl(ds,​config)     ds=brewer.airmass_calcl(ds,​config)
Line 619: Line 619:
     date1=datetime.date(2012,​2,​7)     date1=datetime.date(2012,​2,​7)
     date2=datetime.date(2012,​2,​8)     date2=datetime.date(2012,​2,​8)
-    sl=brewerjson.getDataList(brewerid,​user,​password,"​getSL",​date1,​date2) +    sl=brewerjson.getDataList(brewerid,​user,​password,"​SL",​date1,​date2) 
-    config=brewerjson.getDataList(brewerid,​user,​password,"​getConfigsbyDate",​date1,​date2)+    config=brewerjson.getDataList(brewerid,​user,​password,"​ConfigbyDate",​date1,​date2)
     ​     ​
     sl=brewer.instrumental_corl(sl,​config)     sl=brewer.instrumental_corl(sl,​config)
Line 667: Line 667:
     date1=datetime.date(2012,​2,​7)     date1=datetime.date(2012,​2,​7)
     date2=datetime.date(2012,​2,​8)     date2=datetime.date(2012,​2,​8)
-    sl=brewerjson.getDataList(brewerid,​user,​password,"​getSL",​date1,​date2) +    sl=brewerjson.getDataList(brewerid,​user,​password,"​SL",​date1,​date2) 
-    config=brewerjson.getDataList(brewerid,​user,​password,"​getConfigsbyDate",​date1,​date2)+    config=brewerjson.getDataList(brewerid,​user,​password,"​ConfigbyDate",​date1,​date2)
     ​     ​
     ta=tempanalysis(sl,​config,​[],​0)     ta=tempanalysis(sl,​config,​[],​0)
devel/brewerpythonmodule.1445848911.txt.gz · Last modified: 2015/10/26 08:41 by ajberjon