057b8544f55438411bf286c0df369dfe.ppt
- Количество слайдов: 28
Object Modeling System Laj Ahuja, Frank Geter, Olaf David, Ian Schneider George H. Leavesley ARS Great Plains System Research, Fort Collins NRCS Information Technology Center, Fort Collins USGS Denver
Discussion Items n Object Modeling System (OMS) Framework ¨ Overview n ARS and NRCS IT Coordination on Modeling Collaboration
Object Modeling System n n Modeling Framework which supports the development/application lifecycle OMS facilitates ¨ ¨ ¨ ¨ Code reuse and sharing Component Development, Integration, Capture of legacy knowledge Test Model Development Collaborative development Database access Verification / validation Model QA / QC and certification Application, Multi-purposing Analysis Maintenance and change management
Current Status of ARS Models n n n ARS has more than 100 models for a variety of purposes – component and system models. Developed over time as a need was identified. Used the best technology available at the time. The maintenance and upkeep are proving very difficult and expensive. Their alteration as new needs arise is not easy. They may not give the same results.
OMS Benefits • Supports building of new models and decision support tools from reusable/standardized components from a library • Facilitates long term maintainability and improvement of existing ARS models by decomposing them into their science component parts • Leads to “Customized Modeling” – fitting the model to the problem and customer need • Enhances deployment of new tools to action agencies (NRCS) and leverages established databases
OMS Benefits n n Supports QA/QC at module and model levels Documentation and peer review of modules Reduce duplication of effort in natural resource modeling Runs under the Java platform. ¨ n Support for Fortran/C/C++ Uses the “Netbeans” technology for module and data formats and as an open tool platform. Component Development, Test Component Integration, Model Development Model Application, Analysis
Partnerships ¨ ARS n n n ¨ NRCS n n n ¨ Great Plains System Research NPS / NPA Upcoming: National Software Support Center ITC Fort Collins Science and Technology Divisions Soil Survey and Resource Assessment Divisions USGS n Water Resources Division ¨ ¨ Friedrich Schiller University, Jena Colorado State University, Fort Collins ¨ … MOU on Multimedia Environmental Modeling Systems
OMS Components n System Components ¨ Module Builder ¨ Model Builder ¨ Module Library ¨ Model Data Dictionaries ¨ (Fortran Refactoring tools) ¨ Graphical User Interface ¨ Models: RZWQM, (PRMS), RCN, Thornthwaite, Erosion, n Ongoing Additional Components/Activities ¨ Web Services/Database -> NRCS, GEOLEM ¨ Object User Interface for Spatial Data Access, Parameterization, and Output Analysis - OUI
Stakeholder Model Developer Create Integrate Test Customize Model Component Other Research Scientists Component Libs Model. Builder Model. Runtime Legacy Code USDA Data Marts Soil Climate Plant/Crop … Meta Data Execute Analyze Visualize Deploy Apply Analysis. Tool Data Dictionary OMS Version Control OMS Central Collaboration Platform OMS/Netbeans Platform ARS Scientist NRCS Resource Specialist
Repurposing Science Different Implementations Core Science RUSLE 2 C factor EI factor LS factor K factor
Prescription Modeling Science Module Library OMS CEAP Regional Models Hydrology Plant Growth Soil Erosion NW Region Fish Habitat Nutrients Pesticides Transport Mississippi Delta Water Quality
OMS Status n NRCS has adopted OMS into its computing infrastructure for science components and applications. n A joint ARS/NRCS OMS development group and infrastructure is being established at Fort Collins. n PRMS and RZWQM have been integrated as proof of concept in the OMS framework. n NRCS is building the science components of its Engineering Field Tools in OMS. n OMS Version 1. 1 in test, containing tools to create, test, and build models.
OMS Status (cont’d) n NRCS has begun to convert RUSLE 2 to OMS for repurposing in Ann. AGNPS. n Discussions initiated to convert and/or build components and models in OMS for CEAP. n NRCS/ARS programmer to build model component code base in OMS per priority list.
Thornthwaite DEMO n Thornthwaite water balance (Thornthwaite, 1948; Mather, 1978; 1979) Evapotranspiration Precipitation Soil Moisture Storage Snow Accumulation Surplus Runoff
Parameter Soil. Moisture Latitude Capacity Precipitation Temp Month Input Runoff Factor Soil Moisture Snow Storage Accumulation Surplus Daylen Runoff ET Thornthwaite Actual ET Potential ET Runoff Surface Runoff Snow. Storag e Soil. Moisture Output
Parameter Latitude Soil. Moisture Capacity Runoff Factor Surface Runoff Soil. Moisture Soil Moisture Precipitation potet Actual ET Snow Temperature Month Input Snow. Storage Potential ET PET Day length snowmelt daylen Runoff Thornthwaite’ Runoff Output
Parameter Latitude Soil. Moisture Capacity Runoff Factor Surface Runof Soil. Moisture Soil Moisture Precipitation potet Temperature Month Actual ET Snow Potential ET PET Day length snowmelt daylen Runoff Input Thornthwaite Snow. Storage Runoff Output
PET Module import org. oms. model. data. *; Temperature Month PET Potet Daylen /** Hamon Potential Evaporation. * * Computes the potential ET using Ham * * @oms. author Olaf David * @oms. author Doug Boyle * @oms. author Steve Markstrom * @oms. category hydrology * @oms. version 1. 0 */ public class Hamon. ET implements Runnabl /** Temperature * @oms. access read */ Attribute. Double temp; /** Month * @oms. access read */ Attribute. Integer month; public void run() { double temp double dl int month = this. temp. get. Value(); = this. daylength. get. Value(); = this. month. get. Value(); double pt = 4. 95 * Math. exp(0. 062 * temp) / 100. ; double pot. ET = 0. 55 * ((dl / 12. 0) * (dl / 12. 0)) * pt * days[month - 1]; if (pot. ET <= 0. 0) pot. ET = 0. 0; if (temp <= -1. 0) pot. ET = 0. 0; pot. ET = pot. ET * 25. 4; this. pot. ET. set. Value(pot. ET); } … /** Day length * @oms. access read */ Attribute. Double daylength; /** Potential ET * @oms. access write */ Attribute. Double pot. ET;
Native Code Adaptation using autogenerated Components and C adapter. n JNI 1. 4 native buffers. n Support F 77/F 90/C++ n Refactoring ? ? ? n purpose: leverage legacy efforts and investments. n
Component Development
Data Dictionary
Component Integration
Model Execution
Model Execution
Model Analysis
Help System / Manual
Status Extended Developer Group n OMS/Netbeans migration of modeling tools almost finished -> Release 1. 1 n OMS Scientific modeling library on Codebeamer/Subversion. n ¨ PRMS ¨ RZWQM ¨ GPFARM modules ¨ FORAGE ¨ THORNTHWAITE
n Release version 1. 1 December 2005. ¨ Peer reviewed User Manual ¨ Distribution/Website update ¨ PRMS modules converted to Java ¨ Data Dictionary/Component Editor Integration ¨ Spatial Modeling Support finished ¨ Collaboration Infrastructure Implementation @ITC ¨ Automated Testing and Documentation of Components/Models n Student project
057b8544f55438411bf286c0df369dfe.ppt