diff --git a/ARMDataObservations.ipynb b/ARMDataObservations.ipynb new file mode 100644 index 0000000..793193d --- /dev/null +++ b/ARMDataObservations.ipynb @@ -0,0 +1,1305 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "id": "51efaf5d-25c0-4c1d-98e9-94b92d98ee6e", + "metadata": {}, + "outputs": [], + "source": [ + "import act\n", + "import numpy as np\n", + "import xarray as xr\n", + "import matplotlib.pyplot as plt" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "id": "4000c384-6758-43df-87dc-794a124bc669", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "[DOWNLOADING] sgpaosmetE13.a1.20190404.000000.nc\n", + "\n", + "If you use these data to prepare a publication, please cite:\n", + "\n", + "Kyrouac, J., Springston, S., & Tuftedal, M. Meteorological Measurements\n", + "associated with the Aerosol Observing System (AOSMET). Atmospheric Radiation\n", + "Measurement (ARM) User Facility. https://doi.org/10.5439/1984920\n", + "\n" + ] + } + ], + "source": [ + "# Set your username and token here!\n", + "username = 'xmansoura'\n", + "token = '77da82486bcd2f4b'\n", + "\n", + "# Set the datastream and start/enddates\n", + "datastream = 'sgpaosmetE13.a1'\n", + "startdate = '2019-04-04'\n", + "enddate = '2019-04-05'\n", + "\n", + "# Use ACT to easily download the data. Watch for the data citation! Show some support\n", + "# for ARM's instrument experts and cite their data if you use it in a publication\n", + "result = act.discovery.download_arm_data(username, token, datastream, startdate, enddate)" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "id": "758a2fe9-3431-4a9b-ac20-50a2afdf9c0f", + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "ERROR 1: PROJ: proj_create_from_database: Open of /opt/conda/share/proj failed\n" + ] + }, + { + "data": { + "text/html": [ + "
<xarray.Dataset> Size: 6MB\n", + "Dimensions: (time: 86399)\n", + "Coordinates:\n", + " * time (time) datetime64[ns] 691kB 2019-04-04T00:00:00.2200...\n", + "Data variables: (12/17)\n", + " base_time datetime64[ns] 8B 2019-04-04\n", + " time_offset (time) datetime64[ns] 691kB 2019-04-04T00:00:00.2200...\n", + " rh_ambient (time) float32 346kB dask.array<chunksize=(86399,), meta=np.ndarray>\n", + " temperature_ambient (time) float32 346kB dask.array<chunksize=(86399,), meta=np.ndarray>\n", + " pressure_ambient (time) float32 346kB dask.array<chunksize=(86399,), meta=np.ndarray>\n", + " wind_speed (time) float32 346kB dask.array<chunksize=(86399,), meta=np.ndarray>\n", + " ... ...\n", + " heater_volts (time) float32 346kB dask.array<chunksize=(86399,), meta=np.ndarray>\n", + " supply_volts (time) float32 346kB dask.array<chunksize=(86399,), meta=np.ndarray>\n", + " ref_volts (time) float32 346kB dask.array<chunksize=(86399,), meta=np.ndarray>\n", + " lat float32 4B ...\n", + " lon float32 4B ...\n", + " alt float32 4B ...\n", + "Attributes: (12/23)\n", + " command_line: aosmet_ingest -s sgp -f E13\n", + " Conventions: ARM-1.2\n", + " process_version: ingest-aosmet-1.0-0.el6\n", + " dod_version: aosmet-a1-2.2\n", + " input_source: /data/collection/sgp/sgpaosmetE13.00/sgpaosE...\n", + " site_id: sgp\n", + " ... ...\n", + " doi: 10.5439/1325987\n", + " history: created by user dsmgr on machine ruby at 201...\n", + " _file_dates: ['20190404']\n", + " _file_times: ['000000']\n", + " _datastream: sgpaosmetE13.a1\n", + " _arm_standards_flag: 1
<xarray.Dataset> Size: 72GB\n", + "Dimensions: (Time: 91, bottom_top: 226, bottom_top_stag: 227,\n", + " south_north: 250, west_east: 250, west_east_stag: 251,\n", + " south_north_stag: 251)\n", + "Coordinates:\n", + " XTIME (Time) datetime64[ns] 728B ...\n", + "Dimensions without coordinates: Time, bottom_top, bottom_top_stag, south_north,\n", + " west_east, west_east_stag, south_north_stag\n", + "Data variables: (12/179)\n", + " Times (Time) |S19 2kB ...\n", + " CST_CLDLOW (Time) float32 364B ...\n", + " CST_CLDTOT (Time) float32 364B ...\n", + " CST_LWP (Time) float32 364B ...\n", + " CST_IWP (Time) float32 364B ...\n", + " CST_PRECW (Time) float32 364B ...\n", + " ... ...\n", + " CSV_IWC (Time, bottom_top, south_north, west_east) float32 5GB ...\n", + " CSV_CLDFRAC (Time, bottom_top, south_north, west_east) float32 5GB ...\n", + " CSS_LWP (Time, south_north, west_east) float32 23MB ...\n", + " CSS_IWP (Time, south_north, west_east) float32 23MB ...\n", + " CSS_CLDTOT (Time, south_north, west_east) float32 23MB ...\n", + " CSS_CLDLOW (Time, south_north, west_east) float32 23MB ...\n", + "Attributes: (12/96)\n", + " TITLE: OUTPUT FROM WRF V3.8.1 MODEL\n", + " START_DATE: 2019-04-04_12:00:00\n", + " WEST-EAST_GRID_DIMENSION: 251\n", + " SOUTH-NORTH_GRID_DIMENSION: 251\n", + " BOTTOM-TOP_GRID_DIMENSION: 227\n", + " DX: 100.0\n", + " ... ...\n", + " config_aerosol: NA\n", + " config_forecast_time: 15.0 h\n", + " config_boundary_method: Periodic\n", + " config_microphysics: Thompson (mp_physics=8)\n", + " config_nickname: runlas20190404v1addhm\n", + " simulation_origin_host: cumulus-login2.ccs.ornl.gov
<xarray.Dataset> Size: 6MB\n", + "Dimensions: (time: 86399)\n", + "Coordinates:\n", + " * time (time) datetime64[ns] 691kB 2019-04-04T00:00:00.2200...\n", + "Data variables: (12/17)\n", + " base_time datetime64[ns] 8B 2019-04-04\n", + " time_offset (time) datetime64[ns] 691kB 2019-04-04T00:00:00.2200...\n", + " rh_ambient (time) float32 346kB dask.array<chunksize=(86399,), meta=np.ndarray>\n", + " temperature_ambient (time) float32 346kB dask.array<chunksize=(86399,), meta=np.ndarray>\n", + " pressure_ambient (time) float32 346kB dask.array<chunksize=(86399,), meta=np.ndarray>\n", + " wind_speed (time) float32 346kB dask.array<chunksize=(86399,), meta=np.ndarray>\n", + " ... ...\n", + " heater_volts (time) float32 346kB dask.array<chunksize=(86399,), meta=np.ndarray>\n", + " supply_volts (time) float32 346kB dask.array<chunksize=(86399,), meta=np.ndarray>\n", + " ref_volts (time) float32 346kB dask.array<chunksize=(86399,), meta=np.ndarray>\n", + " lat float32 4B ...\n", + " lon float32 4B ...\n", + " alt float32 4B ...\n", + "Attributes: (12/23)\n", + " command_line: aosmet_ingest -s sgp -f E13\n", + " Conventions: ARM-1.2\n", + " process_version: ingest-aosmet-1.0-0.el6\n", + " dod_version: aosmet-a1-2.2\n", + " input_source: /data/collection/sgp/sgpaosmetE13.00/sgpaosE...\n", + " site_id: sgp\n", + " ... ...\n", + " doi: 10.5439/1325987\n", + " history: created by user dsmgr on machine ruby at 201...\n", + " _file_dates: ['20190404']\n", + " _file_times: ['000000']\n", + " _datastream: sgpaosmetE13.a1\n", + " _arm_standards_flag: 1