Commit 974a6783 authored by Beatriz Recinos's avatar Beatriz Recinos
Browse files

added dropnan statement

parent b5220ca8
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment