Running in Peter Gould, Pacific Northwest Research Station Growth-Model User Group Meeting, June 2, 2010.

Slides:



Advertisements
Similar presentations
IEs Protected Mode in Windows Vista TM January 20, 2006 Marc Silbey Program Manager.
Advertisements

Easily retrieve data from the Baan database
AEPs from TNHG at ACT! Visions 2005 ACT!2005 Enhancement Products from The New Hampton Group.
Microsoft Word © Automation from Microsoft Access © by Ofer Shimrat for AUGSD MS Office Versions 2000 & 2002.
DDD Using and Extending Excel with Visual Studio A high level discussion of the main options Simon Murphy Developer – Codematic.
WHAT IS ELINK? Thermoflow, Inc.
Thomas Gabriel KNIME.com GmbH, Zurich, Switzerland KNIME – An Integration Platform –
Using VB with MS Applications R. Juhl, Delta College.
SC ICT Certification Level 1 07 Spreadsheets By Ross Parker.
Excel and Visual Basic. Outline Data exchange between Excel and Visual Basic. Programming VB in Excel.
Object Linking and Embedding Objective 6.02 Linking and Embedding.
Corporate Property Automated Information System (CPAIS) Macro Walkthrough Guide for Excel Version 2003.
Why python? Automate processes Batch programming Faster Open source Easy recognition of errors Good for data management What is python? Scripting programming.
Microsoft Excel 2003 Illustrated Complete with Excel Programming.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 12: Managing and Implementing Backups and Disaster Recovery.
MCDST : Supporting Users and Troubleshooting a Microsoft Windows XP Operating System Chapter 5: User Environment and Multiple Languages.
Estimation and Application of Genetic- Gain Multipliers for Douglas-Fir Height and Diameter Growth Peter J. Gould 1, David D. Marshall 2, Randy Johnson.
DEMONSTRATION FOR SIGMA DATA ACQUISITION MODULES Tempatron Ltd Data Measurements Division Darwin Close Reading RG2 0TB UK T : +44 (0) F :
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
BizTalk Adapter Pack (SAP) Installation
Installation and Administration
Microsoft Excel 2000 Adding Visual Elements and Managing Files.
Advanced Excel for Finance Professionals A self study material from South Asian Management Technologies Foundation.
Microsoft Excel 2007 © Wiley Publishing All Rights Reserved. The L Line The Express Line to Learning L Line.
Obsydian OLE Automation Ranjit Sahota Chief Architect Obsydian Development Ranjit Sahota Chief Architect Obsydian Development.
Java Programming, 3e Concepts and Techniques Chapter 3 Section 62 – Manipulating Data Using Methods – Day 1.
Chapter 11: Introduction to the Visual Basic Environment Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University.
Nightly Releases and Testing Alexander Undrus Atlas SW week, May
111 EMC CONFIDENTIAL—INTERNAL USE ONLY NMC -- NW Administration NMC Team NetWorker 7.3 TOI July 28, 2005.
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
‘Tirgul’ # 7 Enterprise Development Using Visual Basic 6.0 Autumn 2002 Tirgul #7.
XP New Perspectives on Integrating Microsoft Office XP Tutorial 2 1 Integrating Microsoft Office XP Tutorial 2 – Integrating Word, Excel, and Access.
Java Introduction to JNI Prepared by Humaira Siddiqui.
Running ORGANON in R Peter Gould and David Marshall Growth Model User Group December 9, 2011.
Tot 15 LTPDA Graphic User Interface summary and status N. Tateo 26/06/2007.
® IBM Software Group © 2008 IBM Corporation Setting up Build Forge demo projects for ALM Windows only May – work in progress Stuart Poulin
Active-HDL Interfaces Debugging C Code Course 10.
Using Visual Basic for Applications in Microsoft Project Sean Vogel.
This application does require access to the BW (Baan Windows) client and authorization to the OLE Daemon Introducing … XQL - Excel Query Language How about.
Recent Experience using PDAs as Field Data Recorders Peter Gould and Connie Harrington Pacific Northwest Research Station.
Microsoft Office Excel 2007: Programming Business Intelligence Features John Hooper Service Line Architect Microsoft Corporation Jed Farr Senior Consultant.
OrcaFlex User Group Slide 1 of 7 OrcaFlex - The Dynamic Link Library Introduction What is a DLL? The OrcaFlex DLL (OrcFxAPI) What can.
Intermacs Form Download Excel Tutorial Pivot Tables, Graphic Tools, Macros By: Devin Koehl.
Teacher/Mentor Institute Using easyC David Dominguez June 2, 2015 Update Version.
NetTech Solutions Troubleshooting Office Applications Lesson Seven.
Intermacs Form Download Excel Tutorial Pivot Tables, Graphic Tools, Macros By: Devin Koehl.
2007 TAX YEARERO TRAINING - MODULE 61 ERO (Transmitter) Training Module 6 Federal and State Installation and Updates.
© 2012 LogiGear Corporation. All Rights Reserved FitNesseFitNesse Authors: Nghia Pham 1.
Program Libraries 1. What is a program library? A library is a collection of implementations of behavior, written in terms of a language, that has a well-defined.
Data Analysis GUI Documentation guide. Terminology GUI – Graphical User Interface Log-File – File containing data of interest which is generated by user’s.
COM: 111 Introduction to Computer Applications Department of Information & Communication Technology Panayiotis Christodoulou.
VB.NET and Excel VB.NET allows you to write code to manipulate Excel. You can create, open, and save Excel files. You can read data from Excel. You can.
1 PSI/PhUSE Single Day Event – SAS Applications – June 11, 2009 SAS Drug Development from the Inside Magnus Mengelbier Director.
Join the Community
CARA 3.10 Major New Features
Bulk Loading Documents* into Windchill
Chapter 6 Programming with Office 97
Iteration 1 Presentation
Change Orders Just Got a Whole Lot Easier
Using Charts in a Presentation
Exploring the Power of EPDM Tasks - Working with and Developing Tasks in EPDM By: Marc Young XLM Solutions
This is where R scripts will load
LTPDA Graphic User Interface summary and status
2018 NRS FIA Management Team Meeting Batch EVALIDator – EVALIDator API December 11-12, 2018 — Manhattan, Kansas API by Pat Miles Presented by Scott Pugh.
This is where R scripts will load
This is where R scripts will load
Windows Development Dynadata Copyright, 2014 © DynaData S.A. 1/29.
Presentation transcript:

Running in Peter Gould, Pacific Northwest Research Station Growth-Model User Group Meeting, June 2, 2010

Acknowledgements I “borrowed” previous work on the implementation of the ORGANON dlls in Excel from Mark Hanus and Sean Garber. Mark Hanus helped troubleshoot problems with ORGANON8.4. David Hann and other ORGANON developers for providing DLLs.

Why run ORGANON in R? R users don’t need to switch environments or interfaces to run different programs (on cutting and pasting). Can combine projections and summaries. Can automate processing (1 or 100,000 stands).

How to connect to ORGANON DLL (Dynamic-Link Library): a program that can be called by another program. Often used to create, manipulate, and update variables. ORGANON has three dlls: ORGVOL.dll ORGEDIT.dll ORGRUN.dll

Can we call the dlls directly from R? (Yes, in theory) Should I be worried? R sees the dll! R sees the functions in the dll!! R CRASHES!!!

Alternative Approach ORGANON can be run in MS EXCEL using the dlls. Mark Hanus did the original coding in VB. Sean Garber added more features I updated it for Version 8.4 (with help from Mark Hanus) and added features for input/output. R can control EXCEL using the rcom package (Thomas Baier (2008). rcom: R COM Client Interface and internal COM Server. R package version ) runOrg8.4 runs ORGANON via EXCEL.

What do you need? ORGANON DLLs and RUN_ORGANON8.4.xls need to be installed in: C:\Program Files\ORGANON\DLL R needs to be installed (I’m using version 2.9.1) AND the rcom package. Excel need to be installed and macros enabled (I’m using Excel2007). The runOrg8.4 function needs to be loaded.

Input Formats Optional: HT, CR Tree list (use the exact variable names)

Input Formats Header info (use the exact variable names) Optional: USEGEN, DBHGAIN, HTGAIN, USESNC, RETAINYRS.

Process for runOrg8.4 1.Opens the Excel workbook (set to be invisible). 2.Loops through the stands 1.Updates header information 2.Pastes the input treelist into the worksheet 3.Runs ORGEDIT (adds heights, crown ratios, etc.) 4.Runs ORGRUN (the actual projections) 5.Copies output back to R 3.Closes Excel and returns to R

Run the function and output

Example: Two stands, 30 plots / stand, 10 trees / plot, projected for 10 cycles (50 yrs). Elapse time: 5.5 seconds

The Excel Workbook Double-click above to open and then save with this name and path: C:\Program Files\ORGANON\DLL\RUN_ORGANON8.4.xls Use Excel format.

The R Code (double-click below to open)