Accessing environmental data via API calls

The table below shows some commonly used atmospheric data needed to support the safety of the operations or the scheduling of scientific observing blocks. These fields consist of 1-minute averages, except for the barometric pressure field that, which is the instantanous value.

Besides these data fields, there are other data in the ASM database and also other metrics, such as the maximum, the mimimun, or rms values of variables in periods of 1 minute or 20 minutes.

Examples of how to access the ASM data with an URL call:

1. Query the ASM database to extract the seeing data since date 2024-07-29 at 00:00:00 UT.

https://www.eso.org/asm/api/?from=2024-07-29T00:00:00Z&fields=dimm_paranal-fwhm

2. Query the ASM database to extract the seeing data from date 2024-07-29 at 09:00:00 UT to 2024-07-29T10:00:00 (i.e. an specfic period of time).

https://www.eso.org/asm/api/?from=2024-07-29T09:00:00Z&to=2024-07-29T10:00:00Z&fields=dimm_paranal-fwhm

The data output is a JSON data structure (Fig. 1). For the second example the data output includes the time of the measurement (in Unix time in milliseconds) followed by the seeing data (physical units in arcsecs).

{"dimm_paranal-fwhm":[[1722243655000,0.856],[1722243734000,0.813],[1722243813000,0.920],[1722243894000,0.901],[1722243973000,0.954],[1722244052000,0.910],[1722244131000,0.886],[1722244211000,0.968],[1722244290000,0.915],[1722244370000,0.829],[1722244450000,0.746],[1722244529000,0.756],[1722244608000,0.658],[1722244687000,0.726],[1722244766000,0.658],[1722244846000,0.694],[1722244926000,0.771],[1722245005000,0.774],[1722245084000,0.813],[1722245164000,0.793],[1722245243000,0.837],[1722245323000,0.779],[1722245402000,0.843],[1722245481000,0.880],[1722245561000,0.692],[1722245640000,0.761],[1722245720000,0.773],[1722245799000,0.871],[1722245878000,0.761],[1722245958000,0.771],[1722246039000,0.877],[1722246120000,0.881],[1722246200000,0.843],[1722246280000,0.959],[1722246369000,0.949],[1722246449000,1.033],[1722246528000,1.103],[1722246608000,1.065],[1722246687000,0.985],[1722246767000,1.093],[1722246847000,1.112],[1722246926000,1.106],[1722247005000,0.899],[1722247084000,0.897],[1722247163000,0.987]]}

Fig. 1 Example of a JSON data structure

The URL query can be programmed in a python code where the dates for the from and to fields are set dynamically in the code. For instance:

url_= "https://www.eso.org/asm/api/?from=%sZ&to=%sZ&fields= dimm_paranal-fwhm " % (date_fr, date_to)

where date_fr, and date_to are set in the code following the same format shown in the examples above.

Instrument

Field variable name

Physical units

Description

DIMM

 

 

 

 

dimm_paranal-fwhm

arcsecs

Seeing at zenith and 500nm wavelength (whole atmospheric column)

MASS

 

 

 

 

mass_paranal-fwhm

arcsecs

Free atmosphere seeing

 

mass_paranal-tau0

milliseconds

Free atmosphere coherence time of the turbulence

MASS-DIMM

 

 

 

 

mass_paranal-fracgl

fraction

Fraction of the turbulence found in the ground atmospheric layer (first 250 m above surface)

 

mass_paranal-tet0

 

arcsecs

Isoplanatic angle

 

mass_paranal-tau

milliseconds

Coherence time of the turbulence

 

mass_paranal-turb_speed

m/s

Characteristic velocity of the turbulence

WEATHER STATION

 

 

 

 

meteo_paranal-temp1

Celsius

Air temperature at 30m above surface

 

meteo_paranal-tempdew1

Celsius

Dewpooint temperature at 30m above surface

 

meteo_paranal-rhum1

percentage

Relative humidity at 30m above surface

 

meteo_paranal-press_inst

hPa (mbar)

Instantaneous barometric pressure at 2-m above surface

 

meteo_paranal-wind_speed1

m/s

Wind speed at 30m above surface

 

meteo_paranal-wind_dir1

degrees

Wind direction at 30m above surface

LHATPRO Water Vapour Radiometer

 

 

 

 

lhatpro_paranal-pwv0

mm

Integrated precipitable water vapour at zenith, measured with radiometer ESO-01

Table 1 Weather intruments variable names