1

I am trying to convert sample.csv dataframe - link no NetCDF here is what I did

import xarray as xr
import pandas as pd

dfcsv=pd.read_csv('sample.csv')
dfcsv=dfcsv.set_index(['latitude','longitude','zgodina'])
dfcsvx=dfcsv.to_xarray()
dfcsvx.to_netcdf(path='dxa.nc')

Conversion works fine, but I can't visualize data in NOAA Weather and Climate Toolkit I get following error

enter image description here

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.