This document gives one example of how one might be able to “fix” a meteorological file, if one finds that there may be problems with the file. There are.

Slides:



Advertisements
Similar presentations
JQuery MessageBoard. Lets use jQuery and AJAX in combination with a database to update and retrieve information without refreshing the page. Here we will.
Advertisements

SCRATCH Lesson Two – Interactive Concepts Using Sensing, Operators, and Variables.
Oracle for Windows NT is required to run queries from the Banner database. Call the help desk at extension 4440 if you do not have this.
Html: getting started HTML is hyper text markup language. It is what web browsers look at on the Internet. HTML documents should be created in a simple.
STEPS TO DOWNLOAD THE SOFTWARE EXE’S FROM WEBSITE.
An End-User Perspective On Using NatQuery Building a Dynamic Variable T
Winmail.dat what it is and what to do with it This guide tells you all about winmail.dat files and the WMDecode decoder Instructions for installing WMDecode.
Blogs – what, why and how? A blog is a web-log It is a simple website that anyone can setup without any advanced computer know-how It’s the future: blogs,
LFDA Practical Session FMSP stock assessment tools Training Workshop.
1 An Introduction to IBM SPSS PSY450 Experimental Psychology Dr. Dwight Hennessy.
THEMIS Science Software Training1July 2007 The THEMIS Graphical User Interface J. McTiernan 23-Jul-2007
16-Jun-15 Exceptions. Errors and Exceptions An error is a bug in your program dividing by zero going outside the bounds of an array trying to use a null.
CS115 HOW TO INSTALL THE JAVA DEVELOPMENT KIT (JDK)
Web Page Development Identify elements of a Web Page Start Notepad
What's New in the CVS-EEP Entry Tool This document points out some the new features and improvements we've made in recent versions. version by Michael.
Downloading and Installing AutoCAD Architecture 2015 This is a 4 step process 1.Register with the Autodesk Student Community 2.Downloading the software.
E | W | E | W | NHS e-Referral Service Referring Roles Issued: 3 June.
Command Console Tutorial BCIS 3680 Enterprise Programming.
SharePoint document libraries I: Introduction to sharing files How to add and edit files Wondering how to actually work with a document library? You’re.
SW388R7 Data Analysis & Computers II Slide 1 Analyzing Missing Data Introduction Problems Using Scripts.
Microsoft ® Office Word 2007 Training Mail Merge II: Use the Ribbon and perform a complex mail merge [Your company name] presents:
Panorama High School E.G.P./ Training to Put Students’ Grades on the Website Wednesday, September 29,
Information guide.
XP New Perspectives on Microsoft Access 2002 Tutorial 51 Microsoft Access 2002 Tutorial 5 – Enhancing a Table’s Design, and Creating Advanced Queries and.
Amber Annett David Bell October 13 th, What will happen What is this business about personal web pages? Designated location of your own web page.
Problem Determination Your mind is your most important tool!
PMS /134/182 HEX 0886B6 PMS /39/80 HEX 5E2750 PMS /168/180 HEX 00A8B4 PMS /190/40 HEX 66CC33 By Adrian Gardener Date 9 July 2012.
4/22/2017 5:36 PM EViews Training Creating Workfiles.
Mail merge I: Use mail merge for mass mailings Perform a complete mail merge Now you’ll walk through the process of performing a mail merge by using the.
Playing Music in Alice By David Yan Under the direction of Professor Susan Rodger July 2015.
Microsoft ® Office SharePoint ® Server 2007 Training SharePoint document libraries II: All about checkout Bellwood-Antis School District presents:
Designing Interface Components. Components Navigation components - the user uses these components to give instructions. Input – Components that are used.
Martin Dodge Practical 2, 24th March 2004, pm Social Science Research Methodologies.
SharePoint document libraries I: Introduction to sharing files Sharjah Higher Colleges of Technology presents:
Python From the book “Think Python”
Just as there are many human languages, there are many computer programming languages that can be used to develop software. Some are named after people,
Faculty Webpage Design Minimum Requirements. Go to: then High Schoolhttp://gcsc.groupfusion.net/
CIS 338: Using Queries in Access as a RecordSource Dr. Ralph D. Westfall May, 2011.
Chapter 7 File I/O 1. File, Record & Field 2 The file is just a chunk of disk space set aside for data and given a name. The computer has no idea what.
U3A Computing Beginners Class Leader – Brian Moore Week 2 of 10 weeks. Mondays 4:15 to 5:45 pm.
Create Your Own Webpage. Today’s Class Internet Safety & Privacy Tables Embedding music and video Frames.
OTN Workshop 2015 OTN SandBox Presented by Marta Mihoff OTN Database/Data Process Manager.
Java server pages. A JSP file basically contains HTML, but with embedded JSP tags with snippets of Java code inside them. A JSP file basically contains.
Inventory Skills Entering the Counts What this tutorial covers—and doesn’t Inventory tasks 1. Record transfers 2. Report losses 3. Get organized 4. Print.
1.  Microsoft DOS (Disk Operating System) use a command line user interface.command line  A command line user interface means that the user is required.
BMTRY 789 Lecture 11: Debugging Readings – Chapter 10 (3 rd Ed) from “The Little SAS Book” Lab Problems – None Homework Due – None Final Project Presentations.
11/25/2015Slide 1 Scripts are short programs that repeat sequences of SPSS commands. SPSS includes a computer language called Sax Basic for the creation.
1 Import NOAA Atlas Data March 2009 Obtaining NOAA Atlas 14 Rainfall Data and Importing it into WinTR-20.
Instructions for Uploading Points and Photos for Linking Uploading GPS points requires the following: At each site or transect note stop, “mark” a GPS.
All sections to appear here Welcome to my pptPlex Slide Show, this can be executed in either two ways: 1.As a normal PowerPoint slide show: Example hit.
Windows Installation Tutorial NASA ARSET For Python help, contact: Justin Roberts-Pierel
Vex Robotics Program four: reversing and turning.
Part 5: Advanced Trajectories
Python Lesson 1 1. Starter Create the following Excel spreadsheet and complete the calculations using formulae: 2 Add A1 and B1 A2 minus B2 A3 times B3.
CS116 COMPILER ERRORS George Koutsogiannakis 1. How to work with compiler Errors The Compiler provide error messages to help you debug your code. The.
16-1 PC-HYSPLIT WORKSHOP Workshop Agenda Introduction to HYSPLIT Introduction.ppt Model Overview Model_Overview.ppt Meteorological Data Meteorological_Data.ppt.
1 JavaScript and Dynamic Web Pages Lecture 7. 2 Static vs. Dynamic Pages  A Web page uses HTML tags to identify page content and formatting information.
Your current Moodle 1.9 Minimum Requirements Ability to do a TEST RUN! Upgrading Moodle to Version 2 By Ramzan Jabbar Doncaster College for the Deaf By.
Perform a complete mail merge Lesson 14 By the end of this lesson you will be able to complete the following: Use the Mail Merge Wizard to perform a basic.
3.3 SoftSPS Software Installation 1.Go to \\Master\ControlSetup\IPC Setup (Drivers & Softwares) and access the SoftSPS folder as shown in the picture below.
KY Employee Benefits Module
Multi-host Internet Access Portal (MIAP) Enhancement Guide
CS115 HOW TO INSTALL THE JAVA DEVELOPMENT KIT (JDK)
Macrosystems EDDIE: Getting Started + Troubleshooting Tips
Amos Introduction In this tutorial, you will be briefly introduced to the student version of the SEM software known as Amos. You should download the current.
Getting started – Example 1
Mukurtu: Batch Upload, Roundtrip
Running a Java Program using Blue Jay.
Macrosystems EDDIE: Getting Started + Troubleshooting Tips
Macrosystems EDDIE: Getting Started + Troubleshooting Tips
Presentation transcript:

