MET-OM / metocean-api

Extract time series of metocean data from global/regional/coastal hindcasts/reanalysis
GNU Lesser General Public License v2.1
4 stars 5 forks source link

Exception on TimeSeries.import_data #11

Closed mhspelt closed 2 months ago

mhspelt commented 7 months ago

I have installed a Python environment in Visual Studio and installed the API library using pip install metocean-api with output

Installing collected packages: pytz, zipp, urllib3, tzdata, toolz, six, pyyaml, pyparsing, pluggy, pillow, packaging, numpy, locket, kiwisolver, iniconfig, idna, fsspec, fonttools, cycler, colorama, cloudpickle, charset-normalizer, certifi, tqdm, requests, python-dateutil, pytest, partd, nco, importlib-metadata, contourpy, click, cftime, pandas, netcdf4, matplotlib, dask, cdsapi, xarray, metocean-api
Successfully installed cdsapi-0.6.1 certifi-2024.2.2 cftime-1.6.3 charset-normalizer-3.3.2 click-8.1.7 cloudpickle-3.0.0 colorama-0.4.6 contourpy-1.2.0 cycler-0.12.1 dask-2024.2.1 fonttools-4.49.0 fsspec-2024.2.0 idna-3.6 importlib-metadata-7.0.1 iniconfig-2.0.0 kiwisolver-1.4.5 locket-1.0.0 matplotlib-3.8.3 metocean-api-1.1.0 nco-1.1.0 netcdf4-1.6.5 numpy-1.26.4 packaging-23.2 pandas-2.2.1 partd-1.4.1 pillow-10.2.0 pluggy-1.4.0 pyparsing-3.1.1 pytest-8.0.2 python-dateutil-2.8.2 pytz-2024.1 pyyaml-6.0.1 requests-2.31.0 six-1.16.0 toolz-0.12.1 tqdm-4.66.2 tzdata-2024.1 urllib3-2.2.1 xarray-2024.2.0 zipp-3.17.0
----- Successfully installed 'metocean-api==1.1.0' -----

Then I run the demo code

from metocean_api import ts
df_ts = ts.TimeSeries(lon=1.320, lat=53.324,
                   start_time='2000-01-01', end_time='2000-03-31' ,
                   product='NORA3_wave_sub')
df_ts.import_data(save_csv=False)
print(df_ts.datafile) 

and on the second line (import_data) I get the following exception

  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2288.0_x64__qbz5n2kfra8p0\Lib\ntpath.py", line 213, in split
    p = os.fspath(p)
        ^^^^^^^^^^^^
TypeError: expected str, bytes or os.PathLike object, not NoneType
The thread 'MainThread' (1) has exited with code 0 (0x0).

Running the following code works fine so the environment seems to be working

import os
p = "test.csv"
p = os.fspath(p)
print(p)
KonstantinChri commented 6 months ago

I suggest installing metocean-api via conda: conda install conda-forge::metocean-api

mhspelt commented 6 months ago

Hi @KonstantinChri thanks for your suggestion. I don't see why it would specifically only work with Conda but I installed it and seem to get a step further.

Now when I execute the literal example from the documentation

df_ts = ts.TimeSeries(lon=1.320, lat=53.324,
                   start_time='2000-01-01', end_time='2000-03-31' ,
                   product='NORA3_wind_wave')

I get

PS P:\CondaTest\MetoceanNO>  p:; cd 'p:\CondaTest\MetoceanNO'; & 'p:\CondaTest\MetoceanNO\.conda\python.exe' 'c:\Users\mhspelt\.vscode\extensions\ms-python.debugpy-2024.2.0-win32-x64\bundled\libs\debugpy\adapter/../..\debugpy\launcher' '52579' '--' 'P:\CondaTest\MetoceanNO\test.py' 
Directory  cache  already exists
https://thredds.met.no/thredds/dodsC/nora3_subset_wave/wave_tser/200001_NORA3wave_sub_time_unlimited.nc
Find nearest point to lon.=1.32,lat.=53.324
Found nearest: lon.=1.335817,lat.=53.324944
Error in calling operator ncks with:
>>> 'p:\CondaTest\MetoceanNO\.conda\Library\bin\ncks' -O -v hs,tp,tm1,tm2,tmp,Pdir,thq,hs_sea,tp_sea,thq_sea,hs_swell,tp_swell,thq_swell,longitude,latitude -d rlon,23.289997 -d rlat,-3.87 '--output=cache\NORA3_wave_sub_lon1.32lat53.324_20000101.nc' <<<
Inputs: https://thredds.met.no/thredds/dodsC/nora3_subset_wave/wave_tser/200001_NORA3wave_sub_time_unlimited.nc
b''
b''
b''
......Retry0.....

I have checked that ncks is installed and available.

Would appreciate if you could help me further debug this.

KonstantinChri commented 6 months ago

It seems that nco is not properly installed in your environment. I suggest uninstall nco and installing it again via conda in the metocean-api environment: conda install conda-forge::nco

mhspelt commented 6 months ago

It seems that nco is not properly installed in your environment. I suggest uninstall nco and installing it again via conda in the metocean-api environment: conda install conda-forge::nco

Thanks! I ran

> conda uninstall nco
Channels:
 - defaults
 - conda-forge
Platform: win-64
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: p:\*****\.conda

  removed specs:
    - nco

The following packages will be REMOVED:

  abseil-cpp-20211102.0-hd77b12b_0
  arrow-cpp-14.0.2-ha81ea56_1
  aws-c-auth-0.6.19-h2bbff1b_0
  aws-c-cal-0.5.20-h2bbff1b_0
  aws-c-common-0.8.5-h2bbff1b_0
  aws-c-compression-0.2.16-h2bbff1b_0
  aws-c-event-stream-0.2.15-hd77b12b_0
  aws-c-http-0.6.25-h2bbff1b_0
  aws-c-io-0.13.10-h2bbff1b_0
  aws-c-mqtt-0.7.13-h2bbff1b_0
  aws-c-s3-0.1.51-h2bbff1b_0
  aws-c-sdkutils-0.1.6-h2bbff1b_0
  aws-checksums-0.1.13-h2bbff1b_0
  aws-crt-cpp-0.18.16-hd77b12b_0
  aws-sdk-cpp-1.10.55-hd77b12b_0
  blas-1.0-mkl
  blosc-1.21.5-hdccc3a2_0
  bokeh-3.3.4-py311h746a85d_0
  boost-cpp-1.82.0-h59b6b97_2
  bottleneck-1.3.7-py311hd7041d2_0
  brotli-1.0.9-h2bbff1b_7
  brotli-bin-1.0.9-h2bbff1b_7
  brotli-python-1.0.9-py311hd77b12b_7
  c-ares-1.19.1-h2bbff1b_0
  cdsapi-0.6.1-pyhd8ed1ab_0
  cftime-1.6.2-py311h5bb9823_0
  charset-normalizer-2.0.4-pyhd3eb1b0_0
  click-8.1.7-py311haa95532_0
  cloudpickle-2.2.1-py311haa95532_0
  colorama-0.4.6-py311haa95532_0
  contourpy-1.2.0-py311h59b6b97_0
  cycler-0.11.0-pyhd3eb1b0_0
  cytoolz-0.12.2-py311h2bbff1b_0
  dask-2023.11.0-py311haa95532_0
  dask-core-2023.11.0-py311haa95532_0
  distributed-2023.11.0-py311haa95532_0
  fonttools-4.25.0-pyhd3eb1b0_0
  freetype-2.12.1-ha860e81_0
  fsspec-2023.10.0-py311haa95532_0
  gflags-2.2.2-hd77b12b_1
  glog-0.5.0-hd77b12b_1
  grpc-cpp-1.48.2-hfe90ff0_1
  gsl-2.7.1-h6051b90_1
  hdf4-4.2.15-h1b1b6ef_5
  hdf5-1.14.3-nompi_h73e8ff5_100
  heapdict-1.0.1-pyhd3eb1b0_0
  idna-3.4-py311haa95532_0
  importlib-metadata-7.0.1-py311haa95532_0
  iniconfig-1.1.1-pyhd3eb1b0_0
  intel-openmp-2023.1.0-h59b6b97_46320
  jinja2-3.1.3-py311haa95532_0
  jpeg-9e-h2bbff1b_1
  kiwisolver-1.4.4-py311hd77b12b_0
  lerc-3.0-hd77b12b_0
  libaec-1.1.2-h63175ca_1
  libblas-3.9.0-1_h8933c1f_netlib
  libboost-1.82.0-h3399ecb_2
  libbrotlicommon-1.0.9-h2bbff1b_7
  libbrotlidec-1.0.9-h2bbff1b_7
  libbrotlienc-1.0.9-h2bbff1b_7
  libcblas-3.9.0-5_hd5c7e75_netlib
  libdeflate-1.17-h2bbff1b_1
  libevent-2.1.12-h56d1f94_1
  libexpat-2.5.0-h63175ca_1
  libiconv-1.17-hcfcfb64_2
  libnetcdf-4.9.2-nompi_h07c049d_113
  libpng-1.6.39-h8cc25b3_0
  libprotobuf-3.20.3-h23ce68f_0
  libthrift-0.15.0-h4364b78_2
  libtiff-4.5.1-hd77b12b_0
  libudunits2-2.2.28-hfda9870_3
  libwebp-base-1.3.2-h2bbff1b_0
  libxml2-2.12.6-hc3477c8_0
  libzip-1.10.1-h1d365fa_3
  locket-1.0.0-py311haa95532_0
  lz4-4.3.2-py311h2bbff1b_0
  lz4-c-1.9.4-h2bbff1b_0
  m2w64-gcc-libgfortran-5.3.0-6
  m2w64-gcc-libs-5.3.0-7
  m2w64-gcc-libs-core-5.3.0-7
  m2w64-gmp-6.1.0-2
  m2w64-libwinpthread-git-5.0.0.4634.697f757-2
  markupsafe-2.1.3-py311h2bbff1b_0
  matplotlib-base-3.8.0-py311hf62ec03_0
  metocean-api-1.1.1-pyhd8ed1ab_0
  mkl-2023.1.0-h6b88ed4_46358
  mkl-service-2.4.0-py311h2bbff1b_1
  mkl_fft-1.3.8-py311h2bbff1b_0
  mkl_random-1.2.4-py311h59b6b97_0
  msgpack-python-1.0.3-py311h59b6b97_0
  msys2-conda-epoch-20160418-1
  munkres-1.1.4-py_0
  nco-5.2.1-h871a938_0
  netcdf4-1.6.5-nompi_py311he019f65_100
  numexpr-2.8.7-py311h1fcbade_0
  numpy-1.26.4-py311hdab7c0b_0
  numpy-base-1.26.4-py311hd01c5d8_0
  openjpeg-2.4.0-h4fc8c34_0
  orc-1.7.4-h623e30f_1
  packaging-23.1-py311haa95532_0
  pandas-2.2.1-py311hea22821_0
  partd-1.4.1-py311haa95532_0
  pillow-10.2.0-py311h2bbff1b_0
  pluggy-1.0.0-py311haa95532_1
  psutil-5.9.0-py311h2bbff1b_0
  pyarrow-14.0.2-py311h847bd2a_0
  pynco-1.1.0-pyhd8ed1ab_1
  pyparsing-3.0.9-py311haa95532_0
  pysocks-1.7.1-py311haa95532_0
  pytest-7.4.0-py311haa95532_0
  python-dateutil-2.8.2-pyhd3eb1b0_0
  python-lmdb-1.4.1-py311hd77b12b_0
  python-tzdata-2023.3-pyhd3eb1b0_0
  python_abi-3.11-2_cp311
  pytz-2023.3.post1-py311haa95532_0
  pyyaml-6.0.1-py311h2bbff1b_0
  re2-2022.04.01-hd77b12b_0
  requests-2.31.0-py311haa95532_1
  six-1.16.0-pyhd3eb1b0_1
  snappy-1.1.10-h6c2663c_1
  sortedcontainers-2.4.0-pyhd3eb1b0_0
  tbb-2021.8.0-h59b6b97_0
  tblib-1.7.0-pyhd3eb1b0_0
  toolz-0.12.0-py311haa95532_0
  tornado-6.3.3-py311h2bbff1b_0
  tqdm-4.65.0-py311h746a85d_0
  urllib3-2.1.0-py311haa95532_1
  utf8proc-2.6.1-h2bbff1b_1
  win_inet_pton-1.1.0-py311haa95532_0
  xarray-2023.6.0-py311haa95532_0
  xyzservices-2022.9.0-py311haa95532_1
  yaml-0.2.5-he774522_0
  zict-3.0.0-py311haa95532_0
  zipp-3.17.0-py311haa95532_0
  zstd-1.5.5-hd43e919_0

Proceed ([y]/n)? y

Preparing transaction: done
Verifying transaction: done
Executing transaction: done

Then

> conda install conda-forge::nco 
Channels:
 - defaults
 - conda-forge
Platform: win-64
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: p:\*****\.conda

  added / updated specs:
    - conda-forge::nco

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    hdf4-4.2.15                |       h5557f11_7         761 KB  conda-forge
    intel-openmp-2024.0.0      |   h57928b3_49841         2.2 MB  conda-forge
    libblas-3.9.0              |     21_win64_mkl         4.8 MB  conda-forge
    libcblas-3.9.0             |     21_win64_mkl         4.8 MB  conda-forge
    libjpeg-turbo-3.0.0        |       hcfcfb64_1         804 KB  conda-forge
    mkl-2024.0.0               |   h66d3029_49657       103.5 MB  conda-forge
    ------------------------------------------------------------
                                           Total:       116.8 MB

The following NEW packages will be INSTALLED:

  blosc              conda-forge/win-64::blosc-1.21.5-hdccc3a2_0
  gsl                pkgs/main/win-64::gsl-2.7.1-h6051b90_1
  hdf4               conda-forge/win-64::hdf4-4.2.15-h5557f11_7
  hdf5               conda-forge/win-64::hdf5-1.14.3-nompi_h73e8ff5_100
  intel-openmp       conda-forge/win-64::intel-openmp-2024.0.0-h57928b3_49841
  libaec             conda-forge/win-64::libaec-1.1.2-h63175ca_1
  libblas            conda-forge/win-64::libblas-3.9.0-21_win64_mkl
  libcblas           conda-forge/win-64::libcblas-3.9.0-21_win64_mkl
  libexpat           conda-forge/win-64::libexpat-2.5.0-h63175ca_1
  libiconv           conda-forge/win-64::libiconv-1.17-hcfcfb64_2
  libjpeg-turbo      conda-forge/win-64::libjpeg-turbo-3.0.0-hcfcfb64_1
  libnetcdf          conda-forge/win-64::libnetcdf-4.9.2-nompi_h07c049d_113
  libudunits2        conda-forge/win-64::libudunits2-2.2.28-hfda9870_3
  libxml2            conda-forge/win-64::libxml2-2.12.6-hc3477c8_0
  libzip             conda-forge/win-64::libzip-1.10.1-h1d365fa_3
  lz4-c              pkgs/main/win-64::lz4-c-1.9.4-h2bbff1b_0
  mkl                conda-forge/win-64::mkl-2024.0.0-h66d3029_49657
  nco                conda-forge/win-64::nco-5.2.1-h871a938_0
  snappy             pkgs/main/win-64::snappy-1.1.10-h6c2663c_1
  tbb                pkgs/main/win-64::tbb-2021.8.0-h59b6b97_0
  zstd               pkgs/main/win-64::zstd-1.5.5-hd43e919_0

Proceed ([y]/n)? y

Downloading and Extracting Packages:

Preparing transaction: done                                                                                                                                                                                                                                                                                
Verifying transaction: done                                                                                                                                                                                                                                                                                
Executing transaction: done                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         

Then lost metocean-api so re-installed

> conda install conda-forge::metocean-api                                                                                                                                                                                                                                        
Channels:
 - defaults
 - conda-forge
Platform: win-64
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: p:\*****\.conda

  added / updated specs:
    - conda-forge::metocean-api

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    lcms2-2.16                 |       h67d730c_0         496 KB  conda-forge
    lerc-4.0.0                 |       h63175ca_0         190 KB  conda-forge
    libdeflate-1.19            |       hcfcfb64_0         150 KB  conda-forge
    liblapack-3.9.0            |     21_win64_mkl         4.8 MB  conda-forge
    libtiff-4.6.0              |       h6e2ebb7_2         769 KB  conda-forge
    libxcb-1.15                |       hcd874cb_0         947 KB  conda-forge
    numpy-1.26.4               |  py311h0b4df5a_0         6.8 MB  conda-forge
    openjpeg-2.5.0             |       h3d672ee_3         231 KB  conda-forge
    pandas-2.2.1               |  py311hf63dbb6_0        13.8 MB  conda-forge
    pillow-10.2.0              |  py311h4dd8a23_0        40.1 MB  conda-forge
    pthread-stubs-0.3          |       h3c9f919_1           7 KB
    tk-8.6.13                  |       h5226925_1         3.3 MB  conda-forge
    xorg-libxau-1.0.11         |       hcd874cb_0          50 KB  conda-forge
    xorg-libxdmcp-1.1.3        |       hcd874cb_0          66 KB  conda-forge
    ------------------------------------------------------------
                                           Total:        71.7 MB

