![]() |
The eSWua RESTful Web service is based on the PHP-CRUD-API project (https://github.com/mevdschee/php-crud-api).
The requests to the web service return the desired data in the JSON interchange format.
DATA POLICY: All the data available through the different services are distributed under the Creative Commons Attribution 4.0 International (CC BY 4.0).The eSWua datasets will be provided soon with the DOIs, in the meantime we kindly ask you to acknowledge the "eSWua system (www.eswua.ingv.it) owned by the Istituto Nazionale di Geofisica e Vulcanologia (INGV) and operated by the Upper Atmosphere Physics and Radiopropagation group.".
DATA DOWNLOAD LIMIT: the downloads are limited to a certain number of record at once; the maximum timespan for a single query depends on the specific instruments and on the number of the fields/parameters queried (approx. 1 day for raw ionograms, TEC maps and full parameters GNSS scintillation data, several days for requests with less parameters). When a query requires more than 1 minutes the service will stop the execution and the requests will fail; in this case, consider to reduce the temporal range/number of parameters or to code your own script to run consecutive queries to cover the whole timespan.
A description of the istruments adopted by the INGV ionospheric network is available here. A list of the station/istruments of the network is available here
Web service endpoint: http://ws-eswua.rm.ingv.it/
The following tables of the eSWua Scintillation database are accessible through the web service:
| wsstation
| wsdmc0p
| wsdmc0s
| wsdmc1s
| wsdmc2s
| wskil0n
| wslam0s
| wslam0p
| wsnic0p
| wslyb0s
| wslyb0p
| wsmzs0p
| wsbtn0s
| wsnya0p
| wsnya1p
| wsnya1s
| wsnya0s
| wsnya1s
| wssan0p
| wshan0p
| wssao0p
The table wsstation contains the list of all the INGV GNSS receivers for scintillation and TEC monitor and it has the following fields:
| id
| code
| filecode
| name
| lat
| lon
| h
| area
| description
| fk_instrument
| modified
| instrument
The following tables contains the data for the different GNSS scintillation receivers:
Septentrio PolaRx5S/PolaRxS:
Tables/station code: wsdmc0p, wslam0p, wsnic0p, wslyb0p, wsmzs0p, wsnya0p, wsnya1p, wssan0p, wssao0p, wshan0p
Fields/parameters of each table:
FIELD ----> DESCRIPTION
dt ----> measure time UTC
svid ----> satellite id number
rxstate ----> Value of the RxState field of the ReceiverStatus SBF block
azimuth ----> SV Azimuth
elevation ----> SV Elevation
averagel1 ----> C/N 0: Average Sig1 C/N0 over the last minute (dB-Hz)
totals4l1 ----> Total S4 on Sig1 (dimensionless)
corrections4l1 ----> Correction to total S4 on Sig1 (thermal noise component only)(dimensionless)
phi01l1 ----> Phi01 on Sig1, 1-second phase sigma (radians)
phi03l1 ----> Phi03 on Sig1, 3-second phase sigma (radians)
phi10l1 ----> Phi10 on Sig1, 10-second phase sigma (radians)
phi30l1 ----> Phi30 on Sig1, 30-second phase sigma (radians)
phi60l1slant ----> Phi60 on Sig1, 60-second phase sigma (radians)
avgccdl1 ----> AvgCCD on Sig1, average of code/carrier divergence (meters)
sigmaccdl1 ----> SigmaCCD on Sig1, standard deviation of code/carrier divergence(meters)
tec45 ----> TEC at TOW - 45 seconds (TECU)
dtec60_45 ----> dTEC from TOW - 60s to TOW - 45s (TECU)
tec30 ----> TEC at TOW - 30 seconds (TECU)
dtec45_30 ----> dTEC from TOW - 45s to TOW - 30s (TECU)
tec15 ----> TEC at TOW - 15 seconds (TECU)
dtec30_15 ----> dTEC from TOW - 30s to TOW - 15s (TECU)
tec0 ----> TEC at TOW (TECU)
dtec0 ----> dTEC from TOW - 15s to TOW (TECU)
locktimel1 ----> Lock time on the second frequency used for the TEC computation(seconds)
reserved ----> sbf2ismr version number
2ndlocktime ----> Lock time on the second frequency used for the TEC computation(seconds)
avgcn2freqtec ----> Averaged C/N0 of second frequency used for the TEC computation (dB-Hz)
si_l1_29 ----> SI Index on
Sig1:(10log10(Pmax)-10log10(Pmin))/(10log10(Pmax)+10log10(Pmin))(dimensionless)
si_l1_30 ----> SI Index on Sig1, numerator only: 10log10(Pmax)-10log10(Pmin) (dB)
pl1 ----> p on Sig1, spectral slope of detrended phase in the 0.1 to 25Hz range (dimensionless)
avg_c_n0_l2c ----> Average Sig2 C/N0 over the last minute (dB-Hz)
totals4_l2c ----> Total S4 on Sig2 (dimensionless)
correctionS4_L2C ----> Correction to total S4 on Sig2 (thermal noise component only) (dimensionless)
phi01_l2c ----> Phi01 on Sig2, 1-second phase sigma (radians)
phi03_l2c ----> Phi03 on Sig2, 3-second phase sigma (radians)
phi10_l2c ----> Phi010 on Sig2, 10-second phase sigma (radians)
phi30_l2c ----> Phi30 on Sig2, 30-second phase sigma (radians)
phi60_l2c ----> Phi60 on Sig2, 60-second phase sigma (radians)
avgccd_l2c ----> AvgCCD on Sig2, average of code/carrier divergence (meters)
sigmaccd_l2c ----> SigmaCCD on Sig2, standard deviation of code/carrier divergence (meters)
locktime_l2c ----> Sig2 lock time (seconds)
si_l2c_43 ----> SI Index on Sig2 (dimensionless)
si_l2c_44 ----> SI Index on Sig2, numerator only (dB)
p_l2c ----> p on Sig2, phase spectral slope in the 0.1 to 25Hz range (dimensionless)
avg_c_n0_l5 ----> Average Sig3 C/N0 over the last minute (dB-Hz)
totals4_l5 ----> Total S4 on Sig3 (dimensionless)
corrections4_l5 ----> Correction to total S4 on Sig3 (thermal noise component only) (dimensionless)
phi01_l5 ----> Phi01 on Sig3, 1-second phase sigma (radians)
phi03_l5 ----> Phi03 on Sig3, 3-second phase sigma (radians)
phi10_l5 ----> Phi10 on Sig3, 10-second phase sigma (radians)
phi30_l5 ----> Phi30 on Sig3, 30-second phase sigma (radians)
phi60_l5 ----> Phi60 on Sig3, 60-second phase sigma (radians)
avgccd_l5 ----> AvgCCD on Sig3, average of code/carrier divergence (meters)
sigmaccd_l5 ----> SigmaCCD on Sig3, standard deviation of code/carrier divergence(meters)
locktime_l5 ----> Sig3 lock time (seconds)
si_l5_57 ----> SI Index on Sig3 (dimensionless)
si_l5_58 ----> SI Index on Sig3, numerator only (dB)
p_l5 ----> p on Sig3, phase spectral slope in the 0.1 to 25Hz range (dimensionless)
t_l1 ----> T on Sig1, phase power spectral density at 1 Hz (rad^2/Hz)
t_l2c ----> T on Sig2, phase power spectral density at 1 Hz (rad^2/Hz)
t_l5 ----> T on Sig3, phase power spectral density at 1 Hz (rad^2/Hz)
fk_file ----> reference to file table
modified ----> Last Review
ipp_lat ----> Latitude of the Ionospheric Pierce Point at 350 km
ipp_lon ----> Longitude of the Ionospheric Pierce Point at 350 km
s4_l1_vert ----> Verticalized s4 index on the first frequency
phi60_l1_vert ----> Verticalized sigmaphi index on the first frequency
stec ----> Slant Total Electron Content
vtec ----> Vertical Total Electron Content
s4_l1_slant ----> Slant s4 index on the first frequecny
s4_l2_vert ----> Vertical s4 index on the second frequency
phi60_l2_vert ----> Verticalized sigmaphi index on the second frequency
s4_l2_slant ----> Slant s4 index on the second frequecny
phi60_l5_vert ----> Verticalized sigmaphi index on the third frequency
s4_l5_slant ----> Slant s4 index on the third frequecny
PRN ----> Satellite constellation and number (G: GPS; R: Glonass; S: SBAS block1; E: GALILEO; C:Beidu; Q:
QZSS; I: IRNSS)
NovAtel GSV4004:
Tables/station code: wsdmc0s, wsdmc1s, wsdmc2s, wsnya1s, wsbtn0s, wsnya0s, wsnya1s, wslyb0s, wslam0s
Fields/parameters of each table:
FIELD ----> DESCRIPTION
dt ----> measure time UTC
svid ----> satellite id number
rxstate ----> Value of the RxState field of the ReceiverStatus SBF block
azimuth ----> SV Azimuth
elevation ----> SV Elevation
averagel1 ----> C/N 0: Average Sig1 C/N0 over the last minute (dB-Hz)
totals4l1 ----> Total S4 on Sig1 (dimensionless)
corrections4l1 ----> Correction to total S4 on Sig1 (thermal noise component only)(dimensionless)
phi01l1 ----> Phi01 on Sig1, 1-second phase sigma (radians)
phi03l1 ----> Phi03 on Sig1, 3-second phase sigma (radians)
phi10l1 ----> Phi10 on Sig1, 10-second phase sigma (radians)
phi30l1 ----> Phi30 on Sig1, 30-second phase sigma (radians)
phi60l1slant ----> Phi60 on Sig1, 60-second phase sigma (radians)
avgccdl1 ----> AvgCCD on Sig1, average of code/carrier divergence (meters)
sigmaccdl1 ----> SigmaCCD on Sig1, standard deviation of code/carrier divergence(meters)
tec45 ----> TEC at TOW - 45 seconds (TECU)
dtec60_45 ----> dTEC from TOW - 60s to TOW - 45s (TECU)
tec30 ----> TEC at TOW - 30 seconds (TECU)
dtec45_30 ----> dTEC from TOW - 45s to TOW - 30s (TECU)
tec15 ----> TEC at TOW - 15 seconds (TECU)
dtec30_15 ----> dTEC from TOW - 30s to TOW - 15s (TECU)
tec0 ----> TEC at TOW (TECU)
dtec0 ----> dTEC from TOW - 15s to TOW (TECU)
locktimel1 ----> Lock time on the second frequency used for the TEC computation(seconds)
chanstatus ----> Channel status
2ndlocktime ----> Lock time on the second frequency used for the TEC computation(seconds)
avgcn2freqtec ----> Averaged C/N0 of second frequency used for the TEC computation (dB-Hz)
fk_file ----> reference to file table
modified ----> Last Review
ipp_lat ----> Latitude of the Ionospheric Pierce Point at 350 km
ipp_lon ----> Longitude of the Ionospheric Pierce Point at 350 km
s4_l1_vert ----> Verticalized s4 index on the first frequency
phi60_l1_vert ----> Verticalized sigmaphi index on the first frequency
stec ----> Slant Total Electron Content
vtec ----> Vertical Total Electron Content
s4_l1_slant ----> Slant s4 index on the first frequecny
PRN ----> satellite constellation and number (G: GPS; R: Glonass; S: SBAS block1; E: GALILEO; C:Beidu; Q:
QZSS; I: IRNSS)
NovAtel GPStation-6:
Table/station code: wskil0n
Fields/parameters of each table:
FIELD ----> DESCRIPTION
dt ----> measure time UTC
svid ----> satellite id number
azimuth ----> SV Azimuth
elevation ----> SV Elevation
averagel1 ----> C/N 0: Average Sig1 C/N0 over the last minute (dB-Hz)
totals4l1 ----> Total S4 on Sig1 (dimensionless)
corrections4l1 ----> Correction to total S4 on Sig1 (thermal noise component only)(dimensionless)
phi01l1 ----> Phi01 on Sig1, 1-second phase sigma (radians)
phi03l1 ----> Phi03 on Sig1, 3-second phase sigma (radians)
phi10l1 ----> Phi10 on Sig1, 10-second phase sigma (radians)
phi30l1 ----> Phi30 on Sig1, 30-second phase sigma (radians)
phi60l1slant ----> Phi60 on Sig1, 60-second phase sigma (radians)
avgccdl1 ----> AvgCCD on Sig1, average of code/carrier divergence (meters)
sigmaccdl1 ----> SigmaCCD on Sig1, standard deviation of code/carrier divergence(meters)
tec45 ----> TEC at TOW - 45 seconds (TECU)
dtec60_45 ----> dTEC from TOW - 60s to TOW - 45s (TECU)
tec30 ----> TEC at TOW - 30 seconds (TECU)
dtec45_30 ----> dTEC from TOW - 45s to TOW - 30s (TECU)
tec15 ----> TEC at TOW - 15 seconds (TECU)
dtec30_15 ----> dTEC from TOW - 30s to TOW - 15s (TECU)
tec0 ----> TEC at TOW (TECU)
dtec0 ----> dTEC from TOW - 15s to TOW (TECU)
locktimel1 ----> Lock time on the second frequency used for the TEC computation(seconds)
avg_c_n0_l2c ----> Average Sig2 C/N0 over the last minute (dB-Hz)
totals4_l2c ----> Total S4 on Sig2 (dimensionless)
correctionS4_L2C ----> Correction to total S4 on Sig2 (thermal noise component only) (dimensionless)
phi01_l2c ----> Phi01 on Sig2, 1-second phase sigma (radians)
phi03_l2c ----> Phi03 on Sig2, 3-second phase sigma (radians)
phi10_l2c ----> Phi010 on Sig2, 10-second phase sigma (radians)
phi30_l2c ----> Phi30 on Sig2, 30-second phase sigma (radians)
phi60_l2c ----> Phi60 on Sig2, 60-second phase sigma (radians)
avgccd_l2c ----> AvgCCD on Sig2, average of code/carrier divergence (meters)
sigmaccd_l2c ----> SigmaCCD on Sig2, standard deviation of code/carrier divergence (meters)
locktime_l2c ----> Sig2 lock time (seconds)
avg_c_n0_l5 ----> Average Sig3 C/N0 over the last minute (dB-Hz)
totals4_l5 ----> Total S4 on Sig3 (dimensionless)
corrections4_l5 ----> Correction to total S4 on Sig3 (thermal noise component only) (dimensionless)
phi01_l5 ----> Phi01 on Sig3, 1-second phase sigma (radians)
phi03_l5 ----> Phi03 on Sig3, 3-second phase sigma (radians)
phi10_l5 ----> Phi10 on Sig3, 10-second phase sigma (radians)
phi30_l5 ----> Phi30 on Sig3, 30-second phase sigma (radians)
phi60_l5 ----> Phi60 on Sig3, 60-second phase sigma (radians)
avgccd_l5 ----> AvgCCD on Sig3, average of code/carrier divergence (meters)
sigmaccd_l5 ----> SigmaCCD on Sig3, standard deviation of code/carrier divergence(meters)
locktime_l5 ----> Sig3 lock time (seconds)
tec45_2c ----> TEC at TOW - 45 seconds (TECU)
dtec60_45_2c ----> dTEC from TOW - 60s to TOW - 45s (TECU)
tec30_2c ----> TEC at TOW - 30 seconds (TECU)
dtec45_30_2c ----> dTEC from TOW - 45s to TOW - 30s (TECU)
tec15_2c ----> TEC at TOW - 15 seconds (TECU)
dtec30_15_2c ----> dTEC from TOW - 30s to TOW - 15s (TECU)
tec0_2c ----> TEC at TOW (TECU)
dtec0_2c ----> dTEC from TOW - 15s to TOW (TECU)
fk_file ----> reference to file table
modified ----> Last Review
ipp_lat ----> Latitude of the Ionospheric Pierce Point at 350 km
ipp_lon ----> Longitude of the Ionospheric Pierce Point at 350 km
s4_l1_vert ----> Verticalized s4 index on the first frequency
phi60_l1_vert ----> Verticalized sigmaphi index on the first frequency
stec ----> Slant Total Electron Content
vtec ----> Vertical Total Electron Content
s4_l1_slant ----> Slant s4 index on the first frequecny
s4_l2_vert ----> Vertical s4 index on the second frequency
phi60_l2_vert ----> Verticalized sigmaphi index on the second frequency
s4_l2_slant ----> Slant s4 index on the second frequecny
phi60_l5_vert ----> Verticalized sigmaphi index on the third frequency
s4_l5_slant ----> Slant s4 index on the third frequecny
PRN ----> satellite constellation and number (G: GPS; R: Glonass; S: SBAS block1; E: GALILEO; C:Beidu; Q:
QZSS; I: IRNSS)
The following tables of the eSWua Ionosondes database are accessible through the web service:
| station
| rm041_auto
| rm041_rev
| rm041_rdf
| gm037_auto
| gm037_rev
| gm037_rdf
| bbj3r_auto
| bbj3r_rdf
| tuj2O_auto
| tuj2O_rdf
| ro041_auto
The table station contains the list of all the INGV Ionosondes and it has the following fields:
| id
| code
| filecode
| name
| lat
| lon
| h
| area
| description
| fk_instrument
| modified
| instrument
The tables "station_code"_auto contain the autoscaled value and the reconstructed
traces,
the tables "station_code"_rdf contain the raw ionograms, the tables
"station_code"_rev contain the manually validated parameter.
The following tables contain the data for the different Ionosondes:
AIS INGV IONOSONDE:
Tables/station code: rmo41, gm037, bbj3r, tuj2O
Fields/parameters of the "station_code"_auto tables:
FIELD ----> DESCRIPTION
| dt
| station
| producer
| evaluated
| fof2
| fof2_eval
| muf3000f2
| muf3000f2_eval
| m3000f2
| m3000f2_eval
| fxi
| fxi_eval
| fof1
| fof1_eval
| ftes
| ftes_eval
| h_es
| h_es_eval
| aip_hmf2
| aip_fof2
| aip_fof1
| aip_hmf1
| aip_d1
| aip_foe
| aip_hme
| aip_yme
| aip_h_ve
| aip_ewidth
| aip_deln_ve
| aip_b0
| aip_b1
| tec_bottom
| tec_top
| model_json ----> JSON field with the Electron density profile
| trace_json ----> JSON field with the Reconstructed trace
| modified
Fields/parameters of the "station_code"_rdf tables:
FIELD ----> DESCRIPTION
| dt
| filename
| comment
| freq_start
| freq_end
| freq_step
| height_start
| height_end
| height_step
| att_int
| att_ext
| math_ampli
| high
| low
| int_n
| dsp_ver
| comment_man
| freq_gyro
| mag_inclination
| ionogram ----> JSON field with the raw ionogram
| modified
Fields/parameters of the "station_code"_rev tables:
FIELD ----> DESCRIPTION
| dt
| fof2
| fof2_com
| m3000f2
| m3000f2_com
| muf3000f2
| muf3000f2_com
| fof1
| fof1_com
| muf3000f1
| muf3000f1_com
| h_f2
| h_f2_com
| h_f
| h_f_com
| h_e
| h_e_com
| foe
| foe_com
| h_es
| h_es_com
| foes
| foes_com
| fbes
| fbes_com
| fmin
| fmin_com
| fxi
| fxi_com
| type_es
| type_es_com
| modified
DPS-4 DIGISONDE:
Table/station code: ro041
Fields/parameters of the "station_code"_auto tables:
FIELD ----> DESCRIPTION
| dt
| producer
| fof2
| muf3000f2
| m3000f2
| fxi
| fof1
| h_es
| foes
| foe
| hf
| hf2
| he
| tec
| trace_f2 ----> JSON field with the reconstructed F2 layer trace
| trace_f1 ----> JSON field with the reconstructed F1 layer trace
| trace_e ----> JSON field with the reconstructed E layer trace
| trace_es ----> JSON field with the reconstructed Es layer trace
| model_json ----> JSON field with the electron density profile
The following tables of the eSWua TEC database are accessible through the web service:
| station
| nc_med
| nc_eu
| nc_gl
| ltf_gl
The nc_med table contains the nowcasted TEC data for the mediterranean area, the nc_eu table contains the nowcasted TEC data for the european area, the nc_gl table contains the nowcasted global world TEC data while the ltf_gl table contains the 24-hour forecasted global world TEC data.
Fields/parameters of the nc_med, nc_eu, nc_gl tables:
FIELD ----> DESCRIPTION
| dt
| refresh_rate
| tec_mean
| tec_std
| jfile ----> JSON field with the TEC map
Fields/parameters of the ltf_gl tables:
FIELD ----> DESCRIPTION
| dt
| refresh_rate
| tec_mean
| tec_std
| f_horizon
| r12_eff
| rgec_mean
| rgec_std
| jfile ----> JSON field with the TEC map
Starting index to access data:
http://ws-eswua.rm.ingv.it/scintillation.php/records/ ----> GNSS data
http://ws-eswua.rm.ingv.it/ais.php/records/ ----> Ionosondes data
http://ws-eswua.rm.ingv.it/tecdb.php/records/ ----> TEC data
The following instruction contains examples referred to the scintillation data; the same rules apply to the other databases by changing the web service endpoint and the requested fields.
ACCESS TO SINGLE TABLE
General rule:
http://ws-eswua.rm.ingv.it/scintillation.php/records/table_name
Example:
http://ws-eswua.rm.ingv.it/scintillation.php/records/wsstation
returns the list of all the scintillation instruments and the related fields
ACCESS TO SINGLE/MULTIPLE FIELD OF A TABLE
By default all the fields are selected. With the include string you can select specific fields. You may use a dot to separate the table name from the field name. Multiple fields should be comma separated. An asterisk (*) may be used as a wildcard to indicate all fields. Similar to include you may use the exclude string to remove certain fields.
General rule:
http://ws-eswua.rm.ingv.it/scintillation.php/records/ table_name /?include= field_name1,field_name2,etc
Example1: http://ws-eswua.rm.ingv.it/scintillation.php/records/wsstation?include=code
returns the field code (station code) for all the records of the table wsstationExample2: http://ws-eswua.rm.ingv.it/scintillation.php/records/wsstation?include=lat,lon
returns the lat (latitude) adn lon (longitude) field for all the records of the table wsstation.
ORDER THE RESULTS
With the order string you can sort the results. By default the sort is in ascending order, but by specifying desc this can be reversed:
Example1: http://ws-eswua.rm.ingv.it/scintillation.php/records/wsstation?include=code,id&order=code
the station list (id and code field) will be order by code fieldExample2: http://ws-eswua.rm.ingv.it/scintillation.php/records/wsstation?include=code,id&order=id,desc
the station list (id and code field) will be order (descending) by id field
LIMIT THE NUMBER OF THE RETURNED RECORDS
The size string limits the number of the returned records.
Example1: http://ws-eswua.rm.ingv.it/scintillation.php/records/wsstation?size=3
limits the returned records from table wsstation to 3
APPLY FILTERS AND MULTIPLE CONDITIONS TO THE REQUESTS
Filters provide search functionality, on list calls, using the filter parameters. You need to specify the field name, a comma, the match type, another comma and the value you want to filter on. These are supported match types:
You can negate all filters by prepending a "n" character, so that "eq" becomes "neq".
Example1: http://ws-eswua.rm.ingv.it/scintillation.php/records/wsstation?filter=code,eq,dmc0p
returns only the station where the code is dmc0pExample2: http://ws-eswua.rm.ingv.it/scintillation.php/records/wsdmc0p?filter=dt,bt,2019-10-16 02:45:00,2019-10-16 03:00:00&order=dt
returns all the fields of the table wsdmc0p for the time period between 2019-10-16 02:45:00 and 2019-10-16 03:00:00 ordered by timeExample3: http://ws-eswua.rm.ingv.it/scintillation.php/records/wslyb0p?filter=dt,bt,2019-10-16 02:45:00,2019-10-16 03:00:00&order=dt&include=svid
returns only the field svid for the table wslyb0p for the time period between 2019-10-16 02:45:00 and 2019-10-16 03:00:00 ordered by time
DATA DOWNLOAD LIMIT: the downloads are limited to a certain number of record at once; the maximum timespan for a single query depends on the specific instruments and on the number of the fields/parameters queried. When a query requires more than 1 minutes the service will stop the execution and the requests will fail; in this case, consider to reduce the temporal range or to code your own script to run consecutive queries to cover the whole timespan.
The field dt contains the time in which the measurements are recorded and is in the following format: YY-MM-DD hh-mm-ss
The blank space in the dt field between DD and hh must to be substituted with a %20 in a temporal filtered request
Example: if the chosen dt is: 2019-10-16 02:45:00 the string must be included as 2019-10-16%2002:45:00. (note that some code editor software automatically generate the substitution)
If you want to apply multiple filters and conditions as an AND operator you need to use the & concatenator
Example: http://ws-eswua.rm.ingv.it/scintillation.php/records/wsstation?filter=area,eq,ANTARCTIC&filter=code,sw,dmc
returns the stations located in the ANTARCTIC wich names starts with dmc
If you want to apply multiple filters and conditions as an OR operator you need to enumerate the different filters
Example: http://ws-eswua.rm.ingv.it/scintillation.php/records/wsstation?filter1=area,eq,ANTARCTIC&filter2=area,eq,ARCTIC
returns the stations located in the ANTARCTIC and the ARCTIC area
MATLAB Example
%% Matlab code for retrieve all the fields/parameters from the last temporal record recorded in the database
clc
close all
clear all
%retrieve the scintillation stations/instruments list
stations='http://ws-eswua.rm.ingv.it/scintillation.php/records/wsstation';
station_list=cell2mat(struct2cell(webread(stations))); %%Matlab structure with the stations/instruments list
%% retrieve the complete set of parameters in the last available time instant
station='lyb0p'; %change the station code for retrieve the parameters from other stations
%identification of the last available record
time_limit=sprintf('http://ws-eswua.rm.ingv.it/scintillation.php/records/ws%s?include=dt&order=dt,desc&size=1',station);
time=webread(time_limit); %last available temporal instant
%retireve the parameters
parameter_link=sprintf('http://ws-eswua.rm.ingv.it/scintillation.php/records/ws%s?filter=dt,eq,%s&order=dt',station,time.records.dt);
parameter_list=webread(parameter_link);
parameter=cell2mat(struct2cell(parameter_list)); %Matlab structure with all the parameters for the chosen instrument
Python Example
### Python code for retrieve all the fields/parameters from the last temporal record recorded in the database
import json
import urllib.request
#retrieve the scintillation stations/instruments list
url='http://ws-eswua.rm.ingv.it/scintillation.php/records/wsstation'
webURL=urllib.request.urlopen(url)
station_list=json.loads(webURL.read()) # station_list is a dictionary with the stations/instruments list
#Retrieve the complete set of parameters in the last available time instant ####
station='lyb0p' #change the station code for retrieve the parameters from other stations
#identification of the last available record
url = 'http://ws-eswua.rm.ingv.it/scintillation.php/records/ws{}?include=dt&order=dt,desc&size=1'.format(station)
webURL=urllib.request.urlopen(url)
data=json.loads(webURL.read())
time=data["records"][0]["dt"] #last available record
#retireve the parameters
time=time.replace(" ","%20") #blank spaces needs substitution with "%20"
url='http://ws-eswua.rm.ingv.it/scintillation.php/records/ws{}?filter=dt,eq,{}&order=time'.format(station,time)
webURL=urllib.request.urlopen(url)
parameter=json.loads(webURL.read()) # parameter is a dictionary with the stations/instruments list
print(parameter) #print of the parameters
The following errors may be reported:
Error / HTTPresponse code / Message:
1000 / 404 Not found / Route not found
1001 / 404 Not found / Table not found
1002 / 422 Unprocessable entity / Argument count mismatch
1003 / 404 Not found / Record not found
1004 / 403 Forbidden / Origin is forbidden
1005 / 404 Not found / Column not found
1006 / 409 Conflict / Table already exists
1007 / 409 Conflict / Column already exists
1008 / 422 Unprocessable entity / Cannot read HTTP message
1009 / 409 Conflict / Duplicate key exception
1010 / 409 Conflict / Data integrity violation
1011 / 401 Unauthorized / Authentication required
1012 / 403 Forbidden / Authentication failed
1013 / 422 Unprocessable entity / Input validation failed
1014 / 403 Forbidden / Operation forbidden
1015 / 405 Method not allowed / Operation not supported
1016 / 403 Forbidden / Temporary or permanently blocked
1017 / 403 Forbidden / Bad or missing XSRF token
1018 / 403 Forbidden / Only AJAX requests allowed
1019 / 403 Forbidden / Pagination Forbidden
9999 / 500 Internal server error / Unknown error
"mailto:eswua@ingv.it