!conda install -c conda-forge ncl -y
/bin/bash: conda: command not found
!ncl -V
/bin/bash: ncl: command not found
%%writefile ipython_ncl.ncl
begin
f = addfile("$HOME/work/rectilinear_grid_2D.nc","r")
printVarSummary(f)
t = f->tsurf
printVarSummary(t)
wks_type = "png"
wks_type@wkWidth = 800
wks_type@wkHeight = 800
wks = gsn_open_wks(wks_type,"plot_contour")
res = True
res@gsnMaximize = True
res@cnFillOn = True
res@cnLevelSpacingF = 5
res@tiMainString = "NCL in Deepnote yayy"
plot = gsn_csm_contour_map(wks,t(1,:,:),res)
end
Writing ipython_ncl.ncl
!ncl ipython_ncl.ncl
/bin/bash: ncl: command not found
from IPython.display import Image
Image('img/plot_contour.png')
!du -sh rectilinear_grid_2D.nc
du: cannot access 'rectilinear_grid_2D.nc': No such file or directory
!ncdump -h rectilinear_grid_2D.nc
/bin/bash: ncdump: command not found
!ncdump rectilinear_grid_2D.nc
/bin/bash: ncdump: command not found