Difference between revisions of "FLEXPART Model/MakeAvailableFile"

From mn/geo/geoit
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<rst>
+
= How to make AVAILABLE files =
**How to make AVAILABLE files**
 
  
All pre-2008 ECWMF GLOBAL windfields have successfully been moved to
+
FLEXPART windfields can be found in $FLEXPART_WINDS (this is an environment variable set when loading flexpart modulefile). FLEXPART windfields are downloaded from NILU on demand. Please send an email to drift@geo.uio.no for getting new windfields or for more information.
  
::
 
 
  /xnilu_wrk/flex_wrk/WIND_FIELDS/
 
 
they are split into global and nested, ... have a look. (GFS, nested,
 
etc. is still in process)
 
  
At the moment there existst one AVAILABLE for ECMWF_global in this AVAILABLE is not only the windfilename, but also the path, this enables us to get the windfields without creating a directory of links.
 
  
In the directory
+
To create an AVAILABLE file for your simulation, you can use the python program:
  
 
::
 
::
  
  /xnilu_wrk/flex_wrk/bin  (NOTE: this has been added to flexpart's PATH, you may want to add it to your own)
 
 
You will find a python program:
 
 
::
 
 
 
 
   mkAVAIL.py
 
   mkAVAIL.py
  
You can type:  
+
You can type:
  
 
::
 
::
  
  % mkAVAIL.py -h
+
&nbsp;% mkAVAIL.py -h
  
 
for a summary of usage. A general example:
 
for a summary of usage. A general example:
Line 35: Line 21:
 
::
 
::
  
  % mkAVAIL.py -s 200701 -e 200703 -m ECMWF
+
&nbsp;% mkAVAIL.py -s 200701 -e 200703 -m ECMWF
  
 
This would create a file in the directory from where you run mkAVAIL.py called: AVAILABLE_ECMWF_global
 
This would create a file in the directory from where you run mkAVAIL.py called: AVAILABLE_ECMWF_global
  
As we get all the windfields moved, more options will be added to the script.
 
  
**NOTE**
 
There is one modification in FLEXPART to make the filename up to 255 char
 
in order to read those long filenames - check out in the SVN
 
repository for the latest version.
 
  
Also, the pathname file has to be modified as following, so you may
+
To get the full list of available options:
need to modify your scripts by adding an empty string:
 
  
::
+
&nbsp;% mkAVAIL.py -h
  
  ~/FLEXPART # cat pathnames
 
  /nilu2/home/sec/FLEXPART/myoptions/
 
  /nilu_wrk3/sec/test4/
 
 
 
  /xnilu_wrk/flex_wrk/WIND_FIELDS/AVAILABLE_ECMWF_global
 
  ============================================
 
  
FLEXPART can handle both: windfildir and no windfielddir (but all information in the AVAILABLE)
 
  
if anybody has a problem with the solution please tell jfb or sec
+
<u>NOTE</u>:&nbsp; the pathname file has to be modified as following, so you may need to modify your scripts by adding a slash (version 9.2):
  
</rst>
+
::
 +
 
 +
  ~/FLEXPART # cat pathnames
 +
./myoptions/
 +
./outputs/
 +
/
 +
AVAILABLE_ECMWF_global
 +
============================================

Latest revision as of 09:30, 2 October 2014

How to make AVAILABLE files

FLEXPART windfields can be found in $FLEXPART_WINDS (this is an environment variable set when loading flexpart modulefile). FLEXPART windfields are downloaded from NILU on demand. Please send an email to drift@geo.uio.no for getting new windfields or for more information.


To create an AVAILABLE file for your simulation, you can use the python program:

 mkAVAIL.py

You can type:

 % mkAVAIL.py -h

for a summary of usage. A general example:

 % mkAVAIL.py -s 200701 -e 200703 -m ECMWF

This would create a file in the directory from where you run mkAVAIL.py called: AVAILABLE_ECMWF_global


To get the full list of available options:

 % mkAVAIL.py -h


NOTE:  the pathname file has to be modified as following, so you may need to modify your scripts by adding a slash (version 9.2):

 ~/FLEXPART # cat pathnames
./myoptions/
./outputs/
/
AVAILABLE_ECMWF_global
============================================