Automated Approach of Cataloguing TeraScan Images Utilizing Active Server Pages 2005-2006 ONR Multimedia.

Slides:



Advertisements
Similar presentations
CC SQL Utilities.
Advertisements

CENTER OF EXCELLENCE IN REMOTE SENSING EDUCATION AND RESEARCH Mentor: Jeff Wood Members: Jonathan Person Justin Deloatch Jamison Jones.
1 Chapter 12 Working With Access 2000 on the Internet.
Using Visual Basic 6.0 to Create Web-Based Database Applications
14.1 © 2004 Pearson Education, Inc. Exam Planning, Implementing, and Maintaining a Microsoft Windows Server 2003 Active Directory Infrastructure.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
A Guide to SQL, Seventh Edition. Objectives Understand the concepts and terminology associated with relational databases Create and run SQL commands in.
Mark Dixon Page 1 20 – Web applications: Writing data to Databases using ASP.
A Guide to SQL, Seventh Edition. Objectives Embed SQL commands in PL/SQL programs Retrieve single rows using embedded SQL Update a table using embedded.
ASP.NET Programming with C# and SQL Server First Edition Chapter 8 Manipulating SQL Server Databases with ASP.NET.
Installing software on personal computer
Microsoft Access 2007 Microsoft Access 2007 Introduction to Database Programs.
Michael Tucker DBA / Webmaster Forsyth County Public Library.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
A Guide to SQL, Eighth Edition Chapter Three Creating Tables.
Session 5: Working with MySQL iNET Academy Open Source Web Development.
FireRMS SQL Audit, Archiving & Purging Presented by Laura Small FireRMS Quality Assurance.
Programming with Visual Basic.NET An Object-Oriented Approach  Chapter 8 Introduction to Database Processing.
Tutorial 10 Adding Spry Elements and Database Functionality Dreamweaver CS3 Tutorial 101.
OCLC Online Computer Library Center CONTENTdm ® Digital Collection Management Software Ron Gardner, OCLC Digital Services Consultant ICOLC Meeting April.
Self Guided Tour for Query V8.4 Basic Features. 2 This Self Guided Tour is meant as a review only for Query V8.4 Basic Features and not as a substitute.
Server Side Programming ASP1 Server Side Programming Database Integration (cont.) Internet Systems Design.
Using Visual Basic 6.0 to Create Web-Based Database Applications
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
Utilizing Data Sets from the CReSIS Data Archives to Visualize Greenland Echograms Information in Google Earth 2012 Research Experience for Undergraduates.
LiveCycle Data Services Introduction Part 2. Part 2? This is the second in our series on LiveCycle Data Services. If you missed our first presentation,
Mark Dixon Page 1 23 – Web applications: Writing data to Databases using ASP.
Microsoft Office Access 2003 Số tiết: 30 tiết lý thuyết 60 tiết thực hành Giáo viên: Từ thị Xuân Hiền.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
C ENTER OF E XCELLENCE IN R EMOTE S ENSING E DUCATION AND R ESEARCH M ULTIMEDIA T EAM Research and Implementation of Data Submission Technologies.
Lesson 17 Getting Started with Access Essentials
ADO 2.5 Kamaljit Bath, Program Manager Data Access Group.
AUTOMATING THE TERASCAN IMAGE PROCESS Mentor: Keisha Wilkins Brandi R. Brehon Jameson D. Gibbs.
Lecture Note 10: Simple Database Techniques. Introduction –Database System –Access, SQL Server and others. –Microsoft Access - Interacting with this databases.
Key Applications Module Lesson 21 — Access Essentials
CSCI 6962: Server-side Design and Programming Database Manipulation in ASP.
Guide to Linux Installation and Administration1 Chapter 4 Running a Linux System.
Plant Accession Application Maintenance Manual. Accession Application Website Environment Overview WinHost.com ASP Pages VBScript Procs Constants Style.
What is database?  Any Method for access info into Application from DataBase?  ODBC is standard for Accessing Data.  Problem with ODBC:  Information.
1 Chapter 2: Working with Data in a Project 2.1 Introduction to Tabular Data 2.2 Accessing Local Data 2.3 Accessing Remote Data 2.4 Importing Text Files.
A Guide to MySQL 3. 2 Introduction  Structured Query Language (SQL): Popular and widely used language for retrieving and manipulating database data Developed.
Patrina Bly Senior - Mathematics Autumn Luke Freshman – Computer Science Mentor: Jeff Wood CERSER Education Program Manager.
 Registry itself is easy and straightforward in implementation  The objects of registry are actually complicated to store and manage  Objects of Registry.
Project Two Adding Web Pages, Links, and Images Define and set a home page Add pages to a Web site Describe Dreamweaver's image accessibility features.
Introduction to KE EMu
INSERT BOOK COVER 1Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Getting Started with VBA for Microsoft Office 2010 by.
Lab 8 Data Access Using Microsoft ActiveX Data Object (ADO)
Introduction to KE EMu Unit objectives: Introduction to Windows Use the keyboard and mouse Use the desktop Open, move and resize a.
Chapter 5 Introduction To Form Builder. Lesson A Objectives  Display Forms Builder forms in a Web browser  Use a data block form to view, insert, update,
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
Visual Basic for Application - Microsoft Access 2003 Finishing the application.
CONTENT  Introduction Introduction  Operating System (OS) Operating System (OS) Operating System (OS)  Summary Summary  Application Software Application.
What’s new in ADO 2.5 Greg Hinkel Program Manager Data Access Group
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Address Book Application Introducing Database Programming.
7-1 Active Server and ADO Colorado Technical University IT420 Tim Peterson.
1 Chapter Overview Monitoring Access to Shared Folders Creating and Sharing Local and Remote Folders Monitoring Network Users Using Offline Folders and.
COMPUTER SKILLS MS-ACCESS. Introduction Access is a piece of software known as a database management system. At its most basic level, it can be used to.
XP Creating Web Pages with Microsoft Office
Section 3 Computing with confidence. The purpose of this section The purpose of this section is to develop your skills to achieve two goals: 1-Becoming.
3 A Guide to MySQL.
Architecture Review 10/11/2004
ASP.NET Programming with C# and SQL Server First Edition
Managing, Storing, and Executing DTS Packages
Unit 9.1 Learning Objectives Data Access in Code
A Guide to SQL, Seventh Edition
The Online Smith Family Recipe Program
Deploying and Configuring SSIS Packages
Chapter 10 ADO.
Tutorial 6 PHP & MySQL Li Xu
Chapter 10 Accessing Database Files
Presentation transcript:

Automated Approach of Cataloguing TeraScan Images Utilizing Active Server Pages ONR Multimedia

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Abstract The Center of Excellence in Remote Sensing Education and Research (CERSER) on the campus of Elizabeth City State University is currently tasked with the responsibility of receiving remotely sensed Advanced Very High Resolution Radiometer (AVHRR) and Sea Wide Field-of-View Sensor (SeaWiFS) data for research projects year round. This data is collected, processed, annotated, and transformed into images in the Tagged Image File Format (tiff). These tiff images are then uploaded to the CERSER archive library server located at Once uploaded, they are converted into various resolutions and their information is added to a tracking database maintained with Microsoft Access software. This database provides a searchable means for retrieving satellite image data through various parameters.

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Abstract (cont) The automatic conversion of the original tiff file to various Joint Photographic Experts Group (jpeg) format sizes and the entry of information into the tracking database were completed during this project. Active Server Pages were developed utilizing Visual Basic Scripting, Structured Query Language, and Command Line instructions to the software package ImageMagick™ to complete the tasks. The final file developed was added as a scheduled task to be implemented at a certain time each day on the CERSER platform. This file inventories the “original” folder located on the CERSER server to determine if any files have been uploaded and then processes those that have.

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Introduction - Overview Starting State of CERSER Image Process MMT Tasking

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Introduction - Process Goals Call the ASP page daily ASP Image Conversion Tasks:  Convert Date and Satellite information from the file name  Open Terascan Database to obtain new file name  Write new record to the database  Open ImageMagick®  Convert/Resize/Rename original image to Actual, Medium, Low, and thumbnail folders  Delete original image file

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Active Server Pages Defined Their Use Languages Microsoft Internet Information Services (IIS) Server

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Database - Overview Project Use Defined Rolodex Card System

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Database - Fields Cells that contain actual data TeraScan DB field titles are: ID, Date, Satellite, Product, Description, and Event Field Title > Data Type Selected Examples: Currency, Date & Time, Number, text, etc...

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Database - The Project Select information provided by the image file name: ID, Satellite, and Date Convert this information to the correct format (example: to 03/30/2006) Add a new record for each image

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES ImageMagick ® - Overview Description Formats Supported Actions Available MMT Project Use

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES ImageMagick ® - Command Line Description Input/Output, Text only Punchcards > Command Line > GUI

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Scheduled Tasks - Overview CERSER Operating System Scheduled Tasks Scheduling the ASP file

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Scheduled Tasks - Getting Started Opening Task Scheduler

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Scheduled Tasks – Opening Selecting program to run.

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Scheduled Tasks - Naming Name scheduled task.

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Scheduled Tasks - Time & Date Configure day and time.

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Scheduled Tasks – User Name & Password Enter User Name & Password

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Scheduled Tasks - Created Completion

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Scheduled Tasks - Modifications Modifying a Task

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Code -Pseudocode Defined Example  Pseudocode - Display on the screen the variable X  VBScript Coding - response.write(x)

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Code - Begin ASP Code <% <!--

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Code - Declare Variables 'Declare Variables dim fs,fo,x, cnvrtDate, imgSat, dbPath, Con, fdb, description, curevent, product, jsfExc PUBLIC lastID Public utilized due to varible use in multiple methods

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Code - Create File System Object 'Set File System Object set fs=Server.CreateObject("Scripting.FileSystemObject") 'Set path to uploaded images folder set fo=fs.GetFolder(server.mappath("\mmt\Pictures\original\")) fs = Instance of FileSystemObject fo = c:\\inetpub\wwwroot\mmt\Pictures\original\

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Code - Begin Image Processing Loop 'BEGIN Loop for files in Original Folder for each x in fo.files fo.files = All the files located in the folder represented by fo fo = c:\\inetpub\wwwroot\mmt\Pictures\original\

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Code - Date Conversion 'START Date conversion cnvrtDate=Mid(x.name,3,2) & "/" & Mid(x.name,5,2) & "/20" & Mid(x.name,1,2) cnvrtDate = reformatted date (YYMMDD to MM/DD/YYYY) Mid(string, start, length) example Mid(CERSER, 3, 2) = “RS”

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Code - Satellite Name Conversion 'START Satellite Conversion if Mid(x.name,13,1)="n" then imgSat = "NOAA-" & Mid(x.name,14,2) End if if Mid(x.name,13,1)="s" then imgSat = "Seawifs-" & Mid(x.name,14,2) End if imgSat = reformatted satellite name (n17 to NOAA-17)

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Code - Set Path to Database 'Set path to Database Set fdb=(fs.GetFolder(server.mappath("/mmt/"))) dbPath = fdb & "\terascan_trial.mdb" server.mappath = c:\\inetpub\wwwroot\ fdb = Path to folder containing the database - c:\\inetpub\wwwroot\mmt\ dbpath = Path to Database - c:\\inetpub\wwwroot\mmt\terascan_trial.mdb

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Code - Open Database 'create connection object, Con is now an instance of ADODB.Connection SET Con = Server.CreateObject( "ADODB.Connection") 'open the database Con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & dbPath dbpath = Path to Database - c:\\inetpub\wwwroot\mmt\terascan_trial.mdb

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Code - Open Records 'create recordset (rs) object, rs is now an instance of ADODB.recordset set rs=Server.CreateObject("ADODB.recordset") 'Select ONLY the ID column, order it descending using the Con connection rs.Open "SELECT ID FROM Images ORDER BY ID DESC", Con

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Code - Create New ID 'Add one to the ID highest number retrieved and place it in lastID, close connection for each y in rs.fields lastID=y.value +1 next rs.close

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Code - Assign Values 'Assign null or zero values to empty fields description="" curevent="0" product="0"

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Code - Open the “Image” Table 'open the "Images" table in the terascan_trial.mdb rs.Open "Images", Con, 1, 3, 2 rs.open source, connection, CursorTypeEnum, LockTypeEnum, CommandTypeEnum

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Code - Add Values 'Use AddNew method to create the new record rs.AddNew rs("date")= cnvrtdate rs("id")= lastID rs("description")= description rs("event")= curevent rs("product") = product rs("satellite")= imgSat

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Code - Update DB 'Set update to true and confirm update, Update method confirms the update rs.Update 'close the recordset and database connection rs.close Con.close

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Code - Copy/Rename Original 'Copy Original file to Actual Folder and rename using the Copyfile method fs.CopyFile fo & "\" & x.name, fdb & "\Pictures\Actual\" & lastID & ".tiff" fo = c:\\inetpub\wwwroot\mmt\Pictures\original\ fdb = c:\\inetpub\wwwroot\mmt\

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Code - Define New Variables ' Define variables for Image Conversion with ImageMagick Dim WshShell, oExec, CommandLine, imageMagick, orgTiff, desJpg

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Code - Initialize Variables 'Set current position of executable convert.exe imageMagick = "C:\Program Files\ImageMagick Q8\convert.exe" 'Set position of orginal file to be converted orgTiff = fdb & "\Pictures\Actual\" & lastID & ".tiff" fdb = c:\\inetpub\wwwroot\mmt\

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Code - Create Windows Object ' Creating a Windows Shell object in order to access the command line prompt Set WshShell = Server.CreateObject("WScript.Shell")

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Code - Medium Conversion 'Set Destination of Medium Copy, no size change, just type tiff to jpg desJpg = fdb & "\Pictures\Medium\" & lastID & ".jpg" 'Compile arguments into one variable CommandLine = imageMagick & " " & orgTiff & " " & desJpg ' Launching imgmagick Set oExec = WshShell.Exec(CommandLine) fdb = c:\\inetpub\wwwroot\mmt\ imageMagick = c:\Program Files\ImageMagick Q8\convert.exe orgTiff = c:\\inetpub\wwwroot\mmt\Pictures\Actual\lastID.tiff

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES fdb = c:\\inetpub\wwwroot\mmt\ imageMagick = c:\Program Files\ImageMagick Q8\convert.exe orgTiff = c:\\inetpub\wwwroot\mmt\Pictures\Actual\lastID.tiff Code - Low Conversion 'Set Destination of Low Copy, resize 50%, type tiff to jpg desJpg = fdb & "\Pictures\Low\" & lastID & ".jpg" 'Compile arguments into one variable CommandLine = imageMagick & " " & orgTiff & " -resize 50%" & " " & desJpg ' Launching imgmajic Set oExec = WshShell.Exec(CommandLine)

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Code - Thumbnail Conversion 'Set Destination of Thumbnail Copy, resize 15%, type tiff to jpg desJpg = fdb & "\Pictures\Thumbs\" & lastID & ".jpg" 'Compile arguments into one variable CommandLine = imageMagick & " " & orgTiff & " -resize 15%" & " " & desJpg ' Launching imgmajic Set oExec = WshShell.Exec(CommandLine) fdb = c:\\inetpub\wwwroot\mmt\ imageMagick = c:\Program Files\ImageMagick Q8\convert.exe orgTiff = c:\\inetpub\wwwroot\mmt\Pictures\Actual\lastID.tiff

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Code - Free Up Memory 'Free WshShell memory Set WshShell = Nothing Set oExec = Nothing

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Code - Delete Original/End loop 'Delete Original Image fs.DeleteFile(fo & "\" & x.name) next fo = c:\\inetpub\wwwroot\mmt\Pictures\original\

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Code - Memory/Update Time 'Free fo, fs, and fdb memory set fo=nothing set fs=nothing set fdb=nothing 'Write out the time that the Database was updated response.write("Terascan Database Updated: " & now() & " (Eastern Time)")

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Code - End Comment/ASP --> %>

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Results Trial Code reponse.write() Final Version Folder Permissions

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Results – Update Notification TeraScan Database - New Table ASP Modification

AUTOMATED APPROACH OF CATALOGUING TERASCAN IMAGES UTILIZING ACTIVE SERVER PAGES Future Work Modify Records Notification

Questions