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
974a6783
Commit
974a6783
authored
4 years ago
by
Beatriz Recinos
Browse files
Options
Download
Email Patches
Plain Diff
added dropnan statement
parent
b5220ca8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
scripts/coarse_cci_sst.py
scripts/coarse_cci_sst.py
+2
-0
No files found.
scripts/coarse_cci_sst.py
View file @
974a6783
...
...
@@ -64,6 +64,8 @@ xx = xr.DataArray(df.lon.values, dims='z')
cci_sst_in_buoy_cord
=
sst_data
.
analysed_sst
.
interp
(
lat
=
yy
,
lon
=
xx
)
cci_sst_in_buoy_cord
=
cci_sst_in_buoy_cord
.
to_dataframe
().
analysed_sst
.
values
df
=
df
.
assign
(
cci_sst
=
cci_sst_in_buoy_cord
)
# Get rid of NaN values in cci_sst
df
=
df
.
dropna
(
subset
=
[
'cci_sst'
])
# Lets build the gridded product
x
=
df
.
lon
.
values
...
...
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