Code Monkey home page Code Monkey logo

ece-postprocess's People

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

geek-yang

ece-postprocess's Issues

Crash in sp2gpl

The script crashes with the traceback

Traceback (most recent call last):
  File "/nfs/home/users/oord/miniconda2/envs/blueact/bin/ece-postprocess", line 4, in <module>
    __import__('pkg_resources').run_script('ece-postprocess==0.1', 'ece-postprocess')
  File "/nfs/home/users/oord/miniconda2/envs/blueact/lib/python3.5/site-packages/pkg_resources/__init__.py", line 661, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/nfs/home/users/oord/miniconda2/envs/blueact/lib/python3.5/site-packages/pkg_resources/__init__.py", line 1448, in run_script
    exec(script_code, namespace, namespace)
  File "/nfs/home/users/oord/miniconda2/envs/blueact/lib/python3.5/site-packages/ece_postprocess-0.1-py3.5.egg/EGG-INFO/scripts/ece-postprocess", line 82, in <module>
  File "/nfs/home/users/oord/miniconda2/envs/blueact/lib/python3.5/site-packages/ece_postprocess-0.1-py3.5.egg/ece_postprocess/AMET_land_surface.py", line 105, in __init__
  File "/nfs/home/users/oord/miniconda2/envs/blueact/lib/python3.5/site-packages/ece_postprocess-0.1-py3.5.egg/ece_postprocess/AMET_land_surface.py", line 136, in runPostprocess
  File "/nfs/home/users/oord/miniconda2/envs/blueact/lib/python3.5/site-packages/ece_postprocess-0.1-py3.5.egg/ece_postprocess/AMET_land_surface.py", line 428, in sp2gpl
  File "/nfs/home/users/oord/miniconda2/envs/blueact/lib/python3.5/site-packages/ece_postprocess-0.1-py3.5.egg/ece_postprocess/AMET_land_surface.py", line 428, in <listcomp>
ValueError: invalid literal for int() with base 10: ''

Will investigate further

ece.info not found

rundir is supposed to contain a directory with the experiment name. This is nonstandard, the rundir in the EC-Earth community is the directory where the ifs and nemo executables run. So my proposed change is to skip the joining of the rundir argument with the expname argument everywhere.

rsync gaussian output likely to crash

There is a mistake in deriving the date of the gridpoint files. Line 561 of AMET_land_surface.py reads

file_time = [a for a in [a.lstrip('ICMGG{}+'.format(expname)) for a in filenames] if int(a)][0]

However, a.lstrip(b) means 'stripping all characters in a that occur in b, starting from the left'. So if I decide to name my experiment 'ph02' (which I did), you will get

In [2]: "ICMGGph02+200210".lstrip("ICMGG{}+".format("ph02"))
Out[2]: '10'

which is clearly not intended. The solution is obviously just to take int(a[-6:]).

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.