some thoughts on error handling for ftir retrievals prepared by stephen wood and brian connor, niwa...

16
Some thoughts on error Some thoughts on error handling for FTIR handling for FTIR retrievals retrievals Prepared by Stephen Wood and Brian Connor, NIWA with input and ideas from others...

Upload: agnes-cynthia-lucas

Post on 18-Jan-2016

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Some thoughts on error handling for FTIR retrievals Prepared by Stephen Wood and Brian Connor, NIWA with input and ideas from others

Some thoughts on error handling Some thoughts on error handling for FTIR retrievalsfor FTIR retrievals

Prepared by Stephen Wood and Brian Connor, NIWA with input and ideas from others...

Page 2: Some thoughts on error handling for FTIR retrievals Prepared by Stephen Wood and Brian Connor, NIWA with input and ideas from others

With the possibility of archiving profiles in an NDSC data base there's a need to consider how we present the errors in these profiles.

We need either some consistency in how this is done or a way of flagging how the errors that are archived were arrived at.

There are a number of issues this raises. This presentation is aimed at outlining some of these, and hopefully promoting a lively discussion!

Overview/IntroductionOverview/Introduction

Page 3: Some thoughts on error handling for FTIR retrievals Prepared by Stephen Wood and Brian Connor, NIWA with input and ideas from others

Recap of error termsRecap of error terms1) Measurement error: Smeas=GySεGy

T

2) Smoothing error: Ssmooth= (A–I) Sx (A–I)T

3) Model parameter error: Spar= Gy( ∑KbSbKbT)Gy

T

4) Forward model error (from things not modelled properly in the forward model): difficult to quantify

yx

y

a

bx

GKx

xA

y

xG

bxyRx

b

yK

x

yK

bxFy

ˆ

ˆ

)ˆ,,(ˆ

,

),( For reference

Make the distinction between covariance values

given to the retrieval Sa,Se which “define” the

retrieval and how it maps things, (i.e. Kx, Kb, Gy, A),

and then more realistic estimates of covariances like

Sx , the best estimate of covariance of x. This applies

to all the error calculations

Page 4: Some thoughts on error handling for FTIR retrievals Prepared by Stephen Wood and Brian Connor, NIWA with input and ideas from others

Expand on model parameter errorsExpand on model parameter errors

There are several model parameters which can be treated independently in error calculations, rather than lumping them all together in one vector b. Various b can be single parameters (e.g. a line strength, SZA) or vectors (e.g. temperature profile).

Whether or not a model parameter has temporarily been put in the vector of retrieved values, the first step in error

evaluation is calculating Kb for a given b. If a given b can

be put in as a retrieved variable then Kb can often be

calculated directly by the retrieval code. If this can’t be

done, Kb can be calculated from forward model runs with

Kb=[F(x,b+Δb)–F(x,b)]/Δb(but mention the catch with sfit2 normalisation)

Page 5: Some thoughts on error handling for FTIR retrievals Prepared by Stephen Wood and Brian Connor, NIWA with input and ideas from others

Combining model parameter errorsCombining model parameter errors

Once you have a Kb (vector or matrix) then estimating the error involves estimating Sb (single value or square matrix) and then calculating GyKbSbKb

TGyT

These contributions can then be summed over all b. While the various Sb might be different dimensions, all the products KbSbKb

T do have the same dimensions.

Since the measurement error also has the same dependence on Gy, a further possibility is to add all the KbSbKb

T terms directly to an Sε (measurement covariance) and transform with Gy to give a combined error that covers measurement and model parameter errors

Page 6: Some thoughts on error handling for FTIR retrievals Prepared by Stephen Wood and Brian Connor, NIWA with input and ideas from others

a) Perturbation methods. Run the retrieval with some input changed by a typical amount, evaluate the change in the retrieval (difficult to generalise to multiple dimensions)

b) Tools developed to aid with error evaluation. For sfit2, one is written in IDL (sfit2ers, error simulation) and there has been an equivalent MATLAB tool produced. These have taken the approach of evaluating some error terms for a typical case, the intention being to apply the results to all retrievals. There are limitations to this

●Not all errors are handled. Usually only measurement and smoothing error

●The quality of spectra may vary and so be different from the typical case

●The simulation of what the retrieval does may not be perfect

How have we been doing error How have we been doing error analysis and characterisation?analysis and characterisation?

Page 7: Some thoughts on error handling for FTIR retrievals Prepared by Stephen Wood and Brian Connor, NIWA with input and ideas from others

Batched error calculationsBatched error calculations

We have tried one approach at Lauder for producing error and kernel

calculations for each retrieval in a dataset.

We run batches of sfit2 with K-files (contain Kx, Se-1, Sa

-1) from each

retrieval saved.

We then have a post-processing tool (in IDL) that picks this information

up and does kernel and error calculations. As it doesn’t handle all model

parameter errors, this currently has no more capability than an error code

built-in to sfit2 could have, but is more easily modified and extendable to

evaluate more errors on individual retrievals and to match the differing

requirements of various projects. It could read in information that

quantified other errors to include in the calculations.

Page 8: Some thoughts on error handling for FTIR retrievals Prepared by Stephen Wood and Brian Connor, NIWA with input and ideas from others

Which errors should be included in Which errors should be included in an archive?an archive?

It is unrealistic to expect a full error analysis to be included with each retrieval in an archive. Such a complete analysis would include errors from

•A priori uncertainty (smoothing error) •Random spectral noise (Measurement error)•Interfering gases•ILS and how it is modelled. •Other instrumental effects (detector non-linearities, channelling, filter or background shape)•Spectroscopic data (line strengths, widths)•The assumed value of solar zenith angle•Assumed pressure or temperature profiles•the refraction and ray tracing calculations•forward model errors

Which of these should be included in an archived error analysis?

Page 9: Some thoughts on error handling for FTIR retrievals Prepared by Stephen Wood and Brian Connor, NIWA with input and ideas from others

Our suggestion for deciding what Our suggestion for deciding what errors to includeerrors to include

The idea of not including smoothing error in archives is a good one, as long as the information to evaluate it or to apply similar smoothing to comparative data is included.

One suggestion is to include only those errors that contribute random or uncorrelated errors to the measured spectrum and

hence the retrieved profiles. This includes measurement noise, temperature uncertainties, interfering gases.

Errors that produce fully correlated errors in the spectrum and are likely to produce a similar error in retrieved profiles. These errors could be characterised in metadata within the archive, giving likely magnitudes and effects on the profile, and not included in the error calculation with each retrieval. One example is line parameter errors.

Page 10: Some thoughts on error handling for FTIR retrievals Prepared by Stephen Wood and Brian Connor, NIWA with input and ideas from others

TrapsTraps

There are some easy mistakes that can be madeThere are some easy mistakes that can be made consider a model parameter consider a model parameter bb , like an interfering , like an interfering

gas, the error is gas, the error is SSparpar= G= Gyy(K(KbbSSbbKKbbTT)G)Gyy

TT

Should SShould Sbb is the variability covariance of b, or is the variability covariance of b, or

should be the remaining uncertainty (covariance) should be the remaining uncertainty (covariance) in in b ?b ?

For example: think about how T error is handled. Is For example: think about how T error is handled. Is the covariance needed the full variability in T or the the covariance needed the full variability in T or the uncertainty in the T profiles that are used? uncertainty in the T profiles that are used?

Page 11: Some thoughts on error handling for FTIR retrievals Prepared by Stephen Wood and Brian Connor, NIWA with input and ideas from others

EndEnd

Page 12: Some thoughts on error handling for FTIR retrievals Prepared by Stephen Wood and Brian Connor, NIWA with input and ideas from others

Specific problems/issues with Specific problems/issues with sfit2erssfit2ers

Last year a number of bugs and issues with sfit2ers were found and fixed. Since then a few more have surfaced which have not yet been addressed•point spacing dependence. For use as an evaluation tool, sfit2ers needs to be independent of having a measured spectrum and so sets its own point spacing, but this means it's not matching what sfit2 does with a real spectrum. The current point spacing is too dense and will be changed. Is the solution to have a switch to choose how point spacing is set?

•Evaluation of off-diagonal values of Sx (climatological covariance)

doesn't match the way Sa is evaluated internally in sfit2.

•Input of non-diagonal Se doesn't work for multiple windows yet.

Page 13: Some thoughts on error handling for FTIR retrievals Prepared by Stephen Wood and Brian Connor, NIWA with input and ideas from others

From Talk S. Wood 2007From Talk S. Wood 2007

Page 14: Some thoughts on error handling for FTIR retrievals Prepared by Stephen Wood and Brian Connor, NIWA with input and ideas from others

• Several error sources to consider & evaluateSeveral error sources to consider & evaluate• An inclusive error analysis tool? – difficultAn inclusive error analysis tool? – difficult• An estimate for each retrieval? An estimate for each retrieval? • Error evaluation might use different S to Error evaluation might use different S to

retrieval retrieval • Have considered errors as independent, but …Have considered errors as independent, but …• Suggestion of a Suggestion of a ““how-tohow-to”” guide and examples guide and examples• Do data users also need a guide, an error Do data users also need a guide, an error ““tooltool””??

Small group to produce a guide?Small group to produce a guide?

discussion points from discussion points from IRWG '06IRWG '06

Page 15: Some thoughts on error handling for FTIR retrievals Prepared by Stephen Wood and Brian Connor, NIWA with input and ideas from others

How many errors is How many errors is enough?enough?

Noise Noise SSmeasmeas=G=GyySSεεGGyyTT

FM model parameters. FM model parameters. SSparpar= G= Gyy(( ∑∑KKbbSSbbKKbbTT)G)Gyy

TT ILS, SZA, other gases, line parameters ... ILS, SZA, other gases, line parameters ...

which?which? are they fit routinely or fixed? consider are they fit routinely or fixed? consider

both, but treat accordinglyboth, but treat accordingly Derivatives KDerivatives K

bb may be easy (from code) or may be easy (from code) or

difficult (finite difference of two FM runs). difficult (finite difference of two FM runs). Temperature – no derivatives in SFIT2, I have Temperature – no derivatives in SFIT2, I have

a finite difference method set up. a finite difference method set up.

Page 16: Some thoughts on error handling for FTIR retrievals Prepared by Stephen Wood and Brian Connor, NIWA with input and ideas from others

Decisions about archiving Decisions about archiving errorserrors

How much error analysis is desirable or How much error analysis is desirable or adequate for archiving?adequate for archiving?

how much should errors be broken down in an how much should errors be broken down in an archive or is it OK to just record one archive or is it OK to just record one covariance? Perhaps 2, total random and total covariance? Perhaps 2, total random and total systematic?, in some case the difference is systematic?, in some case the difference is clear, not in others...clear, not in others...

Perhaps a description field for errorsPerhaps a description field for errors seems to be good support for leaving out seems to be good support for leaving out

smoothing error, but provide A, and xsmoothing error, but provide A, and xa a so user so user

can calculate it can calculate it