Dropsondes#
The following example demonstrates the use of the data from the dropsondes launched from HALO during HALO-AC3.
If you have questions or if you would like to use the data for a publication, please don’t hesitate to get in contact with the dataset authors as stated in the dataset attributes contact
or author
.
Data access#
Some of the data, like the preliminary data of the HALO-(AC)3 campaign, is stored on the (AC)3 nextcloud server. This requires username and password as credentials (registration) that need to be loaded from environment variables.
import os
from dotenv import load_dotenv
load_dotenv()
ac3cloud_username = os.environ['AC3_USER']
ac3cloud_password = os.environ['AC3_PASSWORD']
credentials = dict(user=ac3cloud_username, password=ac3cloud_password)
# local caching
kwds = {'simplecache': dict(
cache_storage=os.environ['INTAKE_CACHE'],
same_names=True
)}
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
Cell In[1], line 3
1 import os
----> 3 from dotenv import load_dotenv
5 load_dotenv()
7 ac3cloud_username = os.environ['AC3_USER']
ModuleNotFoundError: No module named 'dotenv'
To analyse the data they first have to be loaded by importing the (AC)3 airborne module and load the meta data catalog. To do so, the ac3airborne package has to be installed. More information on how to do that and about the catalog can be found here.
import ac3airborne
Show available data sets
cat = ac3airborne.get_intake_catalog()
list(cat['HALO-AC3']['HALO'])
['BAHAMAS',
'BACARDI',
'DROPSONDES',
'GPS_INS',
'HAMP_KV',
'HAMP_11990',
'HAMP_183',
'HAMP_MIRA',
'SMART']
Get the flight segments. We need to load an older version that includes the HALO-AC3 flights. The version labeled latest only holds flights from campaigns pre HALO-AC3.
meta = ac3airborne.get_flight_segments()
flight = 'HALO-AC3_HALO_RF03'
Load GPS and INS recorded by the SMART instrument and get takeoff and landing times.
gps_ins = cat['HALO-AC3']['HALO']['GPS_INS'][flight](user=ac3cloud_username,password=ac3cloud_password).to_dask()
takeoff = meta['HALO-AC3']['HALO'][flight]['takeoff']
landing = meta['HALO-AC3']['HALO'][flight]['landing']
Invalid MIT-MAGIC-COOKIE-1 key