Skip to content

Commit

Permalink
We can now define sigma of the priors in the *-prior.txt files.
Browse files Browse the repository at this point in the history
  • Loading branch information
PARRENIN Frederic authored and PARRENIN Frederic committed Feb 2, 2015
1 parent f7bcf75 commit ce3a1b3
Show file tree
Hide file tree
Showing 33 changed files with 49,646 additions and 99,273 deletions.
11,856 changes: 5,928 additions & 5,928 deletions AICC2012-VLR/EDC/LID-prior.txt

Large diffs are not rendered by default.

5,928 changes: 0 additions & 5,928 deletions AICC2012-VLR/EDC/LID-sigma-prior.txt

This file was deleted.

11,856 changes: 5,928 additions & 5,928 deletions AICC2012-VLR/EDC/accu-prior.txt

Large diffs are not rendered by default.

5,927 changes: 0 additions & 5,927 deletions AICC2012-VLR/EDC/accu-sigma-prior.txt

This file was deleted.

11,854 changes: 5,927 additions & 5,927 deletions AICC2012-VLR/EDC/thinning-prior.txt

Large diffs are not rendered by default.

5,927 changes: 0 additions & 5,927 deletions AICC2012-VLR/EDC/thinning-sigma-prior.txt

This file was deleted.

5,096 changes: 2,548 additions & 2,548 deletions AICC2012-VLR/EDML/LID-prior.txt

Large diffs are not rendered by default.

2,548 changes: 0 additions & 2,548 deletions AICC2012-VLR/EDML/LID-sigma-prior.txt

This file was deleted.

5,096 changes: 2,548 additions & 2,548 deletions AICC2012-VLR/EDML/accu-prior.txt

Large diffs are not rendered by default.

2,547 changes: 0 additions & 2,547 deletions AICC2012-VLR/EDML/accu-sigma-prior.txt

This file was deleted.

5,094 changes: 2,547 additions & 2,547 deletions AICC2012-VLR/EDML/thinning-prior.txt

Large diffs are not rendered by default.

2,547 changes: 0 additions & 2,547 deletions AICC2012-VLR/EDML/thinning-sigma-prior.txt

This file was deleted.

6,156 changes: 3,078 additions & 3,078 deletions AICC2012-VLR/NGRIP/LID-prior.txt

Large diffs are not rendered by default.

3,078 changes: 0 additions & 3,078 deletions AICC2012-VLR/NGRIP/LID-sigma-prior.txt

This file was deleted.

6,156 changes: 3,078 additions & 3,078 deletions AICC2012-VLR/NGRIP/accu-prior.txt

Large diffs are not rendered by default.

3,077 changes: 0 additions & 3,077 deletions AICC2012-VLR/NGRIP/accu-sigma-prior.txt

This file was deleted.

6,154 changes: 3,077 additions & 3,077 deletions AICC2012-VLR/NGRIP/thinning-prior.txt

Large diffs are not rendered by default.

3,077 changes: 0 additions & 3,077 deletions AICC2012-VLR/NGRIP/thinning-sigma-prior.txt

This file was deleted.

2,976 changes: 1,488 additions & 1,488 deletions AICC2012-VLR/TALDICE/LID-prior.txt

Large diffs are not rendered by default.

1,488 changes: 0 additions & 1,488 deletions AICC2012-VLR/TALDICE/LID-sigma-prior.txt

This file was deleted.

2,976 changes: 1,488 additions & 1,488 deletions AICC2012-VLR/TALDICE/accu-prior.txt

Large diffs are not rendered by default.

1,487 changes: 0 additions & 1,487 deletions AICC2012-VLR/TALDICE/accu-sigma-prior.txt

This file was deleted.

2,974 changes: 1,487 additions & 1,487 deletions AICC2012-VLR/TALDICE/thinning-prior.txt

Large diffs are not rendered by default.

1,487 changes: 0 additions & 1,487 deletions AICC2012-VLR/TALDICE/thinning-sigma-prior.txt

This file was deleted.

7,006 changes: 3,503 additions & 3,503 deletions AICC2012-VLR/VK/LID-prior.txt

Large diffs are not rendered by default.

3,503 changes: 0 additions & 3,503 deletions AICC2012-VLR/VK/LID-sigma-prior.txt

This file was deleted.

7,006 changes: 3,503 additions & 3,503 deletions AICC2012-VLR/VK/accu-prior.txt

Large diffs are not rendered by default.

3,502 changes: 0 additions & 3,502 deletions AICC2012-VLR/VK/accu-sigma-prior.txt

This file was deleted.

7,004 changes: 3,502 additions & 3,502 deletions AICC2012-VLR/VK/thinning-prior.txt

Large diffs are not rendered by default.

3,502 changes: 0 additions & 3,502 deletions AICC2012-VLR/VK/thinning-sigma-prior.txt

This file was deleted.

15 changes: 0 additions & 15 deletions AICC2012-VLR/parameters-CovariancePrior-AllDrillings-init.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,6 @@

##Now we define the sigmas

#sigmap_corr_a
readarray=np.loadtxt(datadir+self.label+'/accu-sigma-prior.txt')
f=interp1d(self.age_model[:-1],readarray, bounds_error=False, fill_value=readarray[-1])
self.sigmap_corr_a=f(self.corr_a_age)

#Sigmap_corr_tau
readarray=np.loadtxt(datadir+self.label+'/thinning-sigma-prior.txt')
f=interp1d(self.depth[:-1],readarray, bounds_error=False, fill_value=readarray[-1])
self.sigmap_corr_tau=f(self.corr_tau_depth)

#Sigmap_corr_LID
readarray=np.loadtxt(datadir+self.label+'/LID-sigma-prior.txt')
f=interp1d(self.age_model,readarray, bounds_error=False, fill_value=readarray[-1])
self.sigmap_corr_LID=f(self.corr_LID_age)


#def weighted_std(values, weights):
# """
Expand Down
13 changes: 13 additions & 0 deletions IceChronoClasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,12 @@ def init(self):
readarray=np.loadtxt(datadir+self.label+'/accu-prior.txt')
self.a_depth=readarray[:,0]
self.a_a=readarray[:,1]
self.a_sigma=readarray[:,2]
f=interp1d_stair_aver_extrap(self.a_depth, self.a_a)
self.a_model=f(self.depth)
self.a=self.a_model



self.age=np.empty_like(self.depth)
self.gage=np.empty_like(self.depth)
Expand Down Expand Up @@ -113,6 +115,7 @@ def init(self):
readarray=np.loadtxt(datadir+self.label+'/LID-prior.txt')
self.LID_depth=readarray[:,0]
self.LID_LID=readarray[:,1]
self.LID_sigma=readarray[:,2]
f=interp1d_extrap(self.LID_depth, self.LID_LID)
self.LID_model=f(self.depth)

Expand All @@ -131,6 +134,7 @@ def init(self):
readarray=np.loadtxt(datadir+self.label+'/thinning-prior.txt')
self.tau_depth=readarray[:,0]
self.tau_tau=readarray[:,1]
self.tau_sigma=readarray[:,2]
f=interp1d_extrap(self.tau_depth, self.tau_tau)
self.tau_model=f(self.depth_mid)
self.tau=self.tau_model
Expand All @@ -155,6 +159,15 @@ def init(self):

## Definition of the covariance matrix of the background

f=interp1d(self.fct_age_model((self.a_depth[1:]+self.a_depth[:-1])/2),self.a_sigma[:-1], bounds_error=False, fill_value=self.a_sigma[-1])
self.sigmap_corr_a=f(self.corr_a_age)

f=interp1d(self.fct_gage_model(self.LID_depth),self.LID_sigma, bounds_error=False, fill_value=self.LID_sigma[-1])
self.sigmap_corr_LID=f(self.corr_LID_age)

f=interp1d(self.tau_depth,self.tau_sigma, bounds_error=False, fill_value=self.tau_sigma[-1])
self.sigmap_corr_tau=f(self.corr_tau_depth)

self.correlation_corr_a_before=self.correlation_corr_a+0
self.correlation_corr_LID_before=self.correlation_corr_LID+0
self.correlation_corr_tau_before=self.correlation_corr_tau+0
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ Then you have one directory per drilling, which contains:
- `parameters.py` : all the drilling specific parameters
- `parameters-CovarianceObservations.py` : this file allows to define the correlation of drilling specific observations
- `density-prior.txt` : depth / relative density
- `accu-prior.txt` : depth / background accu (in ice-equivalent)
- `LID-prior.txt` : depth / background Lock-in-Depth
- `thinning-prior.txt` : depth / background thinning function
- `accu-prior.txt` : depth / background accu (in ice-equivalent) / sigma (in %)
- `LID-prior.txt` : depth / background Lock-in-Depth / sigma (in %)
- `thinning-prior.txt` : depth / background thinning function sigma (in %)
- `ice_age.txt` : depth / age / sigma for ice age observations
- `gas_age.txt` : depth / age / sigma for gas age observations
- `Ddepth.txt` : depth / Delta-depth / sigma for Delta-depth observations
Expand Down

0 comments on commit ce3a1b3

Please sign in to comment.