[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 20040813: Adding a subroutine



Thanks Steve!

My next question is:
In oabarn.f,
my new weight is
wt = EXP (-dsq*wtfac - dtq/ctau**2 )
where ctau is the new command line arguement
but dtq depends on that particular station's STIM variable.
where STIM will be different from the analysis time.
STIM is going to be a variable in my surface file.

How do I get STIM to the barnes routine without analyzing it?
I don't follow how the data is sent between oabsfc.f and oabarn.f
Thanks again...
jimmyc




On Mon, 16 Aug 2004, Unidata Support wrote:

>
>Jimmy,
>
>To modify OABSFC to local design,
>the best solution is to copy the entire contents of the 
>$GEMPAK/source/programs/oa/oabsfc to a new directory (preferably outside
>of the GEMPAK tree so that you don't have to worry about deleting 
>it if you remove the current distribution when you install
>a new distribution).
>
>I would suggest the following when working in your new directory:
>- Rename the oabsfc.f to a new name like oabtau.f
>- Edit the oabtau.f file so that the references to OABSFC are replaced with 
>OABTAU
>   In particular, change the IP_IDNT call so that the program looks
>   for the $GEMHLP, $GEMERR, $GEMPTXT, $GEMPARM and $GEMPDF files as oabtau 
>   instead of oabsfc
>- You will need to create copies of the GEMERR, GEMHLP and GEMPDF for your
>  OABTAU. Ideally, you would create a oabtau.txt, oabtau.err and oabtar.prm
>  file and generate the oabtau.hlp and oabtau.pdf using the 
> $GEMPAK/utilities/hlpbld
>  and pdfbld programs respectively. But, for working sake, you just need to
>  edit the oabtau.pdf copied from oabsfc.pdf. The pdf file is what is used
>  to tell the program what parameters to display in the interface for
>  the user to set values for. If you wanted the user to be able to
>  get help for "tau" then you would create help files in $GEMHLP/hlx
>  for the tau.hl1 and tau.hl2 
>
>- Edit the Makefile in you oabtau directory and rename the "oabsfc" occurences
>to oabtau (eg the ALIB, PROG, PROG.f entries).
>
>Now you can edit the code as necessary and build with "make all" and
>install with "make install". You can build anywhere on your system so long as 
>you have
>sourced the Gemenviron variables so that the libraries are found.
>
>Steve Chiswell
>
>
>>From: address@hidden
>>Organization: UCAR/Unidata
>>Keywords: 200408131705.i7DH5IaW005935
>
>>Hi-
>>I am curious how I can add a new pogram to GEMPAK5.7.2p2.
>>I wish to make modifcations to oabsfc.f where I add 1 user defined 
>>parameter tau. Then I wish to add another called stime which is read in 
>>from the dataset.
>>
>>Then I want to change the weighting function program oawfsr.f that accepts 
>>tau and, if stime is set, to read in the sfc datum stim to 
>>perform a calculation.
>>
>>So, maybe you can help me understand how to change the makefiles, and any 
>>other place where I need to add the new calls. Or can I just create the 
>>new subroutines in the source/oa directory and compile from there?
>>
>>I know I ask alot, so I hope I can thank you enough.
>>Thanks!
>>
>>-- 
>>James Correia Jr.
>>Ph.D. Candidate in Agricultural Meteorology
>>President (Dictator) of the ISU Graduate Meteorology Club
>>Dept. of Agronomy, Iowa State University
>>*********************************************
>>Email: address@hidden
>>Phone: 515-294-5587
>>Web: http://www.mesoscale.iastate.edu/jimmyc/
>>ISU GMC: http://www.stuorg.iastate.edu/gmc/
>>*********************************************
>>"There is a difference between knowing the path and walking the path"
>>-"Morpheus"
>>
>>"Scientific theories are built to be used, but they must be mistrusted, 
>>tested and improved."
>>-Balik and Frank 
>>
>--
>**************************************************************************** <
>Unidata User Support                                    UCAR Unidata Program <
>(303)497-8643                                                  P.O. Box 3000 <
>address@hidden                                   Boulder, CO 80307 <
>---------------------------------------------------------------------------- <
>Unidata WWW Service              http://my.unidata.ucar.edu/content/support  <
>---------------------------------------------------------------------------- <
>NOTE: All email exchanges with Unidata User Support are recorded in the
>Unidata inquiry tracking system and then made publically available
>through the web.  If you do not want to have your interactions made
>available in this way, you must let us know in each email you send to us.
>

-- 
James Correia Jr.
Ph.D. Candidate in Agricultural Meteorology
President (Dictator) of the ISU Graduate Meteorology Club
Dept. of Agronomy, Iowa State University
*********************************************
Email: address@hidden
Phone: 515-294-5587
Web: http://www.mesoscale.iastate.edu/jimmyc/
ISU GMC: http://www.stuorg.iastate.edu/gmc/
*********************************************
"There is a difference between knowing the path and walking the path"
-"Morpheus"

"Scientific theories are built to be used, but they must be mistrusted, 
tested and improved."
-Balik and Frank