Upload
victoria-gilbert
View
217
Download
3
Tags:
Embed Size (px)
Citation preview
Sept. 24-27, 2002 Text Product Infrastructure 1
GFESuite Text ProductsGFESuite Text ProductsTracy Hansen
Sept. 24-27, 2002 Text Product Infrastructure 2
OverviewOverviewEvolution of GFESuite Text Products: Evolution of GFESuite Text Products:
Past, Present, FuturePast, Present, FutureGenerating Text ProductsGenerating Text ProductsExample ProductsExample ProductsText Product InfrastructureText Product InfrastructureText Product TemplateText Product TemplateLocal CustomizationLocal Customization
Sept. 24-27, 2002 Text Product Infrastructure 3
Evolution of GFESuite Text ProductsEvolution of GFESuite Text Products Philosophy of GFE FormattersPhilosophy of GFE Formatters
Python allows customizationPython allows customizationResponsibility for rules more on forecastersResponsibility for rules more on forecastersResponsibility for infrastructure on FSLResponsibility for infrastructure on FSL
Sept. 24-27, 2002 Text Product Infrastructure 4
ExplorationExploration
Local FormatterLocal FormatterInfusion Plan 8/02Infusion Plan 8/02
MultipleMultipleversionsversions
BackwardBackwardCompatibleCompatible
RPP Development Cycle
Inception 9/98Inception 9/98
Sept. 24-27, 2002 Text Product Infrastructure 5
Evolution of GFESuite Text ProductsEvolution of GFESuite Text Products Local Formatter Infusion PlanLocal Formatter Infusion Plan
For the NWS, in concert with FSL, to For the NWS, in concert with FSL, to develop a core set of GFESuite text develop a core set of GFESuite text formatters as an alternative approach to formatters as an alternative approach to IFPS text product generation providing IFPS text product generation providing potential risk reduction for the September potential risk reduction for the September 2003 IOC. 2003 IOC.
By providing a core set of standardized By providing a core set of standardized local formatters, the number of versions in local formatters, the number of versions in the field will be minimized while still the field will be minimized while still allowing local customization.allowing local customization.
Sept. 24-27, 2002 Text Product Infrastructure 6
Evolution of GFESuite Text ProductsEvolution of GFESuite Text Products Local Formatter Infusion PlanLocal Formatter Infusion Plan
Local Formatter Development TeamLocal Formatter Development TeamWorkshop in August Workshop in August
Sept. 24-27, 2002 Text Product Infrastructure 7
Inception 9/98Inception 9/98
ExplorationExplorationConsolidationConsolidation
Local FormatterLocal FormatterInfusion Plan 8/02Infusion Plan 8/02
MultipleMultipleversionsversions
BackwardBackwardCompatibleCompatible
ChangingChangingInfrastructureInfrastructure
IntegratingIntegratingVersionsVersions
Initial Products Initial Products for Testing 10/02for Testing 10/02
RPP Development Cycle
Sept. 24-27, 2002 Text Product Infrastructure 8
Evolution of GFESuite Text ProductsEvolution of GFESuite Text Products Present Maturity LevelsPresent Maturity Levels
Public: ZFP/SAF 3 5Marine: CWF 3 5 GLF 0 7 NSH 0 7 MVF 0 8Fire: FWF 3 5 FWF Table 4 7 FWM 2 8Tabular: CCF 5 9 SFT 0 9 AFM/PFM 3 (RDF) 9
RPP17 RPP19Product
Sept. 24-27, 2002 Text Product Infrastructure 9
Evolution of GFESuite Text ProductsEvolution of GFESuite Text Products PresentPresent
Oct 1Oct 1: Initial set of products available : Initial set of products available Oct 02 - Jun 03Oct 02 - Jun 03: The core products will be improved : The core products will be improved
and refined for operational use through the RPP and refined for operational use through the RPP feedback process. feedback process.
HOW WILL THIS FEEDBACK PROCESS WORK?HOW WILL THIS FEEDBACK PROCESS WORK?
Sept. 24-27, 2002 Text Product Infrastructure 10
Feedback in Exploration PhaseFeedback in Exploration Phase
Install and customize products.Install and customize products. Identify enhancements needed.Identify enhancements needed.Make local modifications to new products Make local modifications to new products
using the infrastructure, writing new using the infrastructure, writing new methods and code to override the existing methods and code to override the existing methodsmethods
Sept. 24-27, 2002 Text Product Infrastructure 11
Feedback in Exploration Phase Feedback in Exploration Phase
List Server Questions/FeedbackList Server Questions/Feedback
CustomizationCustomizationHelpHelp
ForecastersForecasters FSLFSL
Help withHelp withTrouble-shootingTrouble-shooting
Revised Product Revised Product for Site Afor Site A
Revised Product Revised Product for Site Bfor Site B
Sept. 24-27, 2002 Text Product Infrastructure 12
Feedback in Exploration PhaseFeedback in Exploration Phase
Individual sites satisfiedIndividual sites satisfiedFSL provides support for local FSL provides support for local
developmentdevelopmentMultiple solutions to the same problem Multiple solutions to the same problem Enhancements not available to allEnhancements not available to all
Sept. 24-27, 2002 Text Product Infrastructure 13
Feedback in Consolidation PhaseFeedback in Consolidation Phase
Integrating VersionsIntegrating VersionsInfrastructure is ChangingInfrastructure is Changing
Sept. 24-27, 2002 Text Product Infrastructure 14
Feedback in Consolidation PhaseFeedback in Consolidation Phase
New Release: New Release: BREAKBREAK localized products localized productsTime to recover: Time to recover: Days to weeksDays to weeksProgress on new products: Progress on new products: reduced byreduced by 30-50%30-50%Enhancements not available to allEnhancements not available to all
Using Feedback Process from Using Feedback Process from Exploration PhaseExploration Phase
Sept. 24-27, 2002 Text Product Infrastructure 15
Install and customize new products.Install and customize new products. Identify enhancements needed.Identify enhancements needed. Make local modifications to new products using Make local modifications to new products using
the infrastructure, writing new methods and the infrastructure, writing new methods and code to override the existing methodscode to override the existing methods
Feedback in Consolidation PhaseFeedback in Consolidation Phase
Sept. 24-27, 2002 Text Product Infrastructure 16
List Server Questions/FeedbackList Server Questions/Feedback
CustomizationCustomizationHelpHelp
Product Team and LeaderProduct Team and Leader FSLFSL
Bug ReportBug ReportEnhancementEnhancement
RequestRequest
Revised Revised ProductProduct Revised Revised
InfrastructureInfrastructure
Interim solution Interim solution for all Sitesfor all Sites
Feedback in Consolidation PhaseFeedback in Consolidation Phase
Sept. 24-27, 2002 Text Product Infrastructure 17
Individual sites have interim solutionIndividual sites have interim solutionTeam and FSL spend time on new Team and FSL spend time on new
product improvementproduct improvementOne solution to the same problem --> One solution to the same problem -->
easier to understand and maintaineasier to understand and maintainEnhancement is available to allEnhancement is available to all
Feedback in Consolidation PhaseFeedback in Consolidation Phase
Sept. 24-27, 2002 Text Product Infrastructure 18
New Release: New Release: LESS LIKELY TO BREAKLESS LIKELY TO BREAK localized productslocalized products
Time to Recover: Time to Recover: <1 hour<1 hourProgress on new products: Progress on new products: increasedincreased
Feedback in Consolidation PhaseFeedback in Consolidation Phase
Sept. 24-27, 2002 Text Product Infrastructure 19
Use feedback process for benefit of allUse feedback process for benefit of all In some cases, be willing to settle for less In some cases, be willing to settle for less
functionality functionality in the short termin the short termTo help build fully featured and maintainable To help build fully featured and maintainable
products products in the long termin the long term
Feedback in Consolidation PhaseFeedback in Consolidation PhaseSummarySummary
Sept. 24-27, 2002 Text Product Infrastructure 20
Inception 9/98Inception 9/98
ExplorationExplorationConsolidationConsolidation
Local FormatterLocal FormatterInfusion Plan 8/02Infusion Plan 8/02
MultipleMultipleversionsversions
BackwardBackwardCompatibleCompatible
ChangingChangingInfrastructureInfrastructure
IntegratingIntegratingVersionsVersions
Initial Products Initial Products for Testing 10/02for Testing 10/02
RPP Development Cycle
Standardized LocalStandardized LocalProducts 6/03Products 6/03
Sept. 24-27, 2002 Text Product Infrastructure 21
Evolution of GFESuite Text ProductsEvolution of GFESuite Text Products Future Future
Mature productsMature productsMature InfrastructureMature InfrastructureLocal customization can extend to Local customization can extend to
enhancements to the standard products enhancements to the standard products and new products and new products
Sept. 24-27, 2002 Text Product Infrastructure 22
Generating Text ProductsGenerating Text ProductsFrom GFEFrom GFE
Publish to Publish to OfficialOfficial
Main Menu: Main Menu: Products-Products->Generate >Generate ProductsProducts
Select Product(s)Select Product(s)
Sept. 24-27, 2002 Text Product Infrastructure 23
Generating Text ProductsGenerating Text ProductsFrom XNOWFrom XNOW
Allows for Combinations on-the-flyAllows for Combinations on-the-flyInformation: Information:
http://www.srh.noaa.gov/ama/xnowhttp://www.srh.noaa.gov/ama/xnow
Sept. 24-27, 2002 Text Product Infrastructure 24
Example ProductsExample Products
TablesTablesArea By Element, Area By PeriodArea By Element, Area By PeriodElement By Area, Element By PeriodElement By Area, Element By PeriodPeriod By Element, Period By AreaPeriod By Element, Period By AreaFire Weather TableFire Weather TableSurface Temperature TableSurface Temperature TableQPF TableQPF Table
Sept. 24-27, 2002 Text Product Infrastructure 25
Example ProductsExample Products
Area By ElementArea By Element
Sept. 24-27, 2002 Text Product Infrastructure 26
Example ProductsExample Products
Period By AreaPeriod By Area
Sept. 24-27, 2002 Text Product Infrastructure 27
Example ProductsExample Products
Element By PeriodElement By Period
Sept. 24-27, 2002 Text Product Infrastructure 28
Example Text ProductsExample Text Products Temperature/PoP Table - Temperature/PoP Table - TucsonTucson Coded Forecast - Coded Forecast - BoulderBoulder RDF - Revised Digital Forecast -RDF - Revised Digital Forecast -Charleston, Charleston,
BoulderBoulder Matrix - Matrix - SacramentoSacramento Area Forecast - Area Forecast - Boulder, Tampa BayBoulder, Tampa Bay Spanish Area Forecast - Spanish Area Forecast - MiamiMiami Marine Forecast - Marine Forecast - Tampa BayTampa Bay Fire Area Forecast - Fire Area Forecast - BoulderBoulder Fire Weather Table - Fire Weather Table - Charleston, Tampa BayCharleston, Tampa Bay
Sept. 24-27, 2002 Text Product Infrastructure 29
Example ProductsExample Products
Temperature/PoP TableTemperature/PoP Table
Sept. 24-27, 2002 Text Product Infrastructure 30
Example ProductsExample Products
Coded ForecastCoded Forecast
Sept. 24-27, 2002 Text Product Infrastructure 31
Example ProductsExample Products
RDF (now AFM)RDF (now AFM)
Sept. 24-27, 2002 Text Product Infrastructure 32
Example ProductsExample Products
MatrixMatrix
Sept. 24-27, 2002 Text Product Infrastructure 33
Example ProductsExample Products
ZFPZFP
Sept. 24-27, 2002 Text Product Infrastructure 34
Example ProductsExample Products
Spanish ZFPSpanish ZFP
Sept. 24-27, 2002 Text Product Infrastructure 35
Example ProductsExample Products
CWFCWF
Sept. 24-27, 2002 Text Product Infrastructure 36
Example ProductsExample Products
FWFFWF
Sept. 24-27, 2002 Text Product Infrastructure 37
Example ProductsExample Products
FWF TableFWF Table
Sept. 24-27, 2002 Text Product Infrastructure 38
SmartScript LibrarySmartScript LibraryAccess to Data, Soundings,Access to Data, Soundings,Conversion MethodsConversion Methods
Forecast GridsForecast Grids
Smart Tool FrameworkSmart Tool Framework
D2D GridsD2D GridsSurface Model Surface Model
GridsGrids
Smart Tools and ProceduresSmart Tools and Procedures
Text Product InfrastructureText Product InfrastructureSimilar to Smart Tool FrameworkSimilar to Smart Tool Framework
Sept. 24-27, 2002 Text Product Infrastructure 39
Text Product InfrastructureText Product Infrastructure
OfficialOfficial DatabaseDatabase
Text Products
Text ProductText Product Framework
TableTable SeriesSeries
SamplerSampler
ComponentComponent
Sept. 24-27, 2002 Text Product Infrastructure 40
TextProduct InfrastructureTextProduct Infrastructure
Sampler Sampler Grids to Histograms Grids to Histograms
Sept. 24-27, 2002 Text Product Infrastructure 41
Official DatabaseDatabase
Text Products
Text Product FrameworkText Product Framework
SamplerSampler AnalysisAnalysis StatisticsStatistics
TableTable SeriesSeries
Text RulesRules
SmartSmart
Forecast LibraryForecast LibraryAccess to Sampling, Analysis,Access to Sampling, Analysis, Edit Areas, FormattingEdit Areas, Formatting
TextProduct InfrastructureTextProduct Infrastructure
Smart Text ProductsSmart Text Products
ComponentComponent
Sept. 24-27, 2002 Text Product Infrastructure 42
Smart Text Smart Text ProductsProducts
Inheritance Inheritance
Forecast Forecast LibraryLibrary
SampleSampleAnalysisAnalysis
TextRulesTextRules
Local Local Text ProductText Product
Text ProductText Product
SamplerSampler
Sept. 24-27, 2002 Text Product Infrastructure 43
Standard / Local filesStandard / Local filesStandard VersionStandard Version
Local VersionLocal Version
Sept. 24-27, 2002 Text Product Infrastructure 44
Product TemplateProduct Template
What is a Template?What is a Template? Standard format for text productsStandard format for text products
Why have a Template?Why have a Template? Consistency -->Consistency --> Easier to Understand -->Easier to Understand --> Easier to Customize and SupportEasier to Customize and Support
Sept. 24-27, 2002 Text Product Infrastructure 45
DocumentationDocumentation Purpose/DescriptionPurpose/Description Standard and Local File names and locationStandard and Local File names and location Customization PointsCustomization Points Weather Elements NeededWeather Elements Needed Edit Areas NeededEdit Areas Needed Associated Utility Files e.g. CombinationsAssociated Utility Files e.g. Combinations Component ProductsComponent Products Programmers and SupportProgrammers and Support Example OutputExample Output Additional InformationAdditional Information
Sept. 24-27, 2002 Text Product Infrastructure 46
Smart Text ProductsSmart Text Products Text Product TemplateText Product Template
Example Output
Documentation
Sept. 24-27, 2002 Text Product Infrastructure 47
Smart Text ProductsSmart Text Products Text Product TemplateText Product Template
VariableList
Definition
Inheritance
Sept. 24-27, 2002 Text Product Infrastructure 48
Smart Text Products Smart Text Products Text ProductText Product TemplateTemplate
Product-Specific Methods
Override InheritedThresholds, Variables, and Methods
Component Products
Analysis List
Sept. 24-27, 2002 Text Product Infrastructure 49
Smart Text ProductsSmart Text Products Template Main MethodTemplate Main Method
Generate Forecast
Get Variables
Set up Edit Areas
Set up Time Ranges
Sample Data
Product Header
Loop Over Edit Areas
Return Text String
Sept. 24-27, 2002 Text Product Infrastructure 50
Smart Text Products Smart Text Products Template Sub-MethodsTemplate Sub-Methods
Get Variables
Set up Time Ranges
Sample Data
Product Header
Edit Area Header
Make Product
Edit Area Footer
Product Footer
Sept. 24-27, 2002 Text Product Infrastructure 51
Smart Text ProductsSmart Text Products
Phrase Product ComponentsPhrase Product Components
““type”: “component”type”: “component”Determine Weather ElementsDetermine Weather Elements
Define Analysis Define Analysis (AnalysisClass)(AnalysisClass)
Determine Text Rules to create phrases Determine Text Rules to create phrases (TextRulesClass)(TextRulesClass)
Sept. 24-27, 2002 Text Product Infrastructure 52
Smart Text ProductsSmart Text Products
Component Phrase AnalysisComponent Phrase Analysis
"analysisList": ["analysisList": [ ( "MinT", self.avg),( "MinT", self.avg),
( "MaxT", self.avg),( "MaxT", self.avg), ( "T", self.hourlyTemp),( "T", self.hourlyTemp), ( "Sky", self.minmax, [2]),( "Sky", self.minmax, [2]), ( "PoP", self.avg),( "PoP", self.avg), ( "Snow", self.minmax),( "Snow", self.minmax), ( "Wind", self.vectorTextMinMax),( "Wind", self.vectorTextMinMax), ( "Wx", self.dominantWx)( "Wx", self.dominantWx) ], ],
Sept. 24-27, 2002 Text Product Infrastructure 53
Smart Text ProductsSmart Text Products
Component Phrase Text RulesComponent Phrase Text Rules
"textRules": [ "textRules": [ self.reportTrends,self.reportTrends, self.wind_summary,self.wind_summary, self.sky_phrase,self.sky_phrase, self.weatherRange_phrase,self.weatherRange_phrase, self.snow_phrase,self.snow_phrase, self.highs_phrase,self.highs_phrase, self.lows_phrase,self.lows_phrase, self.windRange_phrase, self.windRange_phrase, self.pop_phrase, self.pop_phrase, ],],
Sept. 24-27, 2002 Text Product Infrastructure 54
Smart Text ProductsSmart Text Products
Component Phrase ResultComponent Phrase Result
Warmer. Breezy. Partly cloudy. Isolated rain showers. Highs in Warmer. Breezy. Partly cloudy. Isolated rain showers. Highs in around 60. Winds northeast at 35 to 40 mph. Probability of around 60. Winds northeast at 35 to 40 mph. Probability of precipitation 20 percent.precipitation 20 percent.
Sept. 24-27, 2002 Text Product Infrastructure 55
Smart Text ProductsSmart Text Products
Series ProductsSeries Products
Determine Component PhrasesDetermine Component Phrases
Determine Time Period for each ComponentDetermine Time Period for each Component
Sept. 24-27, 2002 Text Product Infrastructure 56
Smart Text ProductsSmart Text Products
Series Product DefinitionSeries Product Definition
””SeriesDef": [SeriesDef": [
("Period”,12), ("Period", 12), ("Period",12),("Period",12), ("Period”,12), ("Period", 12), ("Period",12),("Period",12),
("Extended",24), ("Extended",24), ("Extended",24)("Extended",24), ("Extended",24), ("Extended",24)
],],
"labelType" :"Worded","labelType" :"Worded",
Sept. 24-27, 2002 Text Product Infrastructure 57
Smart Text ProductsSmart Text Products
Series ProductSeries Product
Sept. 24-27, 2002 Text Product Infrastructure 58
Smart Text Products Smart Text Products Local Template Local Template
Override InheritedThresholds,Variables,and Methods
Import Standard Product
Override VariableList (Optional)
Override Definition (Required)
Inherit from Standard Product
Sept. 24-27, 2002 Text Product Infrastructure 59
Local CustomizationLocal Customization
Stick to established Customization PointsStick to established Customization PointsUse Consolidation Feedback Process for Use Consolidation Feedback Process for
support and enhancementssupport and enhancements
Sept. 24-27, 2002 Text Product Infrastructure 60
Local CustomizationLocal Customization
To activate product: set displayName in Local To activate product: set displayName in Local file (e.g. file (e.g. FWF_LocalFWF_Local))
Standard file (e.g. Standard file (e.g. FWFFWF) is read-only) is read-onlyStudy “Customization Points” section of the Study “Customization Points” section of the
Standard fileStandard fileSet-up local customizations in Local fileSet-up local customizations in Local file
Sept. 24-27, 2002 Text Product Infrastructure 61
Activating New ProductsActivating New Products
Log in to GFE under a new userID, e.g. Log in to GFE under a new userID, e.g. TextTestTextTest
GFE-->Define Text Products DialogGFE-->Define Text Products Dialog
Sept. 24-27, 2002 Text Product Infrastructure 62
Activating New ProductsActivating New Products
Sept. 24-27, 2002 Text Product Infrastructure 63
Activating New ProductsActivating New Products
TextTestTextTest
AreaFcstAreaFcst
ZFP_LocalZFP_Local
AFMAFMAFM_LocalAFM_LocalCCFCCFCCF_LocalCCF_LocalFWFFWFFWF_LocalFWF_Local
SAF_LocalSAF_Local
Sept. 24-27, 2002 Text Product Infrastructure 64
Definition SectionDefinition Section
FWF Standard File:FWF Standard File: Definition = {Definition = { “ “displayName”: None, displayName”: None, “ “includeTempPopTable”: 0,includeTempPopTable”: 0, }}
FWF_Local:FWF_Local: Definition = FWF.TextProduct.DefinitionDefinition = FWF.TextProduct.Definition Definition[“displayName”] = “None”Definition[“displayName”] = “None” #Definition[“displayName”] = “FWF”#Definition[“displayName”] = “FWF”
Sept. 24-27, 2002 Text Product Infrastructure 65
Definition SectionDefinition Section
FWF Standard File:FWF Standard File: Definition = {Definition = { “ “displayName”: None, displayName”: None, “ “includeTempPopTable”: 0,includeTempPopTable”: 0, }}
FWF_Local:FWF_Local: Definition = FWF.TextProduct.DefinitionDefinition = FWF.TextProduct.Definition Definition[“displayName”] = “None”Definition[“displayName”] = “None” Definition[“displayName”] = “FWF”Definition[“displayName”] = “FWF”
Sept. 24-27, 2002 Text Product Infrastructure 66
Customization PointsCustomization Points
Definition SectionDefinition Section
Sept. 24-27, 2002 Text Product Infrastructure 67
Definition SectionDefinition Section
FWF Standard File:FWF Standard File: Definition = {Definition = { “ “displayName”: None, displayName”: None, “ “includeTempPopTable”: 0,includeTempPopTable”: 0, }}
FWF_Local:FWF_Local: Definition = FWF.TextProduct.DefinitionDefinition = FWF.TextProduct.Definition Definition[“displayName”] = “None”Definition[“displayName”] = “None” Definition[“displayName”] = “FWF”Definition[“displayName”] = “FWF”
Definition[“includeTempPopTable”] = 1Definition[“includeTempPopTable”] = 1
Sept. 24-27, 2002 Text Product Infrastructure 68
Customization PointsCustomization Points
Embryo StageEmbryo StageDefinition Section Definition Section Overriding Thresholds and VariablesOverriding Thresholds and VariablesComponent Product DefinitionsComponent Product DefinitionsTranslatorTranslator
Sept. 24-27, 2002 Text Product Infrastructure 69
Customization PointsCustomization Points Overriding Thresholds and Overriding Thresholds and
VariablesVariables
Sept. 24-27, 2002 Text Product Infrastructure 70
Objects and Data StructuresObjects and Data Structures
EditArea -- EditArea -- gives name and data pointsgives name and data points TimeRangeTimeRange -- -- gives start and end timesgives start and end times ParmHistoParmHisto -- -- sampler information for a weather sampler information for a weather
elementelement ComponentNameComponentName -- -- current component productcurrent component product statDictstatDict -- -- dictionary of statistics from the analysisdictionary of statistics from the analysis argDictargDict -- -- holds information about current text productholds information about current text product
Sept. 24-27, 2002 Text Product Infrastructure 71
Naming ConventionsNaming Conventions
_percentage -- number from 1-100_percentage -- number from 1-100_weight -- number from 0-1_weight -- number from 0-1_threshold -- typically a data value _threshold -- typically a data value _dict -- a dictionary of values_dict -- a dictionary of values_list -- list_list -- list_valueList -- list of phrase values_valueList -- list of phrase values
Sept. 24-27, 2002 Text Product Infrastructure 72
SamplerAnalysisSamplerAnalysis
Temporal CoverageTemporal Coverage
def def temporalCoverage_percentagetemporalCoverage_percentage(self, parmHisto, (self, parmHisto, timeRange, componentName):timeRange, componentName):
# Grids included in the analysis must cover this# Grids included in the analysis must cover this # percentage of the time range OR# percentage of the time range OR # be completely included within the time range.# be completely included within the time range. return return 2020
Sept. 24-27, 2002 Text Product Infrastructure 73
SamplerAnalysisSamplerAnalysis
Temporal Coverage Temporal Coverage
temporalCoverage_percentage set to 20
AWx B C
Time Range
Grids B, C, D will be included in the Analysis.
ED
For a grid to be included in the Analysis, it must cover 20 percent of the time range ORbe completely included in the time range.
Sept. 24-27, 2002 Text Product Infrastructure 74
SamplerAnalysisSamplerAnalysis
Temporal CoverageTemporal Coverage
def def wxkey_temporalCoverage_percentagewxkey_temporalCoverage_percentage(self, parmHisto, timeRange, (self, parmHisto, timeRange, componentName):componentName):
# Percent of time that must be covered by a weather# Percent of time that must be covered by a weather # key in order to be reported.# key in order to be reported. … … if wxType == “T” and intensity == “+”:if wxType == “T” and intensity == “+”: return 0return 0 ... ...
Sept. 24-27, 2002 Text Product Infrastructure 75
SamplerAnalysisSamplerAnalysis
Areal CoverageAreal Coverage
def def wxkey_arealCoverage_percentagewxkey_arealCoverage_percentage(self, parmHisto, timeRange, (self, parmHisto, timeRange, componentName):componentName):
# Percentage of areal coverage over an edit area # Percentage of areal coverage over an edit area # that a weather key must cover to be reported.# that a weather key must cover to be reported.
return self.wxkey_temporalCoverage_percentage(return self.wxkey_temporalCoverage_percentage( self, parmHisto, timeRange, componentName)self, parmHisto, timeRange, componentName)
Sept. 24-27, 2002 Text Product Infrastructure 76
SamplerAnalysisSamplerAnalysis
Dominant WxDominant Wx
def def dominantKeys_thresholddominantKeys_threshold(self, parmHisto, timeRange, componentName):(self, parmHisto, timeRange, componentName): # # Maximum number of weather keys to report per Maximum number of weather keys to report per # per time range# per time range.. return return 33
Sept. 24-27, 2002 Text Product Infrastructure 77
TextRulesTextRules
ThresholdsThresholds
def def pop_sky_lower_thresholdpop_sky_lower_threshold(self, statDict, argDict):(self, statDict, argDict):
# # Sky condition will not be reported if PoP is aboveSky condition will not be reported if PoP is above
# this threshold# this threshold
return return 6060
Sept. 24-27, 2002 Text Product Infrastructure 78
TextRulesTextRules
ValuesValuesdef def sky_valueListsky_valueList(self, statDict, argDict):(self, statDict, argDict): # # Phrases for sky given value. Tuples consist of:Phrases for sky given value. Tuples consist of: # (threshold, dayTime phrase, nightTime phrase)# (threshold, dayTime phrase, nightTime phrase) # Used by skyRange_phrase# Used by skyRange_phrase return [return [ (6, “sunny”, “clear”),(6, “sunny”, “clear”), (31, “mostly sunny”, “mostly clear”),(31, “mostly sunny”, “mostly clear”), (69, “mostly sunny”, “mostly clear”),(69, “mostly sunny”, “mostly clear”), (94, “mostly sunny”, “mostly clear”),(94, “mostly sunny”, “mostly clear”), (100, “mostly sunny”, “mostly clear”),(100, “mostly sunny”, “mostly clear”), ]]
Sept. 24-27, 2002 Text Product Infrastructure 79
Customization PointsCustomization Points Component Product Component Product
DefinitionsDefinitions
Sept. 24-27, 2002 Text Product Infrastructure 80
Smart Text ProductsSmart Text Products
Component Phrase AnalysisComponent Phrase Analysis
"analysisList": ["analysisList": [ ( "MinT", self.avg),( "MinT", self.avg),
( "MaxT", self.avg),( "MaxT", self.avg), ( "T", self.hourlyTemp),( "T", self.hourlyTemp), ( "Sky", self.minmax( "Sky", self.minmax),), ( "PoP", self.avg),( "PoP", self.avg), ( "Snow", self.minmax),( "Snow", self.minmax), ( ( "Wind", self.vectorTextMinMax"Wind", self.vectorTextMinMax),), ( "Wx", self.dominantWx)( "Wx", self.dominantWx) ], ],
Sept. 24-27, 2002 Text Product Infrastructure 81
Smart Text ProductsSmart Text Products
Component Phrase AnalysisComponent Phrase Analysis
"analysisList": ["analysisList": [ ( "MinT", self.avg),( "MinT", self.avg),
( "MaxT", self.avg),( "MaxT", self.avg), ( "T", self.hourlyTemp),( "T", self.hourlyTemp), ( "Sky", self.minmax),( "Sky", self.minmax), ( "PoP", self.avg),( "PoP", self.avg), ( "Snow", self.minmax),( "Snow", self.minmax), ( ( "Wind", self.vectorTextMinMax, [2]"Wind", self.vectorTextMinMax, [2]),), ( "Wx", self.dominantWx)( "Wx", self.dominantWx) ], ],
Sept. 24-27, 2002 Text Product Infrastructure 82
Smart Text ProductsSmart Text Products
Component Phrase Text RulesComponent Phrase Text Rules
"textRules": [ "textRules": [ self.reportTrends,self.reportTrends, self.wind_summary,self.wind_summary, self.sky_phrase,self.sky_phrase, self.weatherRange_phrase,self.weatherRange_phrase, self.snow_phrase,self.snow_phrase, self.highs_phrase,self.highs_phrase, self.lows_phrase,self.lows_phrase, self.windRange_phraseself.windRange_phrase, , self.pop_phrase, self.pop_phrase, ],],
Sept. 24-27, 2002 Text Product Infrastructure 83
Smart Text ProductsSmart Text Products
Component Phrase Text RulesComponent Phrase Text Rules
"textRules": [ "textRules": [ self.reportTrends,self.reportTrends, self.wind_summary,self.wind_summary, self.sky_phrase,self.sky_phrase, self.windRange_phraseself.windRange_phrase, , self.weatherRange_phrase,self.weatherRange_phrase, self.snow_phrase,self.snow_phrase, self.highs_phrase,self.highs_phrase, self.lows_phrase,self.lows_phrase, self.pop_phrase, self.pop_phrase, ],],
Sept. 24-27, 2002 Text Product Infrastructure 84
Smart Text ProductsSmart Text Products
Component Phrase Text RulesComponent Phrase Text Rules
"textRules": [ "textRules": [ self.reportTrends,self.reportTrends, self.wind_summary,self.wind_summary, self.sky_phrase,self.sky_phrase, self.windRange_withGusts_phraseself.windRange_withGusts_phrase, , self.weatherRange_phrase,self.weatherRange_phrase, self.snow_phrase,self.snow_phrase, self.highs_phrase,self.highs_phrase, self.lows_phrase,self.lows_phrase, self.pop_phrase, self.pop_phrase, ],],
Sept. 24-27, 2002 Text Product Infrastructure 85
Setting Up Local Effects in Setting Up Local Effects in Component DefinitionComponent Definition
”localEffects": { “MinT”: [{
LOWS 37-50 EXCEPT 27-39 ABOVE TIMBERLINE.
“area1”: “Mountains”, “area2”: “Valleys”, “threshold”: 10, “introWords”: “lows”, “exceptionWords”: “…except”, “localAreaDescription”: “above timberline” “rangeReportingMethod”: self.getScalarRange, “simpleValueReportingMethod”: self.getTempPhrase,
},], },
Sept. 24-27, 2002 Text Product Infrastructure 86
Setting Up Local Effects in Setting Up Local Effects in Component Definition Component Definition
"textRules": [ self.reportTrends, self.wind_summary, self.sky_phrase, self.localEffects_temp_phrase,
],
Sept. 24-27, 2002 Text Product Infrastructure 87
TranslatorTranslator
Text PhraseProduct Translator.py
TabularProduct
TranslatedProduct
(e.g. French, Spanish)
Translator
Sept. 24-27, 2002 Text Product Infrastructure 88
TranslatorTranslator
List in Text Utilities: List in Text Utilities: Translator Translator with English, French, Spanish with English, French, Spanish expressions:expressions:
Expression = [Expression = [ ('Short Term Forecast','Previsions Court Terme',\('Short Term Forecast','Previsions Court Terme',\ 'Pronostico a Corto Plazo'),'Pronostico a Corto Plazo'), ('Sky','Ciel','Cielo'),('Sky','Ciel','Cielo'), ('Wind (mph)','Vent (mph)','Viento (mph)'),('Wind (mph)','Vent (mph)','Viento (mph)'), ('MaxT','Temp Max','Temp Max'),('MaxT','Temp Max','Temp Max'), ('MinT','Temp Min','Temp Min'),('MinT','Temp Min','Temp Min'), ('Precip','Precip','Lluvias'),('Precip','Precip','Lluvias'), ]]
Sept. 24-27, 2002 Text Product Infrastructure 89
Migrating to New ProductsMigrating to New Products
SITESITE TestTextTestText
ZFP_LocalZFP_Local
CCF_LocalCCF_Local
FWF_LocalFWF_LocalFWF_LocalFWF_Local
CCF_LocalCCF_Local
ZFP_LocalZFP_Local
Sept. 24-27, 2002 Text Product Infrastructure 90
Migrating to New ProductsMigrating to New Products
SITESITEAreaFcstAreaFcstAreaFcst_LocalAreaFcst_Local
TestTextTestText
ZFP_LocalZFP_Local
CCF_LocalCCF_Local
FWF_LocalFWF_Local
FWFFWFFWF_LocalFWF_Local
CCFCCFCCF_LocalCCF_Local
Sept. 24-27, 2002 Text Product Infrastructure 91
Migrating to New ProductsMigrating to New Products
SITESITE TestTextTestText
ZFP_LocalZFP_Local
CCF_LocalCCF_Local
FWF_LocalFWF_Local
ZFP_LocalZFP_Local
CCF_LocalCCF_Local
FWF_LocalFWF_Local
Sept. 24-27, 2002 Text Product Infrastructure 92
SummarySummary
Evolution of GFESuite Text ProductsEvolution of GFESuite Text ProductsConsolidation Phase Feedback ProcessConsolidation Phase Feedback ProcessCustomization PointsCustomization PointsMigrating to New ProductsMigrating to New Products