I have recently taken up working on Python 3.6 implemented in RStudio using Miniconda and the library reticulate
.
I have installed all the packages that I need using
reticulate::py_install('name of the packages')
when I try to import some .nc data as follow:
import numpy as np
import pandas as pd
import cartopy as cp
from cartopy import crs as ccrs, feature as cfeature
import matplotlib.pyplot as plt
import xarray as xr
import openpyxl
import netCDF4
#%%
adt = xr.open_dataset("G:/Research/ADT.nc")
I get this error:
NameError: name 'netCDF4' is not defined
I have looked at possible solutions, like:
netCDF4 import not being found by Python
but I have installed the package netCDF4
and xarray
as the other ones, which do not give any issue (so far)