Due to a shift in policy, from 0900 GMT on Wednesday 14th July 2021, we will be disabling ssh access to the server for external users. External users who wish to continue to access code repositories on the server will need to switch to using https. This can be accomplished in the following way: 1) On the repo on gitlab, use the clone dialogue and select ‘Clone with HTTPS’ to get the address of the repo; 2) From within the checkout of your repo run: $ git remote set-url origin HTTPS_ADDRESS. Here, replace HTTPS_ADDRESS with the address you have just copied from GitLab. Pulls and pushes will now require you to enter a username and password rather than using a ssh key. If you would prefer not to enter a password each time, you might consider caching your login credentials.

Commit 99e82ee0 authored by Pierre Cazenave's avatar Pierre Cazenave

Add a map of the time series locations.

parent 0515a3f1
...@@ -8,6 +8,7 @@ The model grids must match exactly in the different model runs. ...@@ -8,6 +8,7 @@ The model grids must match exactly in the different model runs.
import os import os
import glob import glob
import string
import numpy as np import numpy as np
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
...@@ -201,6 +202,23 @@ if __name__ == '__main__': ...@@ -201,6 +202,23 @@ if __name__ == '__main__':
# we've got observations. # we've got observations.
F, valid_indices = timeseries(conf, sites) F, valid_indices = timeseries(conf, sites)
labels = ['{})'.format(s) for s in list(string.ascii_lowercase)]
# Plot a map.
FG = ncread(fvcom[0], vars=('lon', 'lat', 'h', 'nv'))
fig0 = plt.figure(figsize=(10, 7))
ax0 = fig0.add_subplot(1, 1, 1)
tp0 = ax0.tripcolor(FG['lon'], FG['lat'], FG['nv'].transpose() - 1, -FG['h'])
pt0 = ax0.plot(F[names[0]]['lon'], F[names[0]]['lat'], 'wo')
for ii, p in enumerate(valid_indices):
ax0.text(F[names[0]]['lon'][p], F[names[0]]['lat'][p],
labels[ii % len(labels)], color='w')
cb0 = fig0.colorbar(tp0)
cb0.set_label('Depth (m)')
ax0.axis('equal')
fig0.tight_layout()
fig0.show()
# Fix number formatting. # Fix number formatting.
date_fmt = DateFormatter('%m') date_fmt = DateFormatter('%m')
formatter = ScalarFormatter(useOffset=False) formatter = ScalarFormatter(useOffset=False)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment