Skip to content
Snippets Groups Projects
Commit e92f0e58 authored by Lionel GUEZ's avatar Lionel GUEZ
Browse files

Add documentation.

parent c9e82401
No related branches found
No related tags found
No related merge requests found
Showing
with 1396 additions and 0 deletions
/*.aux
/*.log
/*.out
/*.pdf
/*.synctex*
/*.toc
/auto/
\ No newline at end of file
call_graph.pdf
degeneracy.pdf
input_output.pdf
m3.pdf
processes.pdf
regions.pdf
window.pdf
sources = window processes m3 call_graph input_output degeneracy
objects := $(addsuffix .pdf, ${sources})
%.pdf: %.gv
dot -Tpdf -o $@ $<
%.pdf: %.odg
unoconv --doctype=graphics $<
all: ${objects}
clean:
rm -f ${objects}
digraph call_graph
{
main -> {get_snapshot successive_overlap non_successive_overlap};
main -> dispatch_snapshot;
non_successive_overlap -> {interpolate_eddy weight};
dispatch_snapshot -> write_eddy;
interpolate_eddy -> write_eddy;
successive_overlap -> weight;
}
\ No newline at end of file
File added
File added
File added
File added
File added
File added
File added
#!/usr/bin/env python3
import netCDF4
from mpl_toolkits import basemap
import jumble
from matplotlib import pyplot as plt
import glob
import itertools
m = basemap.Basemap(llcrnrlon=-30, llcrnrlat=-90, urcrnrlon=60, urcrnrlat = 0)
plt.figure()
m.drawcoastlines()
m.drawmeridians(range(0,361, 15), labels = [0, 0, 0, 1])
m.drawparallels(range(-90,91, 15), labels = [1, 0, 0, 0])
colors = itertools.cycle(['blue', 'orange', 'green', 'red', 'purple', 'brown',
'pink', 'gray', 'olive', 'cyan'])
for filename in glob.glob("h_region_*.nc") + ["h_outermost.nc"]:
with netCDF4.Dataset(filename) as f:
jumble.draw_bbox(f.variables["lon"][0], f.variables["lon"][-1],
f.variables["lat"][0], f.variables["lat"][-1],
colors = [next(colors)], label = filename)
plt.legend(loc = "lower left", bbox_to_anchor = (1, 0.5))
plt.subplots_adjust(right = 0.7)
plt.savefig("regions.pdf")
##plt.show()
File added
File added
File added
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment