%matplotlib inline
import matplotlib.pyplot as plt
import numpy as np
import netCDF4
url = ('http://thredds-test.unidata.ucar.edu/thredds/dodsC/'
'satellite/goes16/GRB16/ABI/CONUS/Channel02/current/'
'OR_ABI-L1b-RadC-M3C02_G16_s20182341637323_e20182341640096_c20182341640138.nc')
ds = netCDF4.Dataset(url)
values = ds.variables['Rad'][:,:]
print(np.count_nonzero(values==-20.289911))
plt.imshow(values)
plt.show()
34547808
!conda list netcdf
# packages in environment at /vortexfs1/usgs/rsignell/miniconda3/envs/netcdf: # # Name Version Build Channel libnetcdf 4.6.1 h5e45101_3 conda-forge netcdf4 1.4.0 py36h62672b6_1 conda-forge
!conda list curl
# packages in environment at /vortexfs1/usgs/rsignell/miniconda3/envs/netcdf: # # Name Version Build Channel curl 7.61.0 h93b3f91_1 conda-forge