observingClouds / SGFF_NH

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Level 1 dataset: longitude and latitude have _FillValue set to 0 masking this lat/lon as nan

observingClouds opened this issue · comments

Current workaround:

import xarray as xr
xr.open_dataset("SGFF_classifications_w_masks.nc")
ds['longitude'] = ds.longitude.fillna(0)
ds['latitude'] = ds.latitude.fillna(0)
ds.latitude.encoding['_FillValue'] = -999
ds.longitude.encoding['_FillValue'] = -999
ds.to_netcdf("SGFF_classifications_w_masks.nc2")