-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running Hysplit with converted metfiles #11
Comments
Can you attach the setup and control file you are using as well as your message file. |
Here is my control file as well as my message file. |
There are a few programs that come with HYSPLIT that you can use to look at the meteorological files. |
I tried "Meteorology/display data/text profile tab" and here is my Error: ERROR metset: 2nd time period INDX record missing |
Is there any body who can help me in this regard? forrtl: severe (64): input conversion error, unit -5, file Internal Formatted Read |
Can you send the script you were using to download the ERA5 grib files? |
Get_ERA5_data vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4#from ecmwfapi import ECMWFDataServer """ PYTHON 3.x ABSTRACT: Retrieves ECMWF ERA5 grib files for use by HYSPLIT. Must have cdsapi installed and an account with CDS. grib files can be input into the era52arl fortran utility program to create a meteorological file that can be used This python program aids in retrieving meteorological variables from the ERA5 dataset which HYSPLIT needs. for command line options run with --help writes a file called get_era5_message.txt if the -g option is set will write a shell script to run the era52arl utility. 9/10/2018 converted to python3 from python 2.7 def getvars(means=False, tm=1, levtype='pl',instant=True):
def write_cfg(tparamlist, dparamlist, levs, tm=1, levtype='pl', cfgname = 'new_era52arl.cfg', means=False):
def createparamstr(paramlist, means=False, levtype='pl',instant=True): def grib2arlscript(scriptname, shfiles, day, tstr, hname='ERA5'): fid.close() ##Parse command line arguments and set defaults##### help = "default is pressure levels (pl) which will retrieve grib1 file \Can also choose model levels (ml). There are 137 model levels. This will retrieve grib2 file.")parser.add_option("-t", type="string" , dest="leveltype" , default= "pl" , #If no retrieval options are set then retrieve 2d data and 2d data in one file. do not do any retrievals.#options.retrieve3d=False means=False #if true retrieve mean fluxes instead of accumulated when possible. #mid = open('recmwf.txt','w') year = options.year #tppt_datestr = tpptstart.strftime('%Y-%m-%d') ###"137 hybrid sigma/pressure (model) levels in the vertical with the top level at 0.01hPa. Atmospheric data are stream = options.stream ##Pick pressure levels to retrieve. ################################################################
else: options.dir = options.dir.replace('"', '') if options.fname =='': if levtype == 'ml': file3d = options.dir + f3d #server = ECMWFDataServer(verbose=False) ##wtype = "4v" ##4D variational analysis is available as well as analysis. #wtype="an" if stream == 'oper':
#ensemble data only availabe every 3 hours. #print(options.getfullday) #___________________This block for setting time and step for surface fields that are only available as forecast.##This block not needed with CDS because retrieval time is for valid date. ###In order to make the forecast field files have matching time periods ###NOTE - accumulated fields are 0 for step of 0. So cannot use step0. ptimelist = ["18:00:00/06:00:00"]pstep = ["/".join(map(str,list(range(1,13))))]pstart=[tppt_datestr+ '/' + datestr]#elif stream == 'enda': #ensemble output. ptimelist = ["18:00:00/06:00:00"]pstep = ["/".join(map(str,list(range(3,15,3))))]pstart=[tppt_datestr+ '/' + datestr]#grid: 0.3/0.3: "For era5 data, the point interval on the native Gaussian grid is about 0.3 degrees. f3list =[] iii=1
#param2da.extend(param2df) #Notes on the server.retrieve function. #An area and grid keyword are available Here is my shape file as well: #!/bin/sh Example bash script for retrieving ERA5 global dataAuthor: Alice Crawford Organization: NOAA/OAR/ARLexample for downloading and converting global ERA5 dataon pressure levels.python callMDL="python3" #Location of get_era5_cds.py #directory to write files to. possible values are 2,4, and 8.determines how many files are retrieved per day.8 retrieves 8 files in 3 hour increments.smaller files are usually retrieved faster with less download errors.splitnum=8 for month in '02' mv new_era52arl.cfg era52arl.cfg #----------------------------------------- convert data to ARL formatIn practice you may want to run the followingin a separate script, after you have confirmed thatall the data downloaded properly.#----------------------------------------- #location of era52arl executable
done |
Thank you so much for your time. |
Sorry I was unable to attach any .py or .txt file, So I had to copy and paste the script. Is it ok or I should send it in an other way?
|
should I send you the script for downloading the ERA5 grib files in any other way again or what I posted here before, was ok? |
Is there anybody who can help me in modifying the code which has been used to download the ERA5 grib files? I need to download ERA5 data in a style which is required to convert it to ARL using the available scripts. Thanks in advance |
Another user was getting similar error messages and the problem turned out to be with the build. You need to modify the Makefile to reflect the setup on the machine that you are running the software on. |
Hello every one
I've just ran the ERA52ARL and converted my ERA5 data (GRIB format) to ARL (required by HYSPLIT). But I faced some errors while running HYSPLIT using the converted data. Here is a brief of what I am trying to run:
My met files are for the area of : [0 ,10, -90, 180] for the 1st of Jan 2018 to 6th of Jan 2018
I am running 72 hours Back trajectories for location : Lon: 120, Lat: -35 at height: 2500m
for the start time : 5th of Jan 2018 at 09:00 AM
The Error which I faced is:
ERROR metset: 2nd time period INDX record missing
ERROR metset: 2nd time period INDX record missing
ERROR metset: 2nd time period INDX record missing
ERROR metset: 2nd time period INDX record missing
Calculation Started ... please be patient
ERROR metpos: start point not within (x,y,t) any data file
900
Process finished with exit code 0
Does anybody know how should I fix this error and any suggestion?
Thanks in advanced
The text was updated successfully, but these errors were encountered: