skimulator error message with Anaconda navigator on Windows 10
#5
Hi Sylvain Herlédan,

I used git clone https://git.oceandatalab.com/skim/skimulator.git

...as you suggested. It produced the \skimulator directory, which I didn't obtain before.

I installed with python setup.py install :


Code:
(base) C:\Users\pclink\Documents\skimulator\skimulator>python setup.py install
Warning: 'keywords' should be a list, got type 'tuple'
C:\Users\pclink\Anaconda3\lib\distutils\dist.py:274: UserWarning: Unknown distribution option: 'setup_require'
  warnings.warn(msg)
running install
running bdist_egg
running egg_info
creating skimulator.egg-info
writing skimulator.egg-info\PKG-INFO
writing dependency_links to skimulator.egg-info\dependency_links.txt
writing entry points to skimulator.egg-info\entry_points.txt
writing requirements to skimulator.egg-info\requires.txt
writing top-level names to skimulator.egg-info\top_level.txt
writing manifest file 'skimulator.egg-info\SOURCES.txt'
reading manifest file 'skimulator.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.txt' under directory 'docs'
writing manifest file 'skimulator.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
creating build
creating build\lib
creating build\lib\skimulator
copying skimulator\build_error.py -> build\lib\skimulator
copying skimulator\build_swath.py -> build\lib\skimulator
copying skimulator\cli.py -> build\lib\skimulator
copying skimulator\const.py -> build\lib\skimulator
copying skimulator\mod_run.py -> build\lib\skimulator
copying skimulator\mod_tools.py -> build\lib\skimulator
copying skimulator\mod_uwb_corr.py -> build\lib\skimulator
copying skimulator\regridding.py -> build\lib\skimulator
copying skimulator\run_simulator.py -> build\lib\skimulator
copying skimulator\rw_data.py -> build\lib\skimulator
copying skimulator\__init__.py -> build\lib\skimulator
creating build\bdist.win-amd64
creating build\bdist.win-amd64\egg
creating build\bdist.win-amd64\egg\skimulator
copying build\lib\skimulator\build_error.py -> build\bdist.win-amd64\egg\skimulator
copying build\lib\skimulator\build_swath.py -> build\bdist.win-amd64\egg\skimulator
copying build\lib\skimulator\cli.py -> build\bdist.win-amd64\egg\skimulator
copying build\lib\skimulator\const.py -> build\bdist.win-amd64\egg\skimulator
copying build\lib\skimulator\mod_run.py -> build\bdist.win-amd64\egg\skimulator
copying build\lib\skimulator\mod_tools.py -> build\bdist.win-amd64\egg\skimulator
copying build\lib\skimulator\mod_uwb_corr.py -> build\bdist.win-amd64\egg\skimulator
copying build\lib\skimulator\regridding.py -> build\bdist.win-amd64\egg\skimulator
copying build\lib\skimulator\run_simulator.py -> build\bdist.win-amd64\egg\skimulator
copying build\lib\skimulator\rw_data.py -> build\bdist.win-amd64\egg\skimulator
copying build\lib\skimulator\__init__.py -> build\bdist.win-amd64\egg\skimulator
byte-compiling build\bdist.win-amd64\egg\skimulator\build_error.py to build_error.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\skimulator\build_swath.py to build_swath.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\skimulator\cli.py to cli.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\skimulator\const.py to const.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\skimulator\mod_run.py to mod_run.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\skimulator\mod_tools.py to mod_tools.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\skimulator\mod_uwb_corr.py to mod_uwb_corr.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\skimulator\regridding.py to regridding.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\skimulator\run_simulator.py to run_simulator.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\skimulator\rw_data.py to rw_data.cpython-37.pyc
byte-compiling build\bdist.win-amd64\egg\skimulator\__init__.py to __init__.cpython-37.pyc
creating build\bdist.win-amd64\egg\EGG-INFO
copying skimulator.egg-info\PKG-INFO -> build\bdist.win-amd64\egg\EGG-INFO
copying skimulator.egg-info\SOURCES.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying skimulator.egg-info\dependency_links.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying skimulator.egg-info\entry_points.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying skimulator.egg-info\requires.txt -> build\bdist.win-amd64\egg\EGG-INFO
copying skimulator.egg-info\top_level.txt -> build\bdist.win-amd64\egg\EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist\skimulator-1.0.166-py3.7.egg' and adding 'build\bdist.win-amd64\egg' to it
removing 'build\bdist.win-amd64\egg' (and everything under it)
Processing skimulator-1.0.166-py3.7.egg
Copying skimulator-1.0.166-py3.7.egg to c:\users\pclink\anaconda3\lib\site-packages
Adding skimulator 1.0.166 to easy-install.pth file
Installing skiml2c-script.py script to C:\Users\pclink\Anaconda3\Scripts
Installing skiml2c.exe script to C:\Users\pclink\Anaconda3\Scripts
Installing skimulator-script.py script to C:\Users\pclink\Anaconda3\Scripts
Installing skimulator.exe script to C:\Users\pclink\Anaconda3\Scripts

