Skip to content

Commit

Permalink
Merge pull request #76 from callumrollo/data-subset
Browse files Browse the repository at this point in the history
[FEAT] add subset dataset of sg014 for demo notebook
  • Loading branch information
callumrollo authored Nov 5, 2024
2 parents 7e3c683 + 5028994 commit 272e654
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions glidertest/fetchers.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"sea045_20230530T0832_delayed.nc": "sha256:9a97b5b212e9ad751909e175bc01fdc75fd7b7fd784cc59d8e9f29e8bdfb829f",
"sg015_20050213T230253_delayed.nc": "sha256:ca64e33e9f317e1fc3442e74485a9bf5bb1b4a81b5728e9978847b436e0586ab",
"sg014_20040924T182454_delayed.nc": "sha256:c9fca08ce676573224c04512f4d5bfe251d0419478ee433dfefa03aa70e2eb9a",
"sg014_20040924T182454_delayed_subset.nc": "sha256:0e97a4107364d27364d076ed8007f08c891b2015b439cf524a44612de0a1a2ea",
},
)

Expand Down
11 changes: 6 additions & 5 deletions notebooks/demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@
"source": [
"#ds = fetchers.load_sample_dataset(dataset_name=\"sea055_20220104T1536_delayed.nc\") # Full SeaExplorer mission in the Baltic\n",
"#ds = fetchers.load_sample_dataset(dataset_name=\"sg015_20050213T230253_delayed.nc\") # Seaglider data\n",
"#ds = fetchers.load_sample_dataset(dataset_name=\"sg014_20040924T182454_delayed.nc\") # Full Seaglider mission in the Labrador Sea\n"
"#ds = fetchers.load_sample_dataset(dataset_name=\"sg014_20040924T182454_delayed.nc\") # Full Seaglider mission in the Labrador Sea\n",
"#ds = fetchers.load_sample_dataset(dataset_name=\"sg014_20040924T182454_delayed_subset.nc\") #Subset of a full Seaglider mission in the Labrador Sea\n"
]
},
{
Expand Down Expand Up @@ -103,7 +104,7 @@
"outputs": [],
"source": [
"# Load glider dataset with vertical velocity parameters\n",
"ds_sg014 = fetchers.load_sample_dataset(dataset_name=\"sg014_20040924T182454_delayed.nc\") # Full Seaglider mission in the Labrador Sea\n",
"ds_sg014 = fetchers.load_sample_dataset(dataset_name=\"sg014_20040924T182454_delayed_subset.nc\") # Subset of a full Seaglider mission in the Labrador Sea\n",
"\n",
"# Calculate vertical seawater velocity \n",
"# First, calculate the vertical speed of the glider from the depth data\n",
Expand All @@ -113,8 +114,8 @@
"ds_sg014 = tools.calc_seawater_w(ds_sg014)\n",
"\n",
"# Plot about 20 profiles to see the behaviour of the flight model\n",
"start_prof = 500\n",
"end_prof = 520\n",
"start_prof = 400\n",
"end_prof = 420\n",
"tools.plot_vertical_speeds_with_histograms(ds_sg014, start_prof, end_prof)"
]
},
Expand Down Expand Up @@ -471,7 +472,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.8"
"version": "3.10.12"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 272e654

Please sign in to comment.