This document gives one example of how one might be able to “fix” a meteorological file, if one finds that there may be problems with the file. There are lots of different potential problems, and this approach will not necessarily fix every problem. Nevertheless, it may be useful in some cases. The example will use the following file, that can be downloaded from the ARL met data archives: ftp://arlftp.arlhq.noaa.gov/pub/archives/edas/edas.subgrd.mar It was found that trajectories were prematurely truncated at certain times when using the file. Example: Fixing a HYSPLIT Met Data File Mark Cohen, NOAA ARL, College Park, MD Nov 20, 2014

Can run “chk_times” program as one strategy to find if met data file has any missing times Open up command prompt window Run chk_times program: c:\hysplit4\exec\chk_times Program asks first for met file directory, in my case this was: c:\d\metdata\edas80km\ Program then asks for met file name, in this example: edas.subgrd.mar Output is shown in the figure on the next page It can be seen that there appear to be three time periods that may be missing: Mar 26, UTC=3; Mar 26, UTC=6; Mar 26, UTC=21

At three different times, a “-1” is shown after the hour column

Can run “chk_file” program as another strategy to find if met data file has any missing times Open up command prompt window Run chk_file program: c:\hysplit4\exec\chk_file Program asks first for met file directory, in my case this was: c:\d\metdata\edas80km\ Program then asks for met file name, in this example: edas.subgrd.mar Output is very extensive… a few snippets are shown on the following pages… It can be seen from the figure on the next page that there is clearly a problem with the data records for Mar 26, UTC=3. The same problem would be seen for the other missing time periods (Mar 26, UTC=6; and Mar 26, UTC=21).

The data for Mar 26, UTC=0 looks “normal”, i.e., there appears to be numerical information present… The data for Mar 26, UTC=3 clearly looks like its missing: there is a “-1” in the forecast hour field; “NULL” is the field name values are all “0”

To begin the “fixing” process, will run “xtrct_time” program to create valid chunks of the data. There are three valid chunks of the data in this file: 2000, March, 16, 0:00 (beginning of the file)  2000, March, 26, 0: , March, 26, 9:00  2000, March, 26, 18: , March, 27, 0:00  2000, March, 31, 21:00 (end of the file) Open up command prompt window [see Figure on next page, showing steps below] Run chk_file program: c:\hysplit4\exec\xtrct_time Program asks first for met file directory, for my directory structure it is: c:\d\metdata\edas80km\ Program then asks for met file name, in this example: edas.subgrd.mar Program lists the starting and ending time of the file Program then asks you for the starting time of the extract (day, hr, min). For this first extract, we want the start of the extract to be the start of the file, so we enter the following: Program then asks you for the ending time of the extract (day, hr, min). For this first extract, we want the extract to go up to the last valid time period before the first glitch. The first “glitch” is at , so we want the ending time of this extract to be: Program then asks you for the “skip time interval”. Generally one doesn’t want to skip any times, so generally will enter 0 here: 0 Program then determines the expected start and stop record numbers for you, and asks you to confirm that this is what you want: Then the program runs, creating an output file “extract.bin” in whatever directory you are working in. You must rename this file to something else, or else the next extract will just overwrite this file: rename extract.bin march2000_part1.bin

Creating the 1 st Extract File:

Repeat the same process, making the 2 nd extract, i.e., to go from the first valid time after the glitch, to the last valid time before the next glitch: 2000, March, 26, 9:00  2000, March, 26, 18:00 Open up command prompt window [see Figure on next page, showing steps below] Run chk_file program: c:\hysplit4\exec\xtrct_time Program asks first for met file directory, for my directory structure it is: c:\d\metdata\edas80km\ Program then asks for met file name, in this example: edas.subgrd.mar Program lists the starting and ending time of the file Program then asks you for the starting time of the extract (day, hr, min). For this second extract, we want the start of the extract to be the first valid time after the two corrupted time, so we enter the following: Program then asks you for the ending time of the extract (day, hr, min). For this second extract, we want the extract to go up to the last valid time period before the next glitch. The next “glitch” is at , so the ending time of this extract is: Program then asks you for the “skip time interval”. Generally one doesn’t want to skip any times, so generally will enter 0 here: 0 Program then determines the expected start and stop record numbers for you, and asks you to confirm that this is what you want: Then the program runs, creating an output file “extract.bin” in whatever directory you are working in. You must rename this file to something else, or else the next extract will just overwrite this file: rename extract.bin march2000_part2.bin

Creating the 2nd Extract File:

Repeat the same process, making the 3rd extract, i.e., to go from the first valid time after the last glitch, to the end of the file: 2000, March, 27, 0:00  2000, March, 31, 21:00 Open up command prompt window [see Figure on next page, showing steps below] Run chk_file program: c:\hysplit4\exec\xtrct_time Program asks first for met file directory, for my directory structure it is: c:\d\metdata\edas80km\ Program then asks for met file name, in this example: edas.subgrd.mar Program lists the starting and ending time of the file Program then asks you for the starting time of the extract (day, hr, min). For this last extract, we want the start of the extract to be the first valid time after the last corrupted time, so we enter the following: Program then asks you for the ending time of the extract (day, hr, min). For this last extract, we want the extract to go up to the end of the file, so the ending time of this extract is: Program then asks you for the “skip time interval”. Generally one doesn’t want to skip any times, so generally will enter 0 here: 0 Program then determines the expected start and stop record numbers for you, and asks you to confirm that this is what you want: Then the program runs, creating an output file “extract.bin” in whatever directory you are working in. You must rename this file to something else, or else the next extract will just overwrite this file: rename extract.bin march2000_part3.bin

Creating the 3 rd Extract File:

Here you see a “directory” listing – using the command “dir”, for the directory that the work is taking place in (in this case, c:\hysplit4\working_metdata\ You can see the 3 extract files, and the relative sizes of the files makes sense, in terms of how many time periods each file contains.

Next, we are going to combine the 3 extract files into one file, using the DOS Copy command. Before we do that, here’s the “help” file for the DOS Copy command:

Now we combine the files copy march2000_part1.bin/B+march2000_part2.bin/B+march2000_part3.bin/B march2000_prelim.bin/B Note that the 3 input files are separated by a “+”, and the “/B” flag is set for each input file and the output file to indicate that they are “binary files” The resulting directory listing is also shown below, and the size of the new combined file appears to make sense, i.e., the size is the sum of the sizes of the 3 input files, as expected

The program “add_miss.exe” has been in the HYSPLIT4 distribution package in the past, but may not currently be in the package. If you have it in your hysplit4\exec directory, great! If you don’t, you may be able to download a version compiled for Windows from the following URL (e.g., right click on this link and “save target as” or “save link as”, and save the program to the hysplit4\exec directory or anywhere else that you want: We run this program… in my case, as shown below, it was in a different executable directory, i.e., c:\hysplit4\exec\INTEL\ The program asks for the meteorological directory and the meteorological file name. If you are running the program from the directory where the met file resides, you can enter “.\” for the directory name, as shown in the example below We will run the program on the “combined” file we have just created, i.e., march2000_prelilm.bin Now will use the program “add_miss.exe” to add in the missing times, using interpolation

When the program starts running, it detects the missing time periods, and you see *ERROR* messages. This is ok. We know there are missing time periods, and we are actually glad that the program recognizes this, too! The first missing periods in the combined file are March 26, 3:00 and March 26, 6:00. So, instead of the expected 3 hour interval between time periods in the file, these are missing, and the program reports that the meteorological data time interval varies, changing from 180 minutes (3 hrs) to 540 minutes (9 hrs). This is expected, as the combined file does have a 9-hour interval at that point, instead of 3 hours.

The program keeps running, and it begins reading the data from the file. If the data appear present and valid, the program just copies the data into the output file, as shown below It continues to do this until it encounters the first missing time period

As the program continues, you can see that when it encounters the missing time periods, it “interpolates” to estimate the missing data, and then writes the interpolated estimates to the output file.

The program ends The directory listing shows the new output file “addmiss.bin”… you can see it’s a little bigger than the combined file with the 3 missing time periods, as expected We now rename the “addmiss.bin” file to a more useful name. In this example, we have renamed it to be the following: edas.subgrd.mar fixed The directory listing now shows the renamed file

If we run the “chk_file” program on the new file, we see, for example, that the data for the time Mar 26, 3:00 appear to be “ok”, or at least not obviously missing

And here’s another snippet of the output from the same “chk_file” run that shows that the data for the next period – which was missing – also appears to be ok…

And a final snippet of the output from the same “chk_file” run that shows that the data for the final time period that was missing (Mar 26, 21:00) also appears to be ok…

C:/D/METDATA/edas80km/ edas.subgrd.mar / tdump To carry out another test of the file, we will try to run a back-trajectory. First, we will do a run with the original file. The CONTROL file that was used for this simple test is the following: Starting time Number of starting locations Starting lat, long, height Number of hrs for run Vertical motion option Model top Number of met data files Met data directory Met data file Directory for output Name of output

Here’s the tdump file for this run, using the old met file. You can see that it stops, after just 24 hours, rather than going the full 96 hours as we specified. This is because as it goes back in time, it gets to the Mar 27 0:00 time, and then, it needs the Mar 26 21:00 time to go further. This time is missing, so the program “crashes”

C:/D/METDATA/edas80km/ edas.subgrd.mar fixed./ tdump Now we carry out the same test with the fixed met data file. The CONTROL file that was used for this simple test is the following (the only difference is the name of the met file)… if you want, you could also specify a different name for the output file, e.g., “tdump_fixed.txt” or something: Starting time Number of starting locations Starting lat, long, height Number of hrs for run Vertical motion option Model top Number of met data files Met data directory Met data file Directory for output Name of output

Here’s the tdump file for this new run using the fixed met file. It only goes back 51 hours, but this is because the trajectory goes off the met data grid at that point. This can be confirmed in the MESSAGE file for the run. This is why it can be a good idea to also include a global met data file, so that when the trajectory goes off the regional data domain, it can still continue…

Map of trajectory output using original met data file Map of trajectory output using fixed met data file At this point, the trajectory goes off the met data grid