Commit 7c55c369 authored by Sébastien Gardoll's avatar Sébastien Gardoll
Browse files

add license

parent 2c0590d7
This diff is collapsed.
# snippet # Snippets
\ No newline at end of file
## License
See LICENSE file.
## Authors
* Sébastien Gardoll
Software Engineer at [IPSL](https://www.ipsl.fr/en/)
contact: sebastien@gardoll.fr
\ No newline at end of file
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Oct 2 11:09:19 2019
@license : CeCILL-2.1
@author: sebastien@gardoll.fr
"""
# conda install matplotlib # conda install matplotlib
#### Taking 2011's Irene as an example #### #### Taking 2011's Irene as an example ####
...@@ -94,7 +103,7 @@ def compute_time_index(num_day, time_step = 0): ...@@ -94,7 +103,7 @@ def compute_time_index(num_day, time_step = 0):
# units: degrees_north # units: degrees_north
# index zero => 90° <=> 90°N # index zero => 90° <=> 90°N
# last index (720) => -90° <=> 90°S # last index (720) => -90° <=> 90°S
def compute_lat_index(lat): def compute_lat_index(lat):
return int(360 - (lat/LAT_RESOLUTION)) return int(360 - (lat/LAT_RESOLUTION))
...@@ -180,7 +189,7 @@ plt.figure() ...@@ -180,7 +189,7 @@ plt.figure()
plt.imshow(msl_selected_region,cmap='gist_rainbow_r',interpolation="none") plt.imshow(msl_selected_region,cmap='gist_rainbow_r',interpolation="none")
plt.show() plt.show()
""" """
Intercomparison: Intercomparison:
ferret ferret
use "/bdd/ECMWF/ERA5/NETCDF/GLOBAL_025/4xdaily/AN_SF/2011/msl.201108.ashe5.GLOBAL_025.nc" use "/bdd/ECMWF/ERA5/NETCDF/GLOBAL_025/4xdaily/AN_SF/2011/msl.201108.ashe5.GLOBAL_025.nc"
......
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Oct 2 12:21:53 2019
@license : CeCILL-2.1
@author: sebastien@gardoll.fr
"""
import numpy as np import numpy as np
import multiprocessing as mp import multiprocessing as mp
import ctypes import ctypes
......
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Oct 3 17:45:55 2019
@license : CeCILL-2.1
@author: sebastien@gardoll.fr
"""
import yaml import yaml
class Simple: class Simple:
......
Code avec Xarray :
#%%
#!/usr/bin/env python3 #!/usr/bin/env python3
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
""" """
Created on Thu Dec 20 14:23:41 2018 Created on Thu Dec 20 14:23:41 2018
@license : CeCILL-2.1
@author: Sébastien Gardoll @author: Sébastien Gardoll
""" """
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment