Wetting and drying is a needed capability that spans across E3SM component domains. For example, it is needed for
- storm surge modeling and innundation
- ocean and ice sheet cavity interactions
- generalization of the vertical coordinate
#!/usr/bin/env python | |
# Phillip Wolfram | |
# 07/01/2015 | |
from lxml import etree | |
import os | |
from matplotlib.colors import LinearSegmentedColormap | |
def convert_ParaView_xml_to_matplotlib_colormap(fname='FloatPNG_PV44.xml'): |
#!/usr/bin/env python | |
##This script converts the .xml(ParaView format) colormaps into Matplotlib format | |
import sys | |
import matplotlib as mpl | |
import matplotlib.pyplot as plt | |
import numpy as np | |
from lxml import etree | |
## source of this function: http://schubert.atmos.colostate.edu/~cslocum/custom_cmap.html#code | |
def make_cmap(colors, position=None, bit=False): |
#!/usr/bin/env bash | |
convert -delay 20 -loop 0 *png Delaware1DSalinity.gif | |
ffmpeg -framerate 20 -i %04d.png -c:v libx264 -profile:v high -crf 20 -pix_fmt yuv420p Delaware1DSalinity.mp4 |
# EARTH-REGIONAL-MESH.msh; created by JIGSAW VERSION 0.9.4 | |
MSHID=2;EUCLIDEAN-MESH | |
NDIMS=3 | |
POINT=112617 | |
1.1684287100852853e+01;-6.0236149303059090e+00;6.3709864380249719e+03;0 | |
6.3709216045352741e+03;-3.1043080900818374e+01;5.9359913979125984e+00;0 | |
-3.6122848467014235e+00;6.3709583005084933e+03;-2.2765864361323477e+01;0 | |
-6.3708123487438170e+03;4.5774076843861067e+01;1.7197412084069086e+01;0 | |
1.2098490390370162e+00;-6.3709998850932307e+03;-2.0182466105438009e-02;0 | |
-3.6580955549083606e+03;-3.6937968998979632e+03;3.6829122136515689e+03;0 |
""" | |
Template function file. Define new functions using @qgsfunction. | |
When using args="auto" you may define a new variable for each value for the function. | |
feature and parent must always be the last args. | |
To pass a any number of args into a function use args=-1 the first | |
variable will then be a list of values. | |
""" | |
from qgis.core import * | |
from qgis.gui import * |
#!/usr/bin/env python | |
""" | |
Name: compute_transects.py | |
Author: Phillip J. Wolfram, Mark Petersen | |
Computes transport through sections. | |
Example call: | |
./compute_transects.py | |
-k /lustre/scratch3/turquoise/mpeterse/runs/c62n/ocean/global_ocean/EC_60to30km/spin_up/init_step2/EC60to30v3_transect_masks.nc |
all: build run | |
build: | |
gfortran omp_hello.f90 -fopenmp -lgomp | |
f2py -c -m omp_hello omp_hello.f90 --f90flags="-fopenmp" -lgomp | |
run: | |
@echo '********************' | |
@echo 'running pure fortran' | |
@echo '********************' |
<streams> | |
<immutable_stream name="mesh" | |
filename_template="testDel2_year2_restart.nc" | |
input_interval="initial_only" | |
type="input"/> | |
<immutable_stream name="input" | |
filename_template="testDel2_year2_restart.nc" | |
input_interval="initial_only" |
wwvBqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqtqt |