blue-action / ece-postprocess Goto Github PK
View Code? Open in Web Editor NEWEC-Earth output post-processor
License: Apache License 2.0
EC-Earth output post-processor
License: Apache License 2.0
These are such nicely documented scripts, moving them to the EC-Earth organization might increase your impact.
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
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.
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:])
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.