Commit 9d57b109 authored by Pablo Iturrieta Rebolledo's avatar Pablo Iturrieta Rebolledo
Browse files

Revert "added inhomogeneous pointprocess"

This reverts commit 8e108d99
parent 8cbb301d
......@@ -155,7 +155,12 @@ def run(use_saved=False, catalog_name='bollettino'):
if __name__ == '__main__':
use_saved = False
<<<<<<< HEAD
catalogs = ['bollettino', 'emrcmt', 'horus']
for cat in catalogs:
run(use_saved, cat)
=======
a =run(use_saved)
>>>>>>> parent of 8e108d9... added inhomogeneous pointprocess
from codes.csep_tests import n_test, m_test, s_test, l_test, cl_test, pgs, t_test
import n_test
import m_test
import s_test
import l_test
import cl_test
import t_test
import pgs
n_test.run()
s_test.run()
m_test.run()
l_test.run()
cl_test.run()
t_test.run()
pgs.run()
\ No newline at end of file
use_saved = False
# n_test.run(use_saved)
# m_test.run(use_saved)
# s_test.run(use_saved)
# l_test.run(use_saved)
# cl_test.run(use_saved)
# t_test.run(use_saved)
pgs.run(use_saved)
......@@ -6,5 +6,45 @@ import paths
import get_models
import numpy as np
# forecasts = get_models.five_years()
# figures_dir = paths.forecast_figures[5]
# for model_i in forecasts:
# plot_properties['filename'] = os.path.join(figures_dir, model_i.name)
# plot_properties['title'] = model_i.name + ' ' + model_i.author
# print(plot_properties['title'])
# model_i.plot(plot_args=plot_properties)
plot_properties = {'grid_labels': True,
'borders': True,
'feature_lw': 0.5,
'basemap': 'stock_img',
'cmap': 'rainbow',
'clim' : [-8, 0],
'alpha_exp': 0.8,
'projection': cartopy.crs.PlateCarree()}
forecasts = get_models.ten_years()
figures_dir = paths.forecast_figures[10]
catalog = ['bollettino', 'horus', 'emrcmt']
for catalog_name in catalog:
if catalog_name == 'bollettino':
cat = get_catalogs.bollettino()
elif catalog_name == 'horus':
cat = get_catalogs.horus()
elif catalog_name == 'emrcmt':
cat = get_catalogs.emrcmt()
cat = get_catalogs.filter_10yr_01_2010(cat)
for model_i in forecasts:
filename_ = os.path.join(figures_dir, '%s_%s' % (model_i.name, catalog_name))
title_ = model_i.name + ' ' + model_i.author
print(title_)
ax = model_i.plot(show=False, plot_args=plot_properties)
cat.plot(show=False,ax=ax, plot_args={'filename': filename_,
'title': title_})
\ No newline at end of file
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