Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
brivas
ORCHESTRA-SST
Commits
88cc733e
Commit
88cc733e
authored
4 years ago
by
Beatriz Recinos
Browse files
Options
Download
Email Patches
Plain Diff
pushing correct version for plot
parent
0fc47e2c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
18 deletions
+3
-18
scripts/plot_cci_buoy_error.py
scripts/plot_cci_buoy_error.py
+3
-3
sst_tools/plot_sst.py
sst_tools/plot_sst.py
+0
-1
sst_tools/utils_sst.py
sst_tools/utils_sst.py
+0
-13
sst_tools/workflow_sst.py
sst_tools/workflow_sst.py
+0
-1
No files found.
scripts/plot_cci_buoy_error.py
View file @
88cc733e
...
...
@@ -123,7 +123,7 @@ for hour in hours_list_to_plot:
xx
=
buoy_data
.
lon
.
values
yy
=
buoy_data
.
lat
.
values
s
=
30
/
buoy_data
.
age
.
values
temp_diff
=
buoy_data
[
'cci_sst
_1x1
'
]
-
buoy_data
[
'cci_sst'
]
temp_diff
=
buoy_data
[
'cci_sst'
]
-
buoy_data
[
'cci_sst
_1x1
'
]
temp
=
temp_diff
.
values
cmap
=
plt
.
get_cmap
(
'PiYG_r'
,
20
)
...
...
@@ -137,8 +137,8 @@ for hour in hours_list_to_plot:
cax
,
kw
=
colorbar
.
make_axes
(
ax
,
location
=
'top'
,
pad
=
0.07
,
aspect
=
30
)
out
=
f
.
colorbar
(
img
,
cax
=
cax
,
**
kw
)
out
.
set_label
(
'Temperature difference ($^{\circ}$C)
\n
'
' CCI-SST mean in a 1x1 gridbox centred at '
'buoy
coords - CCI-SST at buoy
coords'
,
'
CCI-SST at buoy coords -
CCI-SST mean in a 1x1 gridbox centred at '
'buoy coords'
,
size
=
'small'
,
# \n ''cci-sst at buoy coords - cci-sst avg in a 2x2 gridbox \n '
weight
=
'bold'
)
...
...
This diff is collapsed.
Click to expand it.
sst_tools/plot_sst.py
View file @
88cc733e
...
...
@@ -5,7 +5,6 @@ import cartopy.crs as crs
import
cartopy
from
cartopy.mpl.ticker
import
(
LongitudeFormatter
,
LatitudeFormatter
,
LatitudeLocator
)
# Module logger
log
=
logging
.
getLogger
(
__name__
)
...
...
This diff is collapsed.
Click to expand it.
sst_tools/utils_sst.py
View file @
88cc733e
...
...
@@ -4,19 +4,6 @@ import re
import
logging
import
pyreadr
import
pandas
as
pd
import
numpy
as
np
import
xarray
as
xr
# import netCDF4
from
scipy.stats
import
binned_statistic_2d
from
datetime
import
datetime
from
collections
import
defaultdict
import
matplotlib.pyplot
as
plt
from
matplotlib
import
colorbar
import
cartopy.crs
as
crs
import
cartopy
from
cartopy.mpl.ticker
import
(
LongitudeFormatter
,
LatitudeFormatter
,
LatitudeLocator
)
# Module logger
log
=
logging
.
getLogger
(
__name__
)
...
...
This diff is collapsed.
Click to expand it.
sst_tools/workflow_sst.py
View file @
88cc733e
...
...
@@ -5,7 +5,6 @@ import xarray as xr
from
scipy.stats
import
binned_statistic_2d
from
datetime
import
datetime
from
collections
import
defaultdict
# Module logger
log
=
logging
.
getLogger
(
__name__
)
...
...
This diff is collapsed.
Click to expand it.
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