The following NEW packages will be INSTALLED:

  abseil-cpp         pkgs/main/win-64::abseil-cpp-20211102.0-hd77b12b_0
  arrow-cpp          pkgs/main/win-64::arrow-cpp-14.0.2-ha81ea56_1
  aws-c-auth         pkgs/main/win-64::aws-c-auth-0.6.19-h2bbff1b_0
  aws-c-cal          pkgs/main/win-64::aws-c-cal-0.5.20-h2bbff1b_0
  aws-c-common       pkgs/main/win-64::aws-c-common-0.8.5-h2bbff1b_0
  aws-c-compression  pkgs/main/win-64::aws-c-compression-0.2.16-h2bbff1b_0
  aws-c-event-stream pkgs/main/win-64::aws-c-event-stream-0.2.15-hd77b12b_0
  aws-c-http         pkgs/main/win-64::aws-c-http-0.6.25-h2bbff1b_0
  aws-c-io           pkgs/main/win-64::aws-c-io-0.13.10-h2bbff1b_0
  aws-c-mqtt         pkgs/main/win-64::aws-c-mqtt-0.7.13-h2bbff1b_0
  aws-c-s3           pkgs/main/win-64::aws-c-s3-0.1.51-h2bbff1b_0
  aws-c-sdkutils     pkgs/main/win-64::aws-c-sdkutils-0.1.6-h2bbff1b_0
  aws-checksums      pkgs/main/win-64::aws-checksums-0.1.13-h2bbff1b_0
  aws-crt-cpp        pkgs/main/win-64::aws-crt-cpp-0.18.16-hd77b12b_0
  aws-sdk-cpp        pkgs/main/win-64::aws-sdk-cpp-1.10.55-hd77b12b_0
  bokeh              pkgs/main/win-64::bokeh-3.3.4-py311h746a85d_0
  boost-cpp          pkgs/main/win-64::boost-cpp-1.82.0-h59b6b97_2
  brotli             pkgs/main/win-64::brotli-1.0.9-h2bbff1b_7
  brotli-bin         pkgs/main/win-64::brotli-bin-1.0.9-h2bbff1b_7
  brotli-python      pkgs/main/win-64::brotli-python-1.0.9-py311hd77b12b_7
  c-ares             pkgs/main/win-64::c-ares-1.19.1-h2bbff1b_0
  cdsapi             conda-forge/noarch::cdsapi-0.6.1-pyhd8ed1ab_0
  cftime             pkgs/main/win-64::cftime-1.6.2-py311h5bb9823_0
  charset-normalizer pkgs/main/noarch::charset-normalizer-2.0.4-pyhd3eb1b0_0
  click              pkgs/main/win-64::click-8.1.7-py311haa95532_0
  cloudpickle        pkgs/main/win-64::cloudpickle-2.2.1-py311haa95532_0
  colorama           pkgs/main/win-64::colorama-0.4.6-py311haa95532_0
  contourpy          pkgs/main/win-64::contourpy-1.2.0-py311h59b6b97_0
  cycler             pkgs/main/noarch::cycler-0.11.0-pyhd3eb1b0_0
  cytoolz            pkgs/main/win-64::cytoolz-0.12.2-py311h2bbff1b_0
  dask               pkgs/main/win-64::dask-2023.11.0-py311haa95532_0
  dask-core          pkgs/main/win-64::dask-core-2023.11.0-py311haa95532_0
  distributed        pkgs/main/win-64::distributed-2023.11.0-py311haa95532_0
  fonttools          pkgs/main/noarch::fonttools-4.25.0-pyhd3eb1b0_0
  freetype           pkgs/main/win-64::freetype-2.12.1-ha860e81_0
  fsspec             pkgs/main/win-64::fsspec-2023.10.0-py311haa95532_0
  gflags             pkgs/main/win-64::gflags-2.2.2-hd77b12b_1
  glog               pkgs/main/win-64::glog-0.5.0-hd77b12b_1
  grpc-cpp           pkgs/main/win-64::grpc-cpp-1.48.2-hfe90ff0_1
  heapdict           pkgs/main/noarch::heapdict-1.0.1-pyhd3eb1b0_0
  idna               pkgs/main/win-64::idna-3.4-py311haa95532_0
  importlib-metadata pkgs/main/win-64::importlib-metadata-7.0.1-py311haa95532_0
  iniconfig          pkgs/main/noarch::iniconfig-1.1.1-pyhd3eb1b0_0
  jinja2             pkgs/main/win-64::jinja2-3.1.3-py311haa95532_0
  kiwisolver         pkgs/main/win-64::kiwisolver-1.4.4-py311hd77b12b_0
  lcms2              conda-forge/win-64::lcms2-2.16-h67d730c_0
  lerc               conda-forge/win-64::lerc-4.0.0-h63175ca_0
  libboost           pkgs/main/win-64::libboost-1.82.0-h3399ecb_2
  libbrotlicommon    pkgs/main/win-64::libbrotlicommon-1.0.9-h2bbff1b_7
  libbrotlidec       pkgs/main/win-64::libbrotlidec-1.0.9-h2bbff1b_7
  libbrotlienc       pkgs/main/win-64::libbrotlienc-1.0.9-h2bbff1b_7
  libdeflate         conda-forge/win-64::libdeflate-1.19-hcfcfb64_0
  libevent           pkgs/main/win-64::libevent-2.1.12-h56d1f94_1
  liblapack          conda-forge/win-64::liblapack-3.9.0-21_win64_mkl
  libpng             pkgs/main/win-64::libpng-1.6.39-h8cc25b3_0
  libprotobuf        pkgs/main/win-64::libprotobuf-3.20.3-h23ce68f_0
  libthrift          pkgs/main/win-64::libthrift-0.15.0-h4364b78_2
  libtiff            conda-forge/win-64::libtiff-4.6.0-h6e2ebb7_2
  libwebp-base       pkgs/main/win-64::libwebp-base-1.3.2-h2bbff1b_0
  libxcb             conda-forge/win-64::libxcb-1.15-hcd874cb_0
  locket             pkgs/main/win-64::locket-1.0.0-py311haa95532_0
  lz4                pkgs/main/win-64::lz4-4.3.2-py311h2bbff1b_0
  m2w64-gcc-libgfor~ pkgs/msys2/win-64::m2w64-gcc-libgfortran-5.3.0-6
  m2w64-gcc-libs     pkgs/msys2/win-64::m2w64-gcc-libs-5.3.0-7
  m2w64-gcc-libs-co~ pkgs/msys2/win-64::m2w64-gcc-libs-core-5.3.0-7
  m2w64-gmp          pkgs/msys2/win-64::m2w64-gmp-6.1.0-2
  m2w64-libwinpthre~ pkgs/msys2/win-64::m2w64-libwinpthread-git-5.0.0.4634.697f757-2
  markupsafe         pkgs/main/win-64::markupsafe-2.1.3-py311h2bbff1b_0
  matplotlib-base    pkgs/main/win-64::matplotlib-base-3.8.0-py311hf62ec03_0
  metocean-api       conda-forge/noarch::metocean-api-1.1.1-pyhd8ed1ab_0
  msgpack-python     pkgs/main/win-64::msgpack-python-1.0.3-py311h59b6b97_0
  msys2-conda-epoch  pkgs/msys2/win-64::msys2-conda-epoch-20160418-1
  munkres            pkgs/main/noarch::munkres-1.1.4-py_0
  netcdf4            conda-forge/win-64::netcdf4-1.6.5-nompi_py311he019f65_100
  numpy              conda-forge/win-64::numpy-1.26.4-py311h0b4df5a_0
  openjpeg           conda-forge/win-64::openjpeg-2.5.0-h3d672ee_3
  orc                pkgs/main/win-64::orc-1.7.4-h623e30f_1
  packaging          pkgs/main/win-64::packaging-23.1-py311haa95532_0
  pandas             conda-forge/win-64::pandas-2.2.1-py311hf63dbb6_0
  partd              pkgs/main/win-64::partd-1.4.1-py311haa95532_0
  pillow             conda-forge/win-64::pillow-10.2.0-py311h4dd8a23_0
  pluggy             pkgs/main/win-64::pluggy-1.0.0-py311haa95532_1
  psutil             pkgs/main/win-64::psutil-5.9.0-py311h2bbff1b_0
  pthread-stubs      pkgs/main/win-64::pthread-stubs-0.3-h3c9f919_1
  pyarrow            pkgs/main/win-64::pyarrow-14.0.2-py311h847bd2a_0
  pynco              conda-forge/noarch::pynco-1.1.0-pyhd8ed1ab_1
  pyparsing          pkgs/main/win-64::pyparsing-3.0.9-py311haa95532_0
  pysocks            pkgs/main/win-64::pysocks-1.7.1-py311haa95532_0
  pytest             pkgs/main/win-64::pytest-7.4.0-py311haa95532_0
  python-dateutil    pkgs/main/noarch::python-dateutil-2.8.2-pyhd3eb1b0_0
  python-lmdb        pkgs/main/win-64::python-lmdb-1.4.1-py311hd77b12b_0
  python-tzdata      pkgs/main/noarch::python-tzdata-2023.3-pyhd3eb1b0_0
  python_abi         conda-forge/win-64::python_abi-3.11-2_cp311
  pytz               pkgs/main/win-64::pytz-2023.3.post1-py311haa95532_0
  pyyaml             pkgs/main/win-64::pyyaml-6.0.1-py311h2bbff1b_0
  re2                pkgs/main/win-64::re2-2022.04.01-hd77b12b_0
  requests           pkgs/main/win-64::requests-2.31.0-py311haa95532_1
  six                pkgs/main/noarch::six-1.16.0-pyhd3eb1b0_1
  sortedcontainers   pkgs/main/noarch::sortedcontainers-2.4.0-pyhd3eb1b0_0
  tblib              pkgs/main/noarch::tblib-1.7.0-pyhd3eb1b0_0
  toolz              pkgs/main/win-64::toolz-0.12.0-py311haa95532_0
  tornado            pkgs/main/win-64::tornado-6.3.3-py311h2bbff1b_0
  tqdm               pkgs/main/win-64::tqdm-4.65.0-py311h746a85d_0
  urllib3            pkgs/main/win-64::urllib3-2.1.0-py311haa95532_1
  utf8proc           pkgs/main/win-64::utf8proc-2.6.1-h2bbff1b_1
  win_inet_pton      pkgs/main/win-64::win_inet_pton-1.1.0-py311haa95532_0
  xarray             pkgs/main/win-64::xarray-2023.6.0-py311haa95532_0
  xorg-libxau        conda-forge/win-64::xorg-libxau-1.0.11-hcd874cb_0
  xorg-libxdmcp      conda-forge/win-64::xorg-libxdmcp-1.1.3-hcd874cb_0
  xyzservices        pkgs/main/win-64::xyzservices-2022.9.0-py311haa95532_1
  yaml               pkgs/main/win-64::yaml-0.2.5-he774522_0
  zict               pkgs/main/win-64::zict-3.0.0-py311haa95532_0
  zipp               pkgs/main/win-64::zipp-3.17.0-py311haa95532_0

The following packages will be UPDATED:

  tk                        pkgs/main::tk-8.6.12-h2bbff1b_0 --> conda-forge::tk-8.6.13-h5226925_1

Proceed ([y]/n)? u
Invalid choice: u
Proceed ([y]/n)? y

Downloading and Extracting Packages:

Preparing transaction: done                                                                                                                                                                                                                                                                                
Verifying transaction: done                   
Executing transaction: done

And still getting the same error

Directory  cache  already exists
https://thredds.met.no/thredds/dodsC/nora3_subset_wave/wave_tser/200001_NORA3wave_sub_time_unlimited.nc
Find nearest point to lon.=1.32,lat.=53.324
Found nearest: lon.=1.335817,lat.=53.324944
Error in calling operator ncks with:
>>> 'p:\*****\.conda\Library\bin\ncks' -O -v hs,tp,tm1,tm2,tmp,Pdir,thq,hs_sea,tp_sea,thq_sea,hs_swell,tp_swell,thq_swell,longitude,latitude -d rlon,23.289997 -d rlat,-3.87 '--output=cache\NORA3_wave_sub_lon1.32lat53.324_20000101.nc' <<<
Inputs: https://thredds.met.no/thredds/dodsC/nora3_subset_wave/wave_tser/200001_NORA3wave_sub_time_unlimited.nc
b''
b''
b''
......Retry0.....
Error in calling operator ncks with:
>>> 'p:\*****\.conda\Library\bin\ncks' -O -v hs,tp,tm1,tm2,tmp,Pdir,thq,hs_sea,tp_sea,thq_sea,hs_swell,tp_swell,thq_swell,longitude,latitude -d rlon,23.289997 -d rlat,-3.87 '--output=cache\NORA3_wave_sub_lon1.32lat53.324_20000101.nc' <<<
Inputs: https://thredds.met.no/thredds/dodsC/nora3_subset_wave/wave_tser/200001_NORA3wave_sub_time_unlimited.nc
b''
b''
b''
......Retry1.....

So any additional ideas are welcome.

KonstantinChri commented 6 months ago

Sorry for the late reply. It seems that your system is not able to install properly nco. I have performed tests linux, macos and windows, in addition to cloud platforms such as WEkEO, without problem.