GithubHelp home page GithubHelp logo

Comments (4)

AntSimi avatar AntSimi commented on June 19, 2024

from py-eddy-tracker.

evanmason avatar evanmason commented on June 19, 2024

Ok, so the Wiki should be updated to reflect that. Is it no longer possible to add a 'tracking recipe', or is that now done within the yaml?

from py-eddy-tracker.

evanmason avatar evanmason commented on June 19, 2024

Is it the file 'tracking.yaml' in share? That is 2 years old.

Using that I get the following error:

(VENVP3) [emason@marula global4eddytracking]$ EddyTracking my_tracking.yaml
/home/emason/VENVP3/lib/python3.7/site-packages/pyEddyTracker-3.0.0-py3.7.egg/EGG-INFO/scripts/EddyTracking:109: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  config = yaml_load(stream)
/home/emason/VENVP3/lib/python3.7/site-packages/pyEddyTracker-3.0.0-py3.7.egg/py_eddy_tracker/observations/observation.py:692: RuntimeWarning: invalid value encountered in less
  return distance < 125
/home/emason/VENVP3/lib/python3.7/site-packages/numpy/ma/core.py:4008: RuntimeWarning: invalid value encountered in equal
  check = compare(sdata, odata)
/home/emason/VENVP3/lib/python3.7/site-packages/pyEddyTracker-3.0.0-py3.7.egg/py_eddy_tracker/tracking.py:400: RuntimeWarning: invalid value encountered in equal
  h_v.min = h_v[:].min()
/home/emason/VENVP3/lib/python3.7/site-packages/pyEddyTracker-3.0.0-py3.7.egg/py_eddy_tracker/tracking.py:401: RuntimeWarning: invalid value encountered in equal
  h_v.max = h_v[:].max()
Traceback (most recent call last):
  File "/home/emason/VENVP3/bin/EddyTracking", line 4, in <module>
    __import__('pkg_resources').run_script('pyEddyTracker==3.0.0', 'EddyTracking')
  File "/home/emason/VENVP3/lib/python3.7/site-packages/pkg_resources/__init__.py", line 666, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/home/emason/VENVP3/lib/python3.7/site-packages/pkg_resources/__init__.py", line 1462, in run_script
    exec(code, namespace, namespace)
  File "/home/emason/VENVP3/lib/python3.7/site-packages/pyEddyTracker-3.0.0-py3.7.egg/EGG-INFO/scripts/EddyTracking", line 190, in <module>
    SHORT_CORRESPONDANCES.shorter_than(size_max=NB_OBS_MIN)
  File "/home/emason/VENVP3/lib/python3.7/site-packages/pyEddyTracker-3.0.0-py3.7.egg/py_eddy_tracker/tracking.py", line 513, in shorter_than
    translate = empty(i_keep_track.max() + 1, dtype='u4')
  File "/home/emason/VENVP3/lib/python3.7/site-packages/numpy/core/_methods.py", line 30, in _amax
    return umr_maximum(a, axis, None, out, keepdims, initial, where)
ValueError: zero-size array to reduction operation maximum which has no identity
(VENVP3) [emason@marula global4eddytracking]$

Two files are produced:
148 -rw-rw-r-- 1 emason emason 148224 Dec 28 17:43 Cyclonic_correspondances.nc
28 -rw-rw-r-- 1 emason emason 25888 Dec 28 17:43 Cyclonic_untracked.nc
but no Cyclonic.nc.

My yaml file contains:

#DIAGNOSTIC_TYPE: 'SLA'
#DIAGNOSTIC_TYPE: 'ADT'

PATHS:
  # Files produces with EddyIdentification
  FILES_PATTERN: /marula/emason/data/Copernicus/GLOBAL_REANALYSIS_PHY_001_030/global4eddytracking/Cyclonic_20061*.nc
  # Path and filename of Chelton et al (1998) Rossby radius data
  # Obtain file from:
  # http://www-po.coas.oregonstate.edu/research/po/research/rossby_radius/
  RW_PATH: '/home/emason/Dropbox/rossrad.dat'
  # Path for saving of outputs
  SAVE_DIR: '/marula/emason/data/Copernicus/GLOBAL_REANALYSIS_PHY_001_030/global4eddytracking/'

# Minimum number of observations to store eddy
TRACK_DURATION_MIN: 10
VIRTUAL_LENGTH_MAX: 0

from py-eddy-tracker.

evanmason avatar evanmason commented on June 19, 2024

So I updated all PET dependencies and that solved the issue for the missing Cyclonic.nc. I don't know which dependency was the culprit.

from py-eddy-tracker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.