Skip to content

Commit

Permalink
deploy: c42663a
Browse files Browse the repository at this point in the history
  • Loading branch information
rcjackson committed Aug 30, 2023
1 parent 79f3159 commit 24dcf42
Show file tree
Hide file tree
Showing 115 changed files with 524 additions and 2,227 deletions.
2 changes: 1 addition & 1 deletion .buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: e43e84fea0f41cfa6a587f7c66ed0010
config: 388f77984bf93b10dce70b295410fec5
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.4"
"version": "3.11.5"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.4"
"version": "3.11.5"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,37 +34,36 @@
berr_grid = pydda.initialization.make_constant_wind_field(
berr_grid, (0.0, 0.0, 0.0))

# Let's make a plot on a map
fig = plt.figure(figsize=(7, 3))

pydda.vis.plot_xz_xsection_streamlines(
[cpol_grid, berr_grid], bg_grid_no=-1, level=50, w_vel_contours=[1, 3, 5, 8])
plt.show()

# Let's provide an initial state from the sounding
u_back = sounding[1].u_wind
v_back = sounding[1].v_wind
z_back = sounding[1].height
cpol_grid = pydda.initialization.make_wind_field_from_profile(cpol_grid, sounding[1])

new_grids, _ = pydda.retrieval.get_dd_wind_field([cpol_grid, berr_grid],

new_grids, _ = pydda.retrieval.get_dd_wind_field([cpol_grid, berr_grid],
u_back=u_back, v_back=v_back, z_back=z_back,
Co=10.0, Cm=4096.0, frz=5000.0, Cb=1e-6,
mask_outside_opt=False, wind_tol=0.2,
Co=1.0, Cm=64.0, frz=5000.0, Cb=1e-5,
Cx=1e2, Cy=1e2, Cz=1e2,
mask_outside_opt=False, wind_tol=0.1,
engine="tensorflow")
fig = plt.figure(figsize=(7, 7))

pydda.vis.plot_xz_xsection_streamlines(
new_grids, bg_grid_no=-1, level=50, w_vel_contours=[1, 3, 5, 8])
plt.show()

# Let's see what happens when we use a zero initialization
# This causes there to be convergence in the cone of silence
# This is an artifact that we want to avoid!
# Prescribing winds inside the background through either a constraint
# Or through the initial state will help mitigate this issue.
cpol_grid = pydda.initialization.make_constant_wind_field(
berr_grid, (0.0, 0.0, 0.0))
cpol_grid, (0.0, 0.0, 0.0))
new_grids, _ = pydda.retrieval.get_dd_wind_field([cpol_grid, berr_grid],
u_back=u_back, v_back=v_back, z_back=z_back,
Co=1.0, Cm=128.0, frz=5000.0, Cb=1e-6,
mask_outside_opt=False, wind_tol=0.2,
Co=1.0, Cm=64.0, frz=5000.0, Cb=1e-5,
Cx=1e2, Cy=1e2, Cz=1e2,
mask_outside_opt=False, wind_tol=0.5,
engine="tensorflow")

fig = plt.figure(figsize=(7, 7))
Expand All @@ -74,9 +73,12 @@
plt.show()

# Or, let's make the radar data more important!
cpol_grid = pydda.initialization.make_wind_field_from_profile(cpol_grid, sounding[1])
new_grids, _ = pydda.retrieval.get_dd_wind_field([cpol_grid, berr_grid],
Co=100.0, Cm=128.0, frz=5000.0,
mask_outside_opt=False, wind_tol=0.2,
Co=10.0, Cm=64.0, frz=5000.0,
u_back=u_back, v_back=v_back, z_back=z_back, Cb=1e-5,
Cx=1e2, Cy=1e2, Cz=1e2,
mask_outside_opt=False, wind_tol=0.1,
engine="tensorflow")
fig = plt.figure(figsize=(7, 7))

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"outputs": [],
"source": [
"import pydda\nimport pyart\nimport cartopy.crs as ccrs\nimport matplotlib.pyplot as plt\n\n\nberr_grid = pyart.io.read_grid(pydda.tests.EXAMPLE_RADAR0)\ncpol_grid = pyart.io.read_grid(pydda.tests.EXAMPLE_RADAR1)\n\n# Load our radar data\nsounding = pyart.io.read_arm_sonde(\n pydda.tests.SOUNDING_PATH)\nberr_grid = pydda.initialization.make_constant_wind_field(\n berr_grid, (0.0, 0.0, 0.0))\n\n# Let's make a plot on a map\nfig = plt.figure(figsize=(7, 3))\n\npydda.vis.plot_xz_xsection_streamlines(\n [cpol_grid, berr_grid], bg_grid_no=-1, level=50, w_vel_contours=[1, 3, 5, 8])\nplt.show()\n\n# Let's provide an initial state from the sounding\nu_back = sounding[1].u_wind\nv_back = sounding[1].v_wind\nz_back = sounding[1].height\ncpol_grid = pydda.initialization.make_wind_field_from_profile(cpol_grid, sounding[1])\n\nnew_grids, _ = pydda.retrieval.get_dd_wind_field([cpol_grid, berr_grid],\n \n u_back=u_back, v_back=v_back, z_back=z_back,\n Co=10.0, Cm=4096.0, frz=5000.0, Cb=1e-6,\n mask_outside_opt=False, wind_tol=0.2,\n engine=\"tensorflow\")\nfig = plt.figure(figsize=(7, 7))\n\npydda.vis.plot_xz_xsection_streamlines(\n new_grids, bg_grid_no=-1, level=50, w_vel_contours=[1, 3, 5, 8])\nplt.show()\n# Let's see what happens when we use a zero initialization\ncpol_grid = pydda.initialization.make_constant_wind_field(\n berr_grid, (0.0, 0.0, 0.0)) \nnew_grids, _ = pydda.retrieval.get_dd_wind_field([cpol_grid, berr_grid],\n u_back=u_back, v_back=v_back, z_back=z_back,\n Co=1.0, Cm=128.0, frz=5000.0, Cb=1e-6,\n mask_outside_opt=False, wind_tol=0.2,\n engine=\"tensorflow\")\n\nfig = plt.figure(figsize=(7, 7))\n\npydda.vis.plot_xz_xsection_streamlines(\n new_grids, bg_grid_no=-1, level=50, w_vel_contours=[1, 3, 5, 8])\nplt.show()\n\n# Or, let's make the radar data more important!\nnew_grids, _ = pydda.retrieval.get_dd_wind_field([cpol_grid, berr_grid],\n Co=100.0, Cm=128.0, frz=5000.0,\n mask_outside_opt=False, wind_tol=0.2,\n engine=\"tensorflow\")\nfig = plt.figure(figsize=(7, 7))\n\npydda.vis.plot_xz_xsection_streamlines(\n new_grids, bg_grid_no=-1, level=50, w_vel_contours=[1, 3, 5, 8])\nplt.show()"
"import pydda\nimport pyart\nimport cartopy.crs as ccrs\nimport matplotlib.pyplot as plt\n\n\nberr_grid = pyart.io.read_grid(pydda.tests.EXAMPLE_RADAR0)\ncpol_grid = pyart.io.read_grid(pydda.tests.EXAMPLE_RADAR1)\n\n# Load our radar data\nsounding = pyart.io.read_arm_sonde(\n pydda.tests.SOUNDING_PATH)\nberr_grid = pydda.initialization.make_constant_wind_field(\n berr_grid, (0.0, 0.0, 0.0))\n\n# Let's provide an initial state from the sounding\nu_back = sounding[1].u_wind\nv_back = sounding[1].v_wind\nz_back = sounding[1].height\ncpol_grid = pydda.initialization.make_wind_field_from_profile(cpol_grid, sounding[1])\n\nnew_grids, _ = pydda.retrieval.get_dd_wind_field([cpol_grid, berr_grid], \n u_back=u_back, v_back=v_back, z_back=z_back,\n Co=1.0, Cm=64.0, frz=5000.0, Cb=1e-5,\n Cx=1e2, Cy=1e2, Cz=1e2,\n mask_outside_opt=False, wind_tol=0.1,\n engine=\"tensorflow\")\nfig = plt.figure(figsize=(7, 7))\n\npydda.vis.plot_xz_xsection_streamlines(\n new_grids, bg_grid_no=-1, level=50, w_vel_contours=[1, 3, 5, 8])\nplt.show()\n\n# Let's see what happens when we use a zero initialization\n# This causes there to be convergence in the cone of silence\n# This is an artifact that we want to avoid!\n# Prescribing winds inside the background through either a constraint\n# Or through the initial state will help mitigate this issue.\ncpol_grid = pydda.initialization.make_constant_wind_field(\n cpol_grid, (0.0, 0.0, 0.0)) \nnew_grids, _ = pydda.retrieval.get_dd_wind_field([cpol_grid, berr_grid],\n u_back=u_back, v_back=v_back, z_back=z_back,\n Co=1.0, Cm=64.0, frz=5000.0, Cb=1e-5,\n Cx=1e2, Cy=1e2, Cz=1e2,\n mask_outside_opt=False, wind_tol=0.5,\n engine=\"tensorflow\")\n\nfig = plt.figure(figsize=(7, 7))\n\npydda.vis.plot_xz_xsection_streamlines(\n new_grids, bg_grid_no=-1, level=50, w_vel_contours=[1, 3, 5, 8])\nplt.show()\n\n# Or, let's make the radar data more important!\ncpol_grid = pydda.initialization.make_wind_field_from_profile(cpol_grid, sounding[1])\nnew_grids, _ = pydda.retrieval.get_dd_wind_field([cpol_grid, berr_grid],\n Co=10.0, Cm=64.0, frz=5000.0,\n u_back=u_back, v_back=v_back, z_back=z_back, Cb=1e-5,\n Cx=1e2, Cy=1e2, Cz=1e2,\n mask_outside_opt=False, wind_tol=0.1,\n engine=\"tensorflow\")\nfig = plt.figure(figsize=(7, 7))\n\npydda.vis.plot_xz_xsection_streamlines(\n new_grids, bg_grid_no=-1, level=50, w_vel_contours=[1, 3, 5, 8])\nplt.show()"
]
}
],
Expand All @@ -35,7 +35,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.4"
"version": "3.11.5"
}
},
"nbformat": 4,
Expand Down
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file modified _downloads/ab3f1d02845a1733d70fa1920be9f038/gridding-1.pdf
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.4"
"version": "3.11.5"
}
},
"nbformat": 4,
Expand Down
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/dealiasing_velocities-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/dealiasing_velocities-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/read_radar_data-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/read_radar_data-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_plot_examples_002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_plot_fun_with_constraints_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_plot_fun_with_constraints_002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_plot_fun_with_constraints_003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file modified _images/sphx_glr_plot_fun_with_constraints_thumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_plot_sydney_tornado_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_plot_sydney_tornado_thumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion _modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Overview: module code &#8212; PyDDA 1.3.1 documentation</title>
<title>Overview: module code &#8212; PyDDA 1.4.0 documentation</title>

<!-- Loaded before other Sphinx assets -->
<link href="../_static/styles/theme.css?digest=1999514e3f237ded88cf" rel="stylesheet">
Expand Down
2 changes: 1 addition & 1 deletion _modules/pydda/constraints/model_data.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>pydda.constraints.model_data &#8212; PyDDA 1.3.1 documentation</title>
<title>pydda.constraints.model_data &#8212; PyDDA 1.4.0 documentation</title>

<!-- Loaded before other Sphinx assets -->
<link href="../../../_static/styles/theme.css?digest=1999514e3f237ded88cf" rel="stylesheet">
Expand Down
2 changes: 1 addition & 1 deletion _modules/pydda/constraints/station_data.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>pydda.constraints.station_data &#8212; PyDDA 1.3.1 documentation</title>
<title>pydda.constraints.station_data &#8212; PyDDA 1.4.0 documentation</title>

<!-- Loaded before other Sphinx assets -->
<link href="../../../_static/styles/theme.css?digest=1999514e3f237ded88cf" rel="stylesheet">
Expand Down
Loading

0 comments on commit 24dcf42

Please sign in to comment.