<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://wiki.lightmeter.at/index.php?action=history&amp;feed=atom&amp;title=GAVO_database</id>
	<title>GAVO database - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.lightmeter.at/index.php?action=history&amp;feed=atom&amp;title=GAVO_database"/>
	<link rel="alternate" type="text/html" href="https://wiki.lightmeter.at/index.php?title=GAVO_database&amp;action=history"/>
	<updated>2026-05-15T10:14:08Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in wiki.lightmeter.at</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.lightmeter.at/index.php?title=GAVO_database&amp;diff=391&amp;oldid=prev</id>
		<title>GuentherWuchterl: Die Seite wurde neu angelegt: „= Database for the Lightmeter Network =  The lightmeter data is centrally collected at a Zentrum für Astronomie Heidelberg in the context of the German Astrophysical Virtual Observatory (GAVO).      '''The Lightmeter database:''' [http://vo.uni-hd.de/lightweather ''Lightweather'' at GAVO]     '''Stations in the datase:''' [http://dc.zah.uni-heidelberg.de/__system__/adql/query/form?__nevow_form__=genForm&amp;query=select%20*%20from%20lightmeter.stations&amp;timeo…“</title>
		<link rel="alternate" type="text/html" href="https://wiki.lightmeter.at/index.php?title=GAVO_database&amp;diff=391&amp;oldid=prev"/>
		<updated>2023-08-27T13:55:47Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „= Database for the Lightmeter Network =  The lightmeter data is centrally collected at a Zentrum für Astronomie Heidelberg in the context of the German Astrophysical Virtual Observatory (GAVO).      &amp;#039;&amp;#039;&amp;#039;The Lightmeter database:&amp;#039;&amp;#039;&amp;#039; [http://vo.uni-hd.de/lightweather &amp;#039;&amp;#039;Lightweather&amp;#039;&amp;#039; at GAVO]     &amp;#039;&amp;#039;&amp;#039;Stations in the datase:&amp;#039;&amp;#039;&amp;#039; [http://dc.zah.uni-heidelberg.de/__system__/adql/query/form?__nevow_form__=genForm&amp;amp;query=select%20*%20from%20lightmeter.stations&amp;amp;timeo…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Database for the Lightmeter Network =&lt;br /&gt;
&lt;br /&gt;
The lightmeter data is centrally collected at a Zentrum für Astronomie Heidelberg in the context of the German Astrophysical Virtual Observatory (GAVO).&lt;br /&gt;
&lt;br /&gt;
    '''The Lightmeter database:''' [http://vo.uni-hd.de/lightweather ''Lightweather'' at GAVO]&lt;br /&gt;
    '''Stations in the datase:''' [http://dc.zah.uni-heidelberg.de/__system__/adql/query/form?__nevow_form__=genForm&amp;amp;query=select%20*%20from%20lightmeter.stations&amp;amp;timeout=5&amp;amp;_FORMAT=HTML&amp;amp;submit=Go List with metadata as coordinates and calibrations]&lt;br /&gt;
    '''Recent data:''' [http://dc.zah.uni-heidelberg.de/lightmeter/q/weather Query form and graph of recent uploads]&lt;br /&gt;
&lt;br /&gt;
Data are submitted by HTTP uploads to that location. To make this work, some rules must be followed.&lt;br /&gt;
&lt;br /&gt;
== Station Metadata ==&lt;br /&gt;
&lt;br /&gt;
To make your data useful, it must be accompanied by some metadata.  If you &lt;br /&gt;
use skysensor (in a version recent enough), you can submit its ini-file that is located in the same directory as the executable.  Otherwise, fill out the following template:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
fullname: (Short free text, not more than, say, 70 characters)&lt;br /&gt;
stationId: (The station id)&lt;br /&gt;
long: (longitude in decimal degrees, east is positive)&lt;br /&gt;
lat: (latitude in decimal degrees)&lt;br /&gt;
height: (in meters above sea level)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Mail your file to gavo@ari.uni-heidelberg.de.  We will reply by providing you an&lt;br /&gt;
access key that you will need to upload the data.&lt;br /&gt;
&lt;br /&gt;
The station id consists of the ISO country code, a designation of the location&lt;br /&gt;
and a number; e.g., DE_HEIDELBERG_1; only letters, digits and underscores are&lt;br /&gt;
allowed.  On metadata submission, choose your own identifier. We may have to&lt;br /&gt;
change your station id to avoid name clashes, though.&lt;br /&gt;
&lt;br /&gt;
'''Important''': If you move your sensor, it ''must'' receive a new station id, and&lt;br /&gt;
you ''must'' submit a new metadata set.  Analoguosly, if you change your sensor,&lt;br /&gt;
you ''must'' obtain a new station id.  A &amp;quot;station&amp;quot; is the combination of a&lt;br /&gt;
specific location and a specific sensor.&lt;br /&gt;
&lt;br /&gt;
== Data Upload ==&lt;br /&gt;
&lt;br /&gt;
After you have received your access key (and possibly a revised station id),&lt;br /&gt;
you can begin uploading.  This is done by HTTP uploads.  You should try &lt;br /&gt;
uploading manually first.  To do this, go to&lt;br /&gt;
http://vo.uni-hd.de/lightmeter/q/upload/custom/STATIONID/ACCESSKEY&lt;br /&gt;
(where you must replace STATIONID and ACCESSKEY with what was sent to you, &lt;br /&gt;
of course).&lt;br /&gt;
&lt;br /&gt;
=== Upload Formats ===&lt;br /&gt;
&lt;br /&gt;
You can upload both CSV and &amp;quot;text&amp;quot; format.  Text format consists of lines&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
date time(utc) temperature count status&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Such a file could look like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
2009-05-29 00:00:01  11,3  235160 1&lt;br /&gt;
2009-05-29 00:00:02  11,3  235240 1&lt;br /&gt;
2009-05-29 00:00:03  11,3  235320 1&lt;br /&gt;
2009-05-29 00:00:04  11,3  235320 1&lt;br /&gt;
2009-05-29 00:00:05  11,3  235264 1&lt;br /&gt;
2009-05-29 00:00:06  11,3  234864 1&lt;br /&gt;
2009-05-29 00:00:07  11,3  235360 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
CSV format has semicolons as separators and must not have headers.  It should&lt;br /&gt;
look like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
27.04.2009;12:31:14;36,9;°C;1942560;ok;&lt;br /&gt;
27.04.2009;12:31:15;37,0;°C;1947960;ok;&lt;br /&gt;
27.04.2009;12:31:16;37,0;°C;1951800;ok;&lt;br /&gt;
27.04.2009;12:31:17;36,9;°C;1943880;ok;&lt;br /&gt;
27.04.2009;12:31:18;37,0;°C;1947960;ok;&lt;br /&gt;
27.04.2009;12:31:19;36,9;°C;1956960;ok;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We will accept floating point numbers with both commas and decimal points as decimal separators.&lt;br /&gt;
&lt;br /&gt;
You can gzip your submissions before transfer.&lt;br /&gt;
&lt;br /&gt;
The receiving software is somewhat naive and infers the content from the &lt;br /&gt;
file name extension.  Legal extensions are:&lt;br /&gt;
&lt;br /&gt;
* .txt -- text format&lt;br /&gt;
* .txt.gz -- gzip compressed text format&lt;br /&gt;
* .csv -- csv format&lt;br /&gt;
* .csv.gz -- gzip compressed csv format&lt;br /&gt;
&lt;br /&gt;
Make sure you follow these conventions.&lt;br /&gt;
&lt;br /&gt;
You can also upload ZIP archives of such files.   The only legal extension here is zip (lower case!).&lt;br /&gt;
&lt;br /&gt;
=== Automatic Uploads ===&lt;br /&gt;
&lt;br /&gt;
Of course, manual uploads will become quite tedious.  Therefore, we provide an&lt;br /&gt;
automatic upload facility.  While you can use anything that can do HTTP uploads&lt;br /&gt;
(your the file goes into the inFile key, and you must give a __nevow_form__ key&lt;br /&gt;
with the value upload), [http://vo.uni-hd.de/lightmeter/q/upload/static/src/uploadLM.py  this python script] does what you want (including&lt;br /&gt;
automatic transfer compression).  The program is written for python 2.x; unless you have a ''very'' good reason, you should not use python 3.x just yet, and if you have one, please feed back the (minor) patches to make the uploader work with 3.x (while keeping it ok for 2.x).&lt;br /&gt;
&lt;br /&gt;
To use it, put a file named &amp;quot;stationinfo&amp;quot; into the directory from which you&lt;br /&gt;
will upload.  It must contain the station id, a blank, and the access key.&lt;br /&gt;
&lt;br /&gt;
Then, in a shell, say (adapt for the location of your python interpreter and&lt;br /&gt;
the script as necessary)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;python uploadLM.py FILE1 FILE2...&amp;lt;/pre&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
We expect uploading will be included in some of the readout software.&lt;br /&gt;
&lt;br /&gt;
== Calibration ==&lt;br /&gt;
&lt;br /&gt;
Your data will not immediately appear in the database since we first have to&lt;br /&gt;
determine the calibration of your sensor.  To let us do that, please wait for&lt;br /&gt;
clear skies in the morning or evening (while taking data, of course).  After you have uploaded the data &lt;br /&gt;
obtained during such a clear dusk or dawn, notfiy TBD who will then derive&lt;br /&gt;
a calibration from the uploaded data.  Once the calibration is done,&lt;br /&gt;
your data will show up in the database.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A step by step description of the calibration process is described at &lt;br /&gt;
[[Calibration example Linz]].&lt;br /&gt;
&lt;br /&gt;
==Topics for possible preprocessing on upload==&lt;br /&gt;
&lt;br /&gt;
# time-zones --&amp;gt;  UTC with tzdata&lt;br /&gt;
# homogenize decimal separator to &amp;quot;.&amp;quot; (issue for Temperature)&lt;br /&gt;
# correct temperature-readings T-512 for T&amp;gt;256.&lt;br /&gt;
--[[Benutzer:GuentherWuchterl|GuentherWuchterl]] 11:02, 24. Feb. 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
# homogenize date format (Y-m-d vs. d.m.Y)&lt;br /&gt;
# Where?  Who? [from my view: preferably at the user's; I wouldn't want to keep corrected and uncorrected files on my side]&lt;br /&gt;
&lt;br /&gt;
-- Markus 2010-02-24&lt;br /&gt;
&lt;br /&gt;
# Are there top 3 (T-512) has a solution? The problem is known from the manufacturer.&lt;br /&gt;
-- Hagen&lt;br /&gt;
&lt;br /&gt;
==Test queries==&lt;br /&gt;
&lt;br /&gt;
[http://dc.zah.uni-heidelberg.de/__system__/adql/query/form?__nevow_form__=genForm&amp;amp;query=select%20*%20from%20lightmeter.stations&amp;amp;timeout=5&amp;amp;_FORMAT=HTML&amp;amp;submit=Go Stations in DB]&lt;br /&gt;
&lt;br /&gt;
[http://dc.zah.uni-heidelberg.de/lightmeter/q/weather/form?__nevow_form__=genForm&amp;amp;date__day=10&amp;amp;date__month=10&amp;amp;date__year=2009&amp;amp;time=05%3A00%3A00&amp;amp;within=1000&amp;amp;_DBOPTIONS_ORDER=&amp;amp;_DBOPTIONS_LIMIT=100&amp;amp;_FORMAT=HTML&amp;amp;submit=Go Test query at GVO - to plot data scroll down and select VOplot as format]&lt;br /&gt;
&lt;br /&gt;
[http://dc.zah.uni-heidelberg.de/lightmeter/q/upload/static/ Station uploads]&lt;br /&gt;
&lt;br /&gt;
==Examples for how to use GAVO from other fields==&lt;br /&gt;
&lt;br /&gt;
   http://wwwas.oats.inaf.it/aidawp5/index_eng.html?fsize=medium&lt;br /&gt;
&lt;br /&gt;
   e.g.: Asteroids in the Solar System &lt;br /&gt;
         http://wwwas.oats.inaf.it/aidawp5/download/eng_es9_asteroids.pdf&lt;/div&gt;</summary>
		<author><name>GuentherWuchterl</name></author>
	</entry>
</feed>