Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LIVVkit
lex
Commits
bc16b94c
Commit
bc16b94c
authored
Mar 08, 2018
by
Kennedy, Joseph H
Browse files
Fix bad regridding in dynamics extension and fix bad description
parent
538d7ff9
Changes
3
Hide whitespace changes
Inline
Side-by-side
dynamics/dynamics/cisma_racmo23_scatter_standalone.py
View file @
bc16b94c
...
...
@@ -22,7 +22,7 @@ def make_plot(config=None, out_path='.',
# which were saved in my local directory NCLplot
# ---------------- Read Data -----------------------------------
input_file1
=
os
.
path
.
join
(
racmo_path
,
'
climos/racmo23_GRN_monthly.smb.1980-1999.ANN
.nc'
)
input_file1
=
os
.
path
.
join
(
racmo_path
,
'
racmo23.ANN_with_latlon_smb
.nc'
)
input_file2
=
os
.
path
.
join
(
cism_path
,
'CISM-Albany/postproc/remapped_cism/CISM-Albany.acab.remap2racmo.ANN.nc'
)
input_file3
=
os
.
path
.
join
(
racmo_path
,
'RACMO23_masks_ZGRN11.nc'
)
# --------------------------------------------------------------
...
...
dynamics/dynamics/cisma_racmo23_standalone.py
View file @
bc16b94c
...
...
@@ -19,7 +19,7 @@ def make_plot(config=None, out_path='.',
# which were saved in my local directory NCLplot
# ---------------- Read Data -----------------------------------
input_file1
=
os
.
path
.
join
(
racmo_path
,
'
climos/racmo23_GRN_monthly.smb.1980-1999.ANN
.nc'
)
input_file1
=
os
.
path
.
join
(
racmo_path
,
'
racmo23.ANN_with_latlon_smb
.nc'
)
input_file2
=
os
.
path
.
join
(
cism_path
,
'CISM-Albany/postproc/remapped_cism/CISM-Albany.acab.remap2racmo.ANN.nc'
)
input_file3
=
os
.
path
.
join
(
racmo_path
,
'RACMO23_masks_ZGRN11.nc'
)
input_file4
=
os
.
path
.
join
(
cism_path
,
'CISM-Albany/postproc/albany.out.tstep.ANN_acab.nc'
)
...
...
@@ -68,7 +68,7 @@ def make_plot(config=None, out_path='.',
thk_mask
=
ma
.
masked_less
(
thk
,
0.01
)
cisma_ori
=
ma
.
masked_array
(
cisma_ori
,
mask
=
thk_mask
.
mask
)
#
diff = cisma - racmo
diff
=
cisma
-
racmo
# print(np.max(diff))
# print(np.min(diff))
...
...
@@ -166,22 +166,21 @@ def make_plot(config=None, out_path='.',
res22
.
lbLabelFontHeightF
=
0.02
# Make fonts smaller.
res22
.
pmLabelBarOrthogonalPosF
=
-
0.04
# move label bar closer
res22
.
sfXArray
=
lon
1
res22
.
sfYArray
=
lat
1
res22
.
sfXArray
=
lon
2
res22
.
sfYArray
=
lat
2
racmo_plot
=
Ngl
.
contour
(
wks
,
racmo
,
res1
)
cisma_plot
=
Ngl
.
contour
(
wks
,
cisma_ori
,
res2
)
# diff_plot = Ngl.contour(wks,diff,res22)
diff_plot
=
Ngl
.
contour
(
wks
,
cisma
,
res22
)
diff_plot
=
Ngl
.
contour
(
wks
,
diff
,
res22
)
# Creat multiple figures and draw, which now contains the elevation and temperature
# "[1,3]" indicates 1 row, 3 columns.
#
map_title = ["CISM-A","RACMO23", "CISM-A-RACMO23"]
map_title
=
[
"CISM-A"
,
"RACMO23"
,
"CISM-A-
-
RACMO23"
]
nmap
=
3
plot
=
[]
for
i
in
range
(
nmap
):
#
mres.tiMainString
= map_title[i]
mres
.
tiMainString
=
map_title
[
i
]
plot
.
append
(
Ngl
.
map
(
wks
,
mres
))
# Overlay everything on the map plot.
...
...
dynamics/dynamics_cisma.py
View file @
bc16b94c
...
...
@@ -26,7 +26,7 @@
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"""An analysis of C
E
SM
's cloud cover over Greenland
."""
"""An analysis of C
I
SM
-Albany's Greenland dynamics
."""
from
__future__
import
absolute_import
,
division
,
print_function
,
unicode_literals
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment