24 Pages

grib1

Course: METEO 182, Fall 2009
School: Penn State
Rating:
 
 
 
 
 

Word Count: 7965

Document Preview

USERS GRIB1 GUIDE (FORTRAN 90) Contents: Introduction GRIB1 Encoding Routines GRIB1 Decoding Routine Extracting GRIB1 Fields from a GRIB1 file GRIB1 Tables GRIB1 Routine Docblocks =============================================================================== Introduction This document briefly describes the routines available for encoding/decoding GRIB Edition 1 messages. A basic familiarity with GRIB is assumed....

Register Now

Unformatted Document Excerpt

Coursehero >> Pennsylvania >> Penn State >> METEO 182

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
USERS GRIB1 GUIDE (FORTRAN 90) Contents: Introduction GRIB1 Encoding Routines GRIB1 Decoding Routine Extracting GRIB1 Fields from a GRIB1 file GRIB1 Tables GRIB1 Routine Docblocks =============================================================================== Introduction This document briefly describes the routines available for encoding/decoding GRIB Edition 1 messages. A basic familiarity with GRIB is assumed. A GRIB message is a machine independent format for storing one or more gridded data fields. Each GRIB message consists of the following sections: SECTION SECTION SECTION SECTION SECTION SECTION 0 1 2 3 4 5 Indicator Section Product Definition Section (PDS) Grid Definition Section (GDS) Bit-map Section (Optional) Binary Data Section End Section =============================================================================== GRIB1 Encoding Routines There are several routines that one can use to encode a GRIB1 message. Subroutine W3FI72 can be used to encode a GRIB1 message which is passed back to the calling program in a character array. It is the users responsibility to ensure that the character array that will hold the packed GRIB1 message has been allocated large enough prior to calling W3FI72. Another option is subroutine PUTGB. PUTGB encodes a GRIB1 message and writes it to a file. The message is not returned to the calling routine. The output GRIB1 data file must be opened with a call to subroutine BAOPEN (or BAOPENW) prior to the call to PUTGB. A call to BACLOSE is recommended at the end of the program to close the output file properly. Example usage: integer,dimension(200) :: KPDS,KGDS logical*1,allocatable :: LB(:) ! bitmap real,allocatable :: F(:) ! grid point data values lugb=50 ! Open GRIB1 file call baopenw(LUGB,"filename",iret) ! Set up bitmap and data field numpts=?????? allocate(LB(numpts)) allocate(F(numpts)) ! Set GRIB1 field identification values to encode KPDS(?)= KGDS(?)= ! pack and write field to file CALL PUTGB(LUGB,numpts,KPDS,KGDS,LB,F,iret) ! Close file ... call baclose(LUGB,iret) stop end There are other similar routines in the PUTGB family that can be used to encode GRIB1 messages and write them out to a file: PUTGBEX - Used to encode GRIB1 messages with NCEP PDS extensions to specify ensemble information. PUTGN - Allows users to specify a binary scale factor or limit amount of space each data point should occupy. Please see the "GRIB1 Routine Docblocks" section below for subroutine argument usage for the routines mentioned above. =============================================================================== GRIB1 Decoding Routine Subroutine W3FI63 can be used to decode a given GRIB1 message that resides in a character array in memory. This routine will return the unpacked values in the PDS and GDS, a bitmap array, and the unpacked grid point data values. It is the users responsibility to ensure that the returned arrays have been allocated large enough prior to calling W3FI63. Please see the "GRIB1 Routine Docblocks" section below for subroutine argument usage for the routine mentioned above. =============================================================================== Extracting GRIB1 Fields from a GRIB1 file Subroutine GETGB can be used to extract a specified field from a file containing many GRIB1 messages. GETGB searches an index to find the location of the user specified field. The index can be supplied from a separate GRIB1 index file, or it can be generated internally. The GRIB1 data file ( and the index file, if supplied ) must be opened with a call to subroutine BAOPEN prior to the call to GETGB. Users can request a particular field by specifying the PDS and GDS values that they wish to match. GETGB will return the PDS, GDS, bitmap, and grid point data values. Example usage: integer,parameter :: MAXPTS=?????? integer,dimension(200) :: JPDS,JGDS,KPDS,KGDS logical*1,dimension(MAXPTS) :: LB ! bitmap real,dimension(MAXPTS) :: F ! grid point data values lugb=10 lugi=0 ! Open GRIB1 file call baopenr(LUGB,"filename",iret) ! Set GRIB1 field identification values to search for j=0 ! search from beginning jpds(?)= jgds(?)= ! Get field from file CALL GETGB(LUGB,LUGI,MAXPTS,J,JPDS,JGDS, & KF,K,KPDS,KGDS,LB,F,IRET) ! Process field ... firstval=F(1) lastval=F(KF) fldmax=maxval(F) fldmin=minval(F) stop end There are other similar routines in the GETGB family that can be used to extract data from a GRIB1 file: GETGBEX - Used to search for and decode GRIB1 messages using NCEP PDS ext...
Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

Penn State - ARH - 5041
Project Proposal Shi Chen, Carolyn Fish, Allison Hurley, Peter Kloehn, Kerry Kramer, Gregory Kuleba, Matthew Leech, William Melville, Jacqueline Schuler, Edward Sheehe, Tyler Stoner, Zachary Tardivo October 30, 2007Introduction Political district b
Penn State - GEOG - 586
Geog 586: Geographic Information Analysis Project 1: Why Spatial Data is Special - Problems and OpportunitiesDavid Treat March 12, 2009Deliverable 9.3 The map on the following page depicts 2002 election results for the state of Texas, by Congress
Penn State - MATSE - 443
PLMSE406 practise test #3 for chapter 10 practice questions were given in the previous in class exam (the 3 questions that were not graded and given as bonus points)The following data were obtained from an INSTRON experiment:A B C Stress ( )Str
UCSD - PHYS - 110
UCSD - PHYS - 110
UCSD - PHYS - 110
UCSD - PHYS - 110
No license: PDF produced by PStill (c) F. Siegert - http:/www.this.net/~frank/pstill.html
UCSD - PHYS - 110
UCSD - PHYS - 110
UCSD - PHYS - 110
No license: PDF produced by PStill (c) F. Siegert - http:/www.this.net/~frank/pstill.html10.50-0.5-1 0 2 4 6 8 10No license: PDF produced by PStill (c) F. Siegert - http:/www.this.net/~frank/pstill.htmlNo license: PDF produced by PStill
UCSD - PHYS - 110
UCSD - PHYS - 110
UCSD - PHYS - 110
UCSD - PHYS - 110
UCSD - PHYS - 110
Allan Hancock College - PAGE - 66505
THE RED LETTERRESNET WA NEWSLETTER May - June 2005 Welcome to the third PHC RED researchers network e-letter! You may have noticed that we now have an official title ResNet WA. WE also have a website which you may now access (details below). Once
Allan Hancock College - PAGE - 66505
THE RED LETTERRESNET WA NEWSLETTER July 2005Welcome to the July PHC RED researchers network e-letter! Can I also remind you of our website which you can access from the following linkhttp:/www.meddent.uwa.edu.au/gp/research/. The discussion boa
N.C. State - ARE - 306
Title: State v. Adams Plaintiff: State of North Carolina Defendant: Ryan Jeffrey Adams Court: North Carolina Court of Appeals Facts: Defendant was arrested for violations of the N.C. Controlled Substances Act. At the time of the arrest about 1,300 gr
Alaska Anch - HUM - 211
Humanities 211Introduction to the Humanities IDr. Gabrielle BarnettTime:T/R\1:00- 2:15 Room: Course Schedule LinkOffice: BMH 213a Office Phone:783-6033 Course Assignments Linkemail: afgrb@uaa.alaska.edu Office Hours: T/R: 11:30-12:30, and b
Alaska Anch - HUM - 211
Humanities 211 Interpretation Project Guidelines and Topics General Guidelines: Select one of the specific topics below. Create a guidebook, or compact poster, or stand-alone powerpoint, or board game that addresses your selected topic. Your projec
Alaska Anch - HUM - 212
Alaska Anch - HUM - 211
Form Presentation (get .pdf version of page here) Prepare a stand-alone presentation, with visual and text content to help viewers compare the form of two of the images introduced in class or scenes from two versions of Romeo and Juliet. Your present
University of Texas - CS - 378
Transmission of InformationWhen you talk to your friends in person, you transmit information via sound waves in the air. Data typically is transmitted between computers using electromagnetic waves or pulses in air or another medium. These are analog
S.F. State - MATH - 800
MATH 800 FOUNDATIONS OF MATHEMATICS OUTLINE 19 1.JT SMITH SPRING 2008In class, the Axiom of Choice (AC) unit a. I discussed the proofs that the AC implies Bernayss form and that Bernayss form implies the AC. b. To prove the latter (substantial pr
Penn State - POP - 1988
RESPONDENT FILE INDEX - CYCLE IV LIST OF QUESTIONNAIRE ITEMS BY DATA LOCATIONDATA LOCATION 1-5 6-7 8-10 11 12-16 17-23QUESTION NUMBERDESCRIPTION Case ID number Record type Blank Questionnaire Type Date interview conducted Blank INTRODUCTION, RE
Penn State - VIEW - 1988
RESPONDENT FILE INDEX - CYCLE IV LIST OF QUESTIONNAIRE ITEMS BY DATA LOCATIONDATA LOCATION 1-5 6-7 8-10 11 12-16 17-23QUESTION NUMBERDESCRIPTION Case ID number Record type Blank Questionnaire Type Date interview conducted Blank INTRODUCTION, RE
Oregon State - ECE - 441
Houman TavakoliCurrent Address:830 SW Grove St . Apt #1 Corvallis, OR 97333 (503) 453-9059Permanent Address:4625 Jean Road Lake Oswego, OR 97035 (503) 675-1181Email: tavakolh@onid.orst.eduInternship Period:Spring-Summer / 2006Citizenship:
N.C. State - CE - 592
East Los Angeles College - M - 223
M223Lao-gi-jiai and the Man Dao.Narrated by Wang Ming-ji. Notes. This narrative is recorded in Document N (no. 31, page 491). Line 4. For a discussion of this name see introductions to M239 and M240. Line 6. dub dlangb dub sid is a wonder-worker,
University of Hawaii - Hilo - CE - 270
MOO Assignment Centroid and Center of Mass1) Find the y component of the centroid of the shaded area. Write down the exact integrals in your Y formula using the whiteboard first, THEN evaluate it.Red line (below): y = x 2 blue line (above) y = x
University of Hawaii - Hilo - CE - 270
MOO Assignment Moments 4 Forces are acting on this system: F, R T and D. 1 couple is acting on this system: M 1) Compute the sum of the forces 2) Compute the sum of the torques about point A. 2) Compute the sum of the torques about point B.You are
University of Hawaii - Hilo - CE - 270
MOO Assignment Vectors For all three questions 1) - 4), the components of points A and B: Ax , Ay , B x , and B y are known. There are 5 questions to this assignmentr 1) Describe the steps needed to obtain the vector representation of a Force F (des
University of Iowa - C - 132234
The Electroencephalogram and Epilepsy Medical NeuroscienceMark Granner, MD Department of NeurologyI.Key Principles A. The understanding of cortical neurophysiology depends on an understanding of neuroanatomy B. Cortical activity is influenced b
Penn State - EMSC - 100
On the Climate Change Beat, Doubt Gives Way to Certainty - New York TimesPage 1 of 4February 6, 2007ESSAYOn the Climate Change Beat, Doubt Gives Way to CertaintyBy WILLIAM K. STEVENSIn the decade when I was the lead reporter on climate chan
East Los Angeles College - CS - 2092
7 { in kf kfd i 0uu@9xEwc'k x{UU7 }i g g #ti7vl'd7w i k } g k y}l d i k g ll k}i f gl i u y}l d kl k }il 7'|hfEd7per'rxS|'km'lEkm}p'7'm}7ppepm7'kv| 'i7n'!uEiEiti`'im7'@m7@D'drgS7xy7''7'fEk|0'i'fetia} fli i k u k l u g
East Los Angeles College - CS - 2092
CS2092: Object Oriented Programming in Java Crib for Tutorial Sheet 2C. C. KirkhamThe rst two questions attempt to bring out the signicance of static variables and methods in classes. This has probably not been sufciently stressed yet in lectures.
East Los Angeles College - CS - 2092
gxje e0xx7S{0j77 gxlvxje fd f d y ~ kd x j'g}`Ej@j7'zE 'jm'77nj7x7j77j'dEm777'7mEy7j'97@x id f k xdyk w k fk n n i d x y ~ x7x0h7e jUhxsx$7e Phjx$xex 7e f n 7t p !~ '
East Los Angeles College - CS - 2092
CS2092: Object Oriented Programming in Java Crib for Tutorial Sheet 4C. C. Kirkham1. The underlying issue here is to sort out the distinction between a copy of an object and a copy of a reference to it. The clone method in Object just does a binar
East Los Angeles College - CS - 2092
CS2092: Object Oriented Programming in Java Crib for Tutorial Sheet 5C. C. KirkhamThe rst question this week is related to interfaces. The second is about the Visitor pattern. 1. The code produces: 1 3 4 5 1,42 3,0 3,1 5,0 java.lang.ClassCastExcep
East Los Angeles College - CS - 2092
CS2092: Object Oriented Programming in Java Chapter 1: IntroductionC. C. KirkhamWhat is this course about?In a word - Java. Java is a comparatively new programming language, and is not yet fully stable - by which I mean that there have been chang
East Los Angeles College - CS - 2092
l~ 7ukeDquEsrdeEuksqqolglidTD { @gl{j tljlsrd@St j v x x k h j j k | x nm | j )dird9!vq(QDGihgzseulu@)lx DdDol9l k w k d d j d j j x j md f j j m d df m x x x k w d d eaouutl5)lx { DDxqukey5srdqeeqDsrde!qznuq
East Los Angeles College - CS - 2092
q ( j{evye({fj}j{!}{} {v5{}f}{eeej{ |5 Ue{v|j{j f}j |eWej{|e e Qhyv !q{v qeeD#v|fetu}!}{} {q2lv }fq q vfq eqqej}e e5ue| p|j}e fjv e (jj|
East Los Angeles College - CS - 2092
pre rrupetv rtertvrt urrttp #rurru rgtruuu r pveuvevzr $rzb1uvtruurrz trurtttqut v2r trer rr vt urt#zwv uv prr tutrwrut tbeutrr { i l v n i l kn v j
East Los Angeles College - CS - 2092
h h hpw hs }m } h w h clropDlGlGorplQDlqlkolDh@qbDclcqhGhrfi7qDxrhDhrrh rhjohrf9rhDoulplrfeohqbo{lrzg)x DpopDqrDhro{ljzf h m s h f d x oxrhDrpz7l!lqbjro{llrl!rjnrfDhzD)fqg!opn1hDc2 h p h hs } p f d h o)q
East Los Angeles College - CS - 2092
oYss`ssss eoYssssxs eoYssYsms 5ssss5sms oYssssss h q j e hn h j h fp@#!i~iriq)haghieghifjQ1ED)hgigEsd e n j h q h j j h h h p h gdgsgE)h19@ssiiriq)hsihDeWzh9gf#fSg7rW y ye
East Los Angeles College - CS - 2092
CS2092 - Object Oriented Programming in Java Chapter 15: Inner ClassesC. C. KirkhamIntroductionInner classes were introduced into Java when JDK1.1 was released. They werent in JDK1.0. An interesting fact about them is that no change was needed in
East Los Angeles College - CS - 2092
D|@emgDkDdeeddkeedeWierl@mpjWbpDnedelg j n t m j kg k )WDkdyedbigibDkdelsf#fdDuplzygjpbj(i@ztrSqyprbdkdeyDd d k j d d k d |g gx k { q g g d n |d{gn d d kjg { q t d k k qj qj ilhD!Dbipim@pjDjdg1eedbbWienedlg irDmW@e#pejedv
East Los Angeles College - CS - 2092
CS2092: Object Oriented Programming in Java Chapter 2: Getting StartedC. C. KirkhamThe C-like subsetWe will start off by writing programs which you could already write in C, and which dont do anything very interesting. This is an attempt to reass
East Los Angeles College - CS - 2092
CS2092: Object Oriented Programming in Java Chapter 3: Objects and ClassesC. C. KirkhamObjects and Abstract Data TypesBefore introducing what an object is, I need to remind you about the Abstract Data Type (ADT). You could have been taught this i
East Los Angeles College - CS - 2092
CS2092: Object Oriented Programming in Java Chapter 6: The instanceof Operator, Diagrams and InterfacesC. C. KirkhamThe instanceof OperatorThere are times when you might want to know whether an object is an instance of a particular class. That is
East Los Angeles College - CS - 2092
CS2092 - Object Oriented Programming in Java Chapter 7: Using the AWTC. C. KirkhamAbstract Windowing Toolkit - AWT We have now discussed most of the language features of Java, and will go on to describe some of the facilities in the Java Applicati
East Los Angeles College - CS - 2092
CS2092 - Object Oriented Programming in Java Chapter 8: An Application - The Dice GameC. C. KirkhamI could just go on adding new AWT features one at a time, and letting you see them. What I want to do instead is built up a larger example, and then
East Los Angeles College - CS - 2092
CS2092 - Object Oriented Programming in Java Chapter 9: AppletsC. C. KirkhamAn applet is a Java program which can appear in a Web page. When the Web browser nds an applet tag in an html le, it downloads the class le for the applet and runs it on t
East Los Angeles College - CS - 2092
CS2092: Object Oriented Programming in Java Tutorial Sheet 1C. C. KirkhamThe C subsetThis sheet is mostly concerned with the C-like constructs of Java. If it uses something which has not been talked about in lectures, use your understanding of C
East Los Angeles College - CS - 2092
CS2092: Object Oriented Programming in Java Tutorial Sheet 2C. C. Kirkham1. Given the following class denition, what is being achieved by the use of the two variables whatIsThis and whatDoing? class Dummy { static int whatIsThis = 0 ; int whatDoin
East Los Angeles College - CS - 2092
CS2092: Object Oriented Programming in Java Tutorial Sheet 4C. C. Kirkham1. This question relates to cloning, for which you may need to refer to Chapter 6 of your notes. Here is the code for a class IntTree, which can represent an n-ary tree conta
East Los Angeles College - CS - 2092
CS2092: Object Oriented Programming in Java Tutorial Sheet 3C. C. KirkhamClearly it is not difcult to turn questions 2 and 3 into programs and run them. However, if you do that, I encourage you to work out before you see the answers what they shou
University of Alabama in Huntsville - HW - 526
0000 00001000 10001000 10001100 00111110 00111110 00111111 00111111 00111111 00111111 00111111 00111111 00111101 00111101 00111101 00111101 00111101 00111101 00111111 00111111 00111111 00111111 00111111 00111111 00111111 0011
Penn State - KRE - 124
JanuarySun1 2Mon3Tue4Wed5Thu6Fri7Sat8910 -Send out initial Survey (at work)1112 - receive back input on initial survey131415 -work on calendar - complete new survey16 -Begin skylight analysis- weight and structura
Penn State - KRE - 124
KRISTEN EASHCELL (717) 439-3988 E-MAIL kre124@psu.edu 639 MOORES MTN RD MECHANICSBURG, PA 17055 324D. VAIRO BLVD. STATE COLLEGE, PA 16803 HTTP:/WWW.ARCHE.PSU.EDU/THESIS/EPORTFOLIO/CURRENT/PORTFOLIOS/KRE124/Objective:I am seeking a full time po
Penn State - KRE - 124
The Research and Economic Development Center (REDC)Kristen Eashhttp:/www.arche.psu.edu/thesis/eportfolio/current/portfolios/kre124/ Construction Management Advisor: David Riley September 26, 2005B uildin g StatsLo cation: P enn State Erie C am