Skip to content

Commit

Permalink
MNT: Missing files.
Browse files Browse the repository at this point in the history
  • Loading branch information
zssherman committed Dec 2, 2023
1 parent ebf3464 commit dad2450
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
1 change: 0 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ recursive-exclude * *.py[co]
recursive-include act/plotting *.txt

recursive-include docs *.rst conf.py Makefile make.bat
recursive-include act/tests/data *

include versioneer.py
include act/_version.py
Expand Down
30 changes: 15 additions & 15 deletions docs/source/blog_posts/2022/sail_campaign_arm_and_noaa.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@
"outputs": [],
"source": [
"# Read in the .raw file. Spectra data are also downloaded\n",
"obj1_kps = act.io.noaapsl.read_psl_radar_fmcw_moment([result_22_kps[-1], result_23_kps[-1]])\n",
"ds1_kps = act.io.noaapsl.read_psl_radar_fmcw_moment([result_22_kps[-1], result_23_kps[-1]])\n",
"\n",
"# Read in the parsivel files from NOAA's webpage.\n",
"url = ['https://downloads.psl.noaa.gov/psd2/data/realtime/DisdrometerParsivel/Stats/kps/2022/213/kps2221322_stats.txt',\n",
" 'https://downloads.psl.noaa.gov/psd2/data/realtime/DisdrometerParsivel/Stats/kps/2022/213/kps2221323_stats.txt']\n",
"obj2_kps = act.io.noaapsl.read_psl_parsivel(url)"
"ds2_kps = act.io.noaapsl.read_psl_parsivel(url)"
]
},
{
Expand All @@ -123,7 +123,7 @@
"\n",
"# Create display object with both datasets\n",
"display = act.plotting.TimeSeriesDisplay(\n",
" {\"NOAA Site KPS PSL Radar FMCW\": obj1_kps, \"NOAA Site KPS Parsivel\": obj2_kps},\n",
" {\"NOAA Site KPS PSL Radar FMCW\": kps_ds1, \"NOAA Site KPS Parsivel\": kps_ds2},\n",
" subplot_shape=(2,), figsize=(10, 10))\n",
"\n",
"# Plot the subplots\n",
Expand Down Expand Up @@ -176,7 +176,7 @@
"# Index last 2 files for the 22:00 and 23:00 timeframe.\n",
"kazr_files = glob.glob(''.join(['./',ds_kazr,'/*nc']))\n",
"kazr_files[-2:]\n",
"kazr = act.io.arm.read_arm_netcdf(kazr_files[-2:])"
"kazr_ds = act.io.arm.read_arm_netcdf(kazr_files[-2:])"
]
},
{
Expand All @@ -196,7 +196,7 @@
"\n",
"# Index last 2 files for the 22:00 and 23:00 timeframe.\n",
"ld_files = glob.glob(''.join(['./',ds_ld,'/*cdf']))\n",
"ld = act.io.arm.read_arm_netcdf(ld_files[0])"
"ld_ds = act.io.arm.read_arm_netcdf(ld_files[0])"
]
},
{
Expand Down Expand Up @@ -233,8 +233,8 @@
"\n",
"# Create a series display with all 4 datasets\n",
"display = act.plotting.TimeSeriesDisplay(\n",
" {\"NOAA KPS PSL Radar FMCW\": obj1_kps, \"NOAA KPS Parsivel\": obj2_kps,\n",
" \"guckazrcfrgeM1.a1\": kazr, 'gucldM1.b1': ld},\n",
" {\"NOAA KPS PSL Radar FMCW\": kps_ds1, \"NOAA KPS Parsivel\": kps_ds2,\n",
" \"guckazrcfrgeM1.a1\": kazr_ds, 'gucldM1.b1': ld_ds},\n",
" subplot_shape=(2, 2), figsize=(22, 12))\n",
"\n",
"# Set custom 2 line title for space\n",
Expand Down Expand Up @@ -300,16 +300,16 @@
},
"outputs": [],
"source": [
"objs = []\n",
"multi_ds = []\n",
"# Index last 9 files for the 22:00 and 23:00 timeframe and loop through.\n",
"for file in sorted(dl_ppi_files[-9:]):\n",
" obj = act.io.arm.read_arm_netcdf(file)\n",
" ds = act.io.arm.read_arm_netcdf(file)\n",
" # Calculate the winds for each gucdlppi dataset.\n",
" wind_obj = act.retrievals.compute_winds_from_ppi(\n",
" obj, remove_all_missing=True, snr_threshold=0.008)\n",
" objs.append(wind_obj)\n",
" wind_ds = act.retrievals.compute_winds_from_ppi(\n",
" ds, remove_all_missing=True, snr_threshold=0.008)\n",
" multi_ds.append(wind_ds)\n",
"\n",
"wind_obj = xr.merge(objs)"
"wind_ds = xr.merge(multi_ds)"
]
},
{
Expand All @@ -332,8 +332,8 @@
"source": [
"# Create a display object.\n",
"display = act.plotting.TimeSeriesDisplay(\n",
" {\"GUC DLPPI Computed Winds over KAZR\": wind_obj,\n",
" \"guckazrcfrgeM1.a1\": kazr,}, figsize=(20, 10))\n",
" {\"GUC DLPPI Computed Winds over KAZR\": wind_ds,\n",
" \"guckazrcfrgeM1.a1\": kazr_ds,}, figsize=(20, 10))\n",
"\n",
"# Plot the wind barbs overlayed on the KAZR reflectivity\n",
"display.plot('reflectivity', dsname='guckazrcfrgeM1.a1',\n",
Expand Down

0 comments on commit dad2450

Please sign in to comment.