Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Kira Dairce
Lagranto
Commits
ac2e2bec
Commit
ac2e2bec
authored
Dec 10, 2019
by
ymxu-atm
Browse files
original
parent
9e29ce96
Changes
2
Hide whitespace changes
Inline
Side-by-side
Untitled.ipynb
0 → 100644
View file @
ac2e2bec
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"ename": "ModuleNotFoundError",
"evalue": "No module named 'dypy'",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mModuleNotFoundError\u001b[0m Traceback (most recent call last)",
"\u001b[0;32m<ipython-input-1-11b3ef2ed591>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[0;32mfrom\u001b[0m \u001b[0mdatetime\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mdatetime\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mtimedelta\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 2\u001b[0;31m \u001b[0;32mfrom\u001b[0m \u001b[0mdypy\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0msmall_tools\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0minterval\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
"\u001b[0;31mModuleNotFoundError\u001b[0m: No module named 'dypy'"
]
}
],
"source": [
"from datetime import datetime, timedelta\n",
"from dypy.small_tools import interval"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"ename": "ModuleNotFoundError",
"evalue": "No module named 'dypy'",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mModuleNotFoundError\u001b[0m Traceback (most recent call last)",
"\u001b[0;32m<ipython-input-2-c38815564967>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0;32mfrom\u001b[0m \u001b[0mdypy\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mlagranto\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mTra\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
"\u001b[0;31mModuleNotFoundError\u001b[0m: No module named 'dypy'"
]
}
],
"source": [
"from dypy.lagranto import Tra"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.4"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
%% Cell type:code id: tags:
```
python
from
datetime
import
datetime
,
timedelta
from
dypy.small_tools
import
interval
```
%% Output
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-1-11b3ef2ed591> in <module>
1 from datetime import datetime, timedelta
----> 2 from dypy.small_tools import interval
ModuleNotFoundError: No module named 'dypy'
%% Cell type:code id: tags:
```
python
from
dypy.lagranto
import
Tra
```
%% Output
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-2-c38815564967> in <module>
----> 1 from dypy.lagranto import Tra
ModuleNotFoundError: No module named 'dypy'
%% Cell type:code id: tags:
```
python
```
tests.py
0 → 100644
View file @
ac2e2bec
# ========================================================================
# ========================================================================
# Script Usage:
# Created by: ---------- Xianglin DAI -----------
# Ph.D. Candidate
# School of Atmospheric Sciences
# Email: lyniedairce@smail.nju.edu.cn
# ----- Nanjing University -----
#
# Records of Revisions:
# Date Programmer Description of change
# ========== ========== =====================
# 03/12/2019 Xianglin DAI V.1.0
# ========================================================================
# |---------------------File Name: tests.py------------------------|
from
datetime
import
datetime
,
timedelta
from
dypy.small_tools
import
interval
startdate
=
datetime
(
2013
,
6
,
1
,
0
)
enddate
=
startdate
+
timedelta
(
days
=
5
)
dates
=
[(
d
,
d
+
timedelta
(
hours
=
48
))
for
d
in
interval
(
startdate
,
enddate
,
timedelta
(
hours
=
6
))]
from
dypy.lagranto
import
LagrantoRun
lrun
=
LagrantoRun
(
dates
,
workingdir
=
'/run/media/xldai/cloud/Data/DATABANK/dataset/Interim'
,
outputdir
=
'output'
,
version
=
'ecmwf'
)
specifier
=
"'box.eqd(5,20,40,50,20)@profile(850,500,10)@hPa'"
out_create_startf
=
lrun
.
create_startf
(
startdate
,
specifier
,
tolist
=
True
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment