Observed since 20 Oct, 19:02 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Python Adam API
Adampy allows to retrieve, analyze and download data hosted within the ADAM environment.
virtualenv -p `which python3` venv
source venv/bin/activate
python3 -m pip install --upgrade pip
pip install adampy
The getCollections function returns all available collections in the selected endpoint.
adam.getCollections(endpoint).get_data()
To get the list of collections:
import adampy as adam
collections = adam.getCollections('wcs-eo4sdcr.adamplatform.eu').get_data()
print(collections)
The getImage function returns a numpy array containing the requested image. The image can be saved using Rasterio.
adam.getImage(endpoint, collection, time_t, min_lat = -90, max_lat = 90, min_long = -180, max_long = 180, token = 'None', geometry = 'None', masking = False, fname = 'image.tif').get_data()
Get a global image for a particular time
import adampy as adam
import matplotlib
import matplotlib.pyplot as plt
image, out_meta = adam.getImage('wcs-eo4sdcr.adamplatform.eu', 'Z_CAMS_C_ECMF_PM10_4326_04','2019-03-26T00:00:00').get_data()
plt.subplots(figsize=(13,13))
plt.imshow(image)
Get a bounding box for a particular time
import adampy as adam
import matplotlib
import matplotlib.pyplot as plt
image, out_meta = adam.getImage('wcs-eo4sdcr.adamplatform.eu', 'Z_CAMS_C_ECMF_PM10_4326_04','2019-03-26T00:00:00',10,20,-10,50).get_data()
plt.subplots(figsize=(13,13))
plt.imshow(image)
Get a bounding box for a time range
import adampy as adam
import matplotlib
import matplotlib.pyplot as plt
image, out_meta = adam.getImage('wcs-eo4sdcr.adamplatform.eu', 'Z_CAMS_C_ECMF_PM10_4326_04','2019-03-26T00:00:00,2019-03-27T23:59:59',10,20,-10,50).get_data()
plt.subplots(figsize=(13,13))
plt.imshow(image)
Get a masked image for a time range
import adampy as adam
import matplotlib
import matplotlib.pyplot as plt
image, out_meta = adam.getImage('wcs-eo4sdcr.adamplatform.eu', 'Z_CAMS_C_ECMF_PM10_4326_04','2019-03-26T00:00:00,2019-03-27T23:59:59', geometry = 'polygon.shp', masking = True).get_data()
plt.subplots(figsize=(13,13))
plt.imshow(image)
The getTimeSeries function returns two arrays containing the values and time stamps for the request Latitude and Longitude location.
adam.getTimeSeries(endpoint, collection, time_t, lat, long, token = 'None').get_data()
import adampy as adam
data, times = adam.getTimeSeries('wcs-eo4sdcr.adamplatform.eu', 'ERA-Interim_temp2m_4326_05','2014-03-26T00:00:00,2014-03-30T23:59:59', 25, 60).get_data()
The getAnimation function crates an animated gif of a dataset given a start and end date.
adam.getTimeSeries(endpoint, collection, start_date, end_date, min_lat = -90, max_lat = 90, min_long = -180, max_long = 180, token = 'None', frame_duration = 0.1, legend = False).get_data()
import adampy as adam
from datetime import datetime, timedelta, date
start_date = date(2014,3,1)
end_date = date(2014,3,5)
gif_fname = adam.getAnimation('wcs-eo4sdcr.adamplatform.eu', 'NEXGDDP-pr_4326_025',start_date = start_date, end_date=end_date, frame_duration = 0.3, legend = False).get_data()
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.0.10 | 23 Jan 2020 | 9 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 19:02 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:ea3a0893ae6385655ea718c12932df6e5777191b8b7997d7efe335ab0052661c