DART LAB Section02...DART_LAB Tutorial Section 2:How should observations impact an unobservedstate...
Transcript of DART LAB Section02...DART_LAB Tutorial Section 2:How should observations impact an unobservedstate...
TheNationalCenterforAtmosphericResearchissponsoredbytheNationalScienceFoundation.Anyopinions,findingsandconclusionsorrecommendationsexpressedinthispublicationarethoseoftheauthor(s)anddonotnecessarilyreflecttheviewsoftheNationalScienceFoundation.
©UCAR2014
DART_LABTutorialSection2: Howshouldobservationsimpactanunobserved statevariable?
Multivariateassimilation.
Singleobservedvariable,singleunobservedvariable.
DART_LAB Section2:2 of45
Sofar,wehaveaknownobservationlikelihoodforasinglevariable.
Now,supposethepriorhasanadditionalvariable…
Wewillexaminehowensemblemembersupdatetheadditionalvariable.
Basicmethodgeneralizestoanynumberofadditionalvariables.
Ensemblefilters:Updatingadditionalpriorstatevariables
3
3.5
4
4.5
5
Unob
serv
ed S
tate
Var
iabl
e
−2 0 2 4Observed Variable
Assumethatallweknowisthepriorjointdistribution.
Onevariableisobserved.
Whatshouldhappentotheunobservedvariable?
DART_LAB Section2:3 of45
Ensemblefilters:Updatingadditionalpriorstatevariables
33.5
44.5
5
Unob
s.
−2 0 2 4Observed Variable
Assumethatallweknowisthepriorjointdistribution.
Onevariableisobserved.
Updateobservedvariablewithoneofthepreviousmethods.
DART_LAB Section2:4 of45
Ensemblefilters:Updatingadditionalpriorstatevariables
Assumethatallweknowisthepriorjointdistribution.
Onevariableisobserved.
Updateobservedvariablewithoneofthepreviousmethods.
33.5
44.5
5
Unob
s.
−2 0 2 4Observed Variable
DART_LAB Section2:5 of45
Ensemblefilters:Updatingadditionalpriorstatevariables
Assumethatallweknowisthepriorjointdistribution.
Onevariableisobserved.
Updateobservedvariablewithoneofthepreviousmethods.
33.5
44.5
5
Unob
s.
−2 0 2 4Observed Variable
DART_LAB Section2:6 of45
Ensemblefilters:Updatingadditionalpriorstatevariables
Assumethatallweknowisthepriorjointdistribution.
Onevariableisobserved.
Computeincrementsforpriorensemblemembersofobservedvariable.
33.5
44.5
5
Unob
s.
−2 0 2 4Observed Variable
Increments
DART_LAB Section2:7 of45
Ensemblefilters:Updatingadditionalpriorstatevariables
Assumethatallweknowisthepriorjointdistribution.
Onevariableisobserved.
Computeincrementsforpriorensemblemembersofobservedvariable.
33.5
44.5
5
Unob
s.
−2 0 2 4Observed Variable
Increments
DART_LAB Section2:8 of45
Ensemblefilters:Updatingadditionalpriorstatevariables
Assumethatallweknowisthepriorjointdistribution.
Onevariableisobserved.
Computeincrementsforpriorensemblemembersofobservedvariable.
33.5
44.5
5
Unob
s.
−2 0 2 4Observed Variable
Increments
DART_LAB Section2:9 of45
Ensemblefilters:Updatingadditionalpriorstatevariables
Assumethatallweknowisthepriorjointdistribution.
Onevariableisobserved.
Computeincrementsforpriorensemblemembersofobservedvariable.
33.5
44.5
5
Unob
s.
−2 0 2 4Observed Variable
Increments
DART_LAB Section2:10 of45
Ensemblefilters:Updatingadditionalpriorstatevariables
Assumethatallweknowisthepriorjointdistribution.
Onevariableisobserved.
Computeincrementsforpriorensemblemembersofobservedvariable.
33.5
44.5
5
Unob
s.
−2 0 2 4Observed Variable
Increments
DART_LAB Section2:11 of45
Ensemblefilters:Updatingadditionalpriorstatevariables
Usingonlyincrementsguaranteesthatifobservationhadnoimpactonobservedvariable,theunobservedvariableisunchanged.
Highlydesirable!
33.5
44.5
5
Unob
s.
−2 0 2 4Observed Variable
Increments
DART_LAB Section2:12 of45
Ensemblefilters:Updatingadditionalpriorstatevariables
Assumethatallweknowisthepriorjointdistribution.
Howshouldtheunobservedvariablebeimpacted?
1st choice:leastsquares
Equivalenttolinearregression.
Sameasassumingbinormal prior.
3
3.5
4
4.5
5
Unob
serv
ed S
tate
Var
iabl
e
−2 0 2 4Observed Variable
Increments
DART_LAB Section2:13 of45
Ensemblefilters:Updatingadditionalpriorstatevariables
Havejointpriordistributionoftwovariables.
Howshouldtheunobservedvariablebeimpacted?
1st choice:leastsquares
Beginbyfindingleastsquaresfit.
3
3.5
4
4.5
5
Unob
serv
ed S
tate
Var
iabl
e
−2 0 2 4Observed Variable
Increments
DART_LAB Section2:14 of45
Ensemblefilters:Updatingadditionalpriorstatevariables
Havejointpriordistributionoftwovariables.
Next,regresstheobservedvariableincrementsontoincrementsfortheunobservedvariable.
Equivalenttofirstfindingimageofincrementinjointspace.
3
3.5
4
4.5
5
Unob
serv
ed S
tate
Var
iabl
e
−2 0 2 4Observed Variable
Increments
DART_LAB Section2:15 of45
Ensemblefilters:Updatingadditionalpriorstatevariables
Havejointpriordistributionoftwovariables.
Next,regresstheobservedvariableincrementsontoincrementsfortheunobservedvariable.
Equivalenttofirstfindingimageofincrementinjointspace.
3
3.5
4
4.5
5
Unob
serv
ed S
tate
Var
iabl
e
−2 0 2 4Observed Variable
Increments
DART_LAB Section2:16 of45
Ensemblefilters:Updatingadditionalpriorstatevariables
Havejointpriordistributionoftwovariables.
Next,regresstheobservedvariableincrementsontoincrementsfortheunobservedvariable.
Equivalenttofirstfindingimageofincrementinjointspace.
3
3.5
4
4.5
5
Unob
serv
ed S
tate
Var
iabl
e
−2 0 2 4Observed Variable
Increments
DART_LAB Section2:17 of45
Ensemblefilters:Updatingadditionalpriorstatevariables
Havejointpriordistributionoftwovariables.
Next,regresstheobservedvariableincrementsontoincrementsfortheunobservedvariable.
Equivalenttofirstfindingimageofincrementinjointspace.
3
3.5
4
4.5
5
Unob
serv
ed S
tate
Var
iabl
e
−2 0 2 4Observed Variable
Increments
DART_LAB Section2:18 of45
Ensemblefilters:Updatingadditionalpriorstatevariables
Havejointpriordistributionoftwovariables.
Next,regresstheobservedvariableincrementsontoincrementsfortheunobservedvariable.
Equivalenttofirstfindingimageofincrementinjointspace.
3
3.5
4
4.5
5
Unob
serv
ed S
tate
Var
iabl
e
−2 0 2 4Observed Variable
Increments
DART_LAB Section2:19 of45
Ensemblefilters:Updatingadditionalpriorstatevariables
Havejointpriordistributionoftwovariables.
Regression:Equivalenttofirstfindingimageofincrementinjointspace.
Thenprojectingfromjointspaceontounobservedpriors.
DART_LAB Section2:20 of45
3
3.5
4
4.5
5
Unob
serv
ed S
tate
Var
iabl
e
−2 0 2 4Observed Variable
Increments
Ensemblefilters:Updatingadditionalpriorstatevariables
Havejointpriordistributionoftwovariables.
Regression:Equivalenttofirstfindingimageofincrementinjointspace.
Thenprojectingfromjointspaceontounobservedpriors.
DART_LAB Section2:21 of45
3
3.5
4
4.5
5
Unob
serv
ed S
tate
Var
iabl
e
−2 0 2 4Observed Variable
Increments
Ensemblefilters:Updatingadditionalpriorstatevariables
Havejointpriordistributionoftwovariables.
Regression:Equivalenttofirstfindingimageofincrementinjointspace.
Thenprojectingfromjointspaceontounobservedpriors.
DART_LAB Section2:22 of45
3
3.5
4
4.5
5
Unob
serv
ed S
tate
Var
iabl
e
−2 0 2 4Observed Variable
Increments
Ensemblefilters:Updatingadditionalpriorstatevariables
Havejointpriordistributionoftwovariables.
Regression:Equivalenttofirstfindingimageofincrementinjointspace.
Thenprojectingfromjointspaceontounobservedpriors.
DART_LAB Section2:23 of45
3
3.5
4
4.5
5
Unob
serv
ed S
tate
Var
iabl
e
−2 0 2 4Observed Variable
Increments
Ensemblefilters:Updatingadditionalpriorstatevariables
Havejointpriordistributionoftwovariables.
Regression:Equivalenttofirstfindingimageofincrementinjointspace.
Thenprojectingfromjointspaceontounobservedpriors.
DART_LAB Section2:24 of45
3
3.5
4
4.5
5
Unob
serv
ed S
tate
Var
iabl
e
−2 0 2 4Observed Variable
Increments
Ensemblefilters:Updatingadditionalpriorstatevariables
Nowhaveanupdated(posterior)ensemblefortheunobservedvariable.
FittingGaussiansshowsthatmeanandvariancehavechanged.
Otherfeaturesofthepriordistributionmayalsohavechanged.3
3.5
4
4.5
5
Unob
serv
ed S
tate
Var
iabl
e
−2 0 2 4Obs.We’veexpandedthisplot.Same
informationaspreviousslides.Compressedthesetwo.Compressedthesetwo.
DART_LAB Section2:25 of45
Ensemblefilters:Updatingadditionalpriorstatevariables
Nowhaveanupdated(posterior)ensemblefortheunobservedvariable.
FittingGaussiansshowsthatmeanandvariancehavechanged.
Otherfeaturesofthepriordistributionmayalsohavechanged.3
3.5
4
4.5
5
Unob
serv
ed S
tate
Var
iabl
e
Prior State Fit
−2 0 2 4Obs.
DART_LAB Section2:26 of45
Ensemblefilters:Updatingadditionalpriorstatevariables
Nowhaveanupdated(posterior)ensemblefortheunobservedvariable.
FittingGaussiansshowsthatmeanandvariancehavechanged.
Otherfeaturesofthepriordistributionmayalsohavechanged.3
3.5
4
4.5
5
Unob
serv
ed S
tate
Var
iabl
e
Prior State Fit
Posterior Fit
−2 0 2 4Obs.
DART_LAB Section2:27 of45
Ensemblefilters:Updatingadditionalpriorstatevariables
CRITICALPOINT:
Sinceimpactonunobservedvariableissimplyalinearregression,candothisINDEPENDENTLYforanynumberofunobservedvariables!
CouldalsodomanyatonceusingmatrixalgebraasintraditionalKalmanFilter.
3
3.5
4
4.5
5
Unob
serv
ed S
tate
Var
iabl
e
Prior State Fit
Posterior Fit
−2 0 2 4Obs.
DART_LAB Section2:28 of45
Anderson,J.L.,2003:Alocalleastsquaresframeworkforensemblefiltering.Mon.Wea.Rev.,131,634-642
Matlab Hands-On:twod_ensemblePurpose:Explorehowanunobservedstatevariableisupdatedbyanobservationofanotherstatevariable.
DART_LAB Section2:29 of45
Matlab Hands-On:twod_ensemble
DART_LAB Section2:30 of45
Bivariateensembleplotwithprojectedmarginals forobserved,unobservedvariables.
Detailedplotforobservedvariable;sameasoned_ensemble.
Controlobservationvalueanderror;sameasoned_ensemble.
Startcreatinganensemble.Seenextslide.
Matlab Hands-On:twod_ensemble
DART_LAB Section2:31 of45
Startcreatinganensemble.Movecursorandclickinthisframetocreateensemblemembers.Clickoutsidethisframewhenallmembersarecreated.
Matlab Hands-On:twod_ensemble
Explorations:• Createensemblemembersthatarenearlyonaline.Explorehowthe
unobservedvariableisupdated.
• Whathappensfornearlyuncorrelatedobservedandunobservedvariables?Createaroundishcloudofpointsfortheprior.
• Whathappenswithatwo-dimensionalbimodaldistribution?
• Trypriorensembleswithvarioustypesofoutliers.
DART_LAB Section2:32 of45
SchematicofanEnsembleFilterforGeophysicalDataAssimilation
Ensemblestateestimateafterusingpreviousobservation(analysis)
Ensemblestateattimeofnextobservation(prior)
1. Usemodeltoadvanceensemble (3membershere)totimeatwhichnextobservationbecomesavailable.
DART_LAB Section2:33 of45
HowanEnsembleFilterWorksforGeophysicalDataAssimilation
2. Getpriorensemblesampleofobservation,y = h(x),byapplyingforwardoperatorh toeachensemblemember.
Theory:observationsfrominstrumentswithuncorrelatederrorscanbedonesequentially.
DART_LAB Section2:34 of45
Houtekamer,P.L.andH.L.Mitchell,2001:AsequentialensembleKalman filterforatmosphericdataassimilation.Mon.Wea.Rev.,129,123-137
HowanEnsembleFilterWorksforGeophysicalDataAssimilation
3. Getobservedvalue andobservationalerrordistributionfromobservingsystem.
DART_LAB Section2:35 of45
HowanEnsembleFilterWorksforGeophysicalDataAssimilation
4. Findtheincrements forthepriorobservationensemble(thisisascalarproblemforuncorrelatedobservationerrors).
Note:Differencebetweenvariousensemblefiltermethodsisprimarilyinobservationincrementcalculation.
DART_LAB Section2:36 of45
HowanEnsembleFilterWorksforGeophysicalDataAssimilation
5. Useensemblesamplesofy andeachstatevariabletolinearlyregressobservationincrementsontostatevariableincrements.
Theory:impactofobservationincrementsoneachstatevariablecanbehandledindependently!
DART_LAB Section2:37 of45
HowanEnsembleFilterWorksforGeophysicalDataAssimilation
6. Whenallensemblemembersforeachstatevariableareupdated,thereisanewanalysis.Integratetotimeofnextobservation…
DART_LAB Section2:38 of45
Matlab Hands-On:run_lorenz_63Purpose:ExplorebehaviorofensembleKalman filtersinalow-order,chaoticdynamicalsystem,the3-variableLorenz1963model.
DART_LAB Section2:39 of45
‘Local’domain,localtimeframe
Fulldomain,fulltimeframe.
Thesecontrolsworkthesameasforoned_model.
Assimilationcanbeturnedoff,justdoesmodeladvances.
Matlab Hands-On:run_lorenz_63Bothpanelsshowtimeevolutionoftruestate(black).20ensemblemembersareshowningreenintopwindow.
At each observation time, the three components of the truth are 'observed’ by adding a random draw from a standard normal distribution to the true value.
Increments
*
DART_LAB Section2:40 of45
Observation
Matlab Hands-On:run_lorenz_63
DART_LAB Section2:41 of45
Youcanusematlab toolstomodifyplots.
Here,theRotate3Dtoolshasbeenusedtochangetheangleofviewofboththelocalandglobalviewsoftheassimilation.
Matlab Hands-On:run_lorenz_63
Explorations:
• SelectStartAutoRunandwatchtheevolutionoftheensemble.Trytounderstandhowtheensemblespreadsout.
• RestarttheGUIandselectEAKF.Doindividualadvancesandassimilationsandobservethebehavior.
• Dosomeautorunswithassimilationturnedon.
• Explorehowdifferentareasoftheattractorhavedifferentassimilationbehavior.
DART_LAB Section2:42 of45
Matlab Hands-On:run_lorenz_96Purpose:Explorethebehaviorofensemblefiltersina40-variablechaoticdynamicalsystem;theLorenz1996model.
DART_LAB Section2:43 of45
Thesecontrolsworkthesameaslorenz_63.
Rootmeansquareerrorfromtruthandensemblespreadasfunctionoftime.
Priorandposteriorrankhistograms.
Parametersforensemblefilter.
Modelforcing.
Ensembleofmodelcontours(spaghettiplot).
Matlab Hands-On:run_lorenz_96StartaFreeRunoftheensemble(NoAssimilation).Aftersometime,theminuteperturbationsintheoriginalstatesleadtovisiblydifferentmodelstates.
Noposteriorinafreerun.
Takesawhileforthesmallinitialperturbationstogrow.
Ensemblesizeis20,sothereare21binsintherankhistogram.
DART_LAB Section2:44 of45
Matlab Hands-On:run_lorenz_961) Stopthefreerunaftersometime.2) TurnontheEAKF3) Advancemodel,assimilate…
Yourfigureswillbedifferentdependingonyoursettings.That’sOK.
Note:All40statevariablesareobserved.Observationerrorstandarddeviationis4.0
DART_LAB Section2:45 of45
Matlab Hands-On: run_lorenz_96
Explorations:• Doanextendedfreeruntoseeerrorgrowthintheensemble.
Howlongdoesittaketosaturate?• SelectEAKFandexplorehowtheassimilationworks.• Tryaddinginflation(maybe1.4)andrepeat.
DART_LAB Section2:46 of45