Installed c:\users\pclink\anaconda3\lib\site-packages\skimulator-1.0.166-py3.7.egg
Processing dependencies for skimulator==1.0.166
Searching for netCDF4==1.4.2
Best match: netCDF4 1.4.2
Adding netCDF4 1.4.2 to easy-install.pth file
Installing nc3tonc4-script.py script to C:\Users\pclink\Anaconda3\Scripts
Installing nc3tonc4.exe script to C:\Users\pclink\Anaconda3\Scripts
Installing nc4tonc3-script.py script to C:\Users\pclink\Anaconda3\Scripts
Installing nc4tonc3.exe script to C:\Users\pclink\Anaconda3\Scripts
Installing ncinfo-script.py script to C:\Users\pclink\Anaconda3\Scripts
Installing ncinfo.exe script to C:\Users\pclink\Anaconda3\Scripts

Using c:\users\pclink\anaconda3\lib\site-packages
Searching for scipy==1.1.0
Best match: scipy 1.1.0
Adding scipy 1.1.0 to easy-install.pth file

Using c:\users\pclink\anaconda3\lib\site-packages
Searching for numpy==1.15.4
Best match: numpy 1.15.4
Adding numpy 1.15.4 to easy-install.pth file

Using c:\users\pclink\anaconda3\lib\site-packages
Searching for cftime==1.0.2.1
Best match: cftime 1.0.2.1
Adding cftime 1.0.2.1 to easy-install.pth file

Using c:\users\pclink\anaconda3\lib\site-packages
Finished processing dependencies for skimulator==1.0.166

and included the data file:

cd [yourpath]/skimulator/data

@  -->  https://oceandatalab.com/files/skim/orbits.tar.xz


On running the code with:


Code:
(base) C:\Users\pclink\Documents\skimulator\skimulator\example>skimulator params_example_6beams.py
Input directory C:\Users\pclink\skimulator\example\input_fields not found

It cannot find \skimulator\example\input_fields as none exists!

The code is looking for \example\input_fields and \example\skim_output as shown in \example\params_example_6beams.py below (first 32 lines of code):

Should \input_fields and \skim_output exist in the \skimulator\example directory after installing latest code?


Code:
# -----------------------#
# Files and directories
# -----------------------#
## -- Get the user home directory
from os.path import expanduser
import os
import math
home = expanduser("~")
# ------ Name of the configuration (to build output files names) 
config="WW3_AT_metop_2018_6a"
# 6 beams, 60 azimuths, 1024 pulses and cycle length of 37 ms
# ------ Directory that contains orbit file:
dir_setup = os.path.join(home, 'skimulator', 'data')
# ------ Directory that contains your own inputs:
indatadir = os.path.join(home, 'skimulator', 'example', 'input_fields')
# ------ Directory that contains your outputs:
outdatadir = os.path.join(home, 'skimulator', 'example', 'skim_output')
# ------ Orbit file:
#filesat = os.path.join(dir_setup,'orbs1a.txt')
filesat = os.path.join(dir_setup,'orbmetop.txt')
# ------ Number of days in orbit
satcycle = 29
#satcycle = 12
# ------ Satellite elevation
sat_elev = 817 * 10**3
#sat_elev = 699 * 10**3
# ------ Order of columns (lon, lat, time) in orbit file
# (default is (0, 1, 2) with order_orbit_col = None)
order_orbit_col = None
# , dir_setup+os.sep+'orbjason.txt', dir_setup+os.sep+'orbaltika.txt' ]
# ------ Number of processor for parallelisation
proc_number = 1

....
......


Messages In This Thread
RE: skimulator error message with Anaconda navigator on Windows 10 - by Brendan Darrer - 2018-12-17T12:28 PM

Forum Jump: