Ok, I will wait ! Thank you so muchmeteoadriatic wrote:Right. Basically you should find where in scripts wrfout files are copied, then add similar commands to copy ts files. If you can't yourself I can look at this, but you will need to wait maybe few days.Giancarlo Modugno wrote:wait!!! I'm having another simulation and I've coincidently seen the files *.ts in the run directory. Thus, there is output but this is deleted when wrfems copies the wrfout_* files in the final stage, isn't it?
If yes, what else we can do to copy the file?
Thank you
TSLIST file and output
-
- Posts: 59
- Joined: Tue Jun 05, 2012 5:25 pm
Re: TSLIST file and output
-
- Posts: 59
- Joined: Tue Jun 05, 2012 5:25 pm
Re: TSLIST file and output
I have tried to insert at line 502 in run_ems.pm the command
and it works.
But now there is the about the number of station output. I have tried with 7 station points (maximum default is 5) but only the first two are printed.
In the readme file
But the problem is that the namelist.wps file in the static directory is overwritten every run I have, thus...?
Code: Select all
system "mv $ENV{EMS_RUN}/*.TS $EMSrun{WRFPRD}/";
But now there is the about the number of station output. I have tried with 7 station points (maximum default is 5) but only the first two are printed.
In the readme file
Code: Select all
The maximum number of time series locations is controlled by the namelist
variable max_ts_locs, which may be specified in the &domains namelist.
-
- Posts: 1540
- Joined: Wed Aug 19, 2009 10:05 am
Re: TSLIST file and output
Great you figured it out!
No, it it not namelist.wps, but namelist.input.
You need to edit wrfems/data/tables/wrf/namelist.arw (or namelist.nmm for NMM). This file is a starting point namelist for EMS scripts from which final namelist.input file is created for every run. So if you want to add something new (or remove something, or make parameter change that is not covered by ems conf files), you basically do it there.
Quick explanation on how ems works with namelist.input: When ems scripts start run, file wrfems/runs/<domainname>/static/namelist.wrfm is created dynamically from this default namelist AND from your configuration files in runs/<domainname>/conf directory. Then, it is symlinked into run directory to namelist.input filename.
I'm also going to move this topic to Hacking WRF EMS section, because all this is not supported by EMS.
No, it it not namelist.wps, but namelist.input.
You need to edit wrfems/data/tables/wrf/namelist.arw (or namelist.nmm for NMM). This file is a starting point namelist for EMS scripts from which final namelist.input file is created for every run. So if you want to add something new (or remove something, or make parameter change that is not covered by ems conf files), you basically do it there.
Quick explanation on how ems works with namelist.input: When ems scripts start run, file wrfems/runs/<domainname>/static/namelist.wrfm is created dynamically from this default namelist AND from your configuration files in runs/<domainname>/conf directory. Then, it is symlinked into run directory to namelist.input filename.
I'm also going to move this topic to Hacking WRF EMS section, because all this is not supported by EMS.
-
- Posts: 59
- Joined: Tue Jun 05, 2012 5:25 pm
Re: TSLIST file and output
Great! Done and it works! (Strange that only one has not printed the d02...! I will have another test...!)meteoadriatic wrote:Great you figured it out!
No, it it not namelist.wps, but namelist.input.
You need to edit wrfems/data/tables/wrf/namelist.arw (or namelist.nmm for NMM). This file is a starting point namelist for EMS scripts from which final namelist.input file is created for every run. So if you want to add something new (or remove something, or make parameter change that is not covered by ems conf files), you basically do it there.
Quick explanation on how ems works with namelist.input: When ems scripts start run, file wrfems/runs/<domainname>/static/namelist.wrfm is created dynamically from this default namelist AND from your configuration files in runs/<domainname>/conf directory. Then, it is symlinked into run directory to namelist.input filename.
I'm also going to move this topic to Hacking WRF EMS section, because all this is not supported by EMS.
Thank you so much! That's a big day

PS: It's a shame that I can't choose the variables in the output files... Or I can?

Have I change the topic in "solved"?

-
- Posts: 1540
- Joined: Wed Aug 19, 2009 10:05 am
Re: TSLIST file and output
Great!
Can you please copy/paste here (between code tags) an example of created .ts file, so the visitors (including myself who are lazy to try) can see what the output looks like?
Thx
I don't know, never tried creating tslists.Giancarlo Modugno wrote:PS: It's a shame that I can't choose the variables in the output files... Or I can?![]()
Can you please copy/paste here (between code tags) an example of created .ts file, so the visitors (including myself who are lazy to try) can see what the output looks like?
Thx
-
- Posts: 59
- Joined: Tue Jun 05, 2012 5:25 pm
Re: TSLIST file and output
Sure!
It is important to not use the TAB key but only "single space" (otherwise the station is not found).
It is important to not use the TAB key but only "single space" (otherwise the station is not found).
I think I will use wgrib for the other variables, because the .TS files have the coordinate of the grid point.#-----------------------------------------------#
# 24 characters for name | pfx | LAT | LON |
#-----------------------------------------------#
McMurdo Station due 41.851 3.713
Bogus point A tre 40.718 5.772
Bitonto bit 41.108 16.691
terlizzi ter 41.008 15.691
palo pal 40.108 15.391
bitetto bite 42.108 16.291
bari barl 41.108 16.091
-
- Posts: 59
- Joined: Tue Jun 05, 2012 5:25 pm
Re: TSLIST file and output
And this is the .TS output (the previous was the tslist file), like in the README.tslist
McMurdo Station 1 2 due ( 41.851, 3.713) ( 25, 44) ( 41.855, 3.736) 0.0 meters
1 0.022222 2 25 44 291.75610 0.01143 2.50038 7.08617 100270.20313 336.18320 0.00000 -4.08388 22.87517 291.10431 273.16000 0.00000 0.00000 0.14138
1 0.044444 2 25 44 291.78253 0.01159 2.48231 7.16392 100291.67188 336.18320 0.00000 -5.71784 30.94389 291.10431 273.16000 0.00000 0.00000 0.15470
1 0.066667 2 25 44 291.73730 0.01156 2.53474 7.26121 100219.06250 336.18320 0.00000 -6.72452 38.54830 291.10431 273.16000 0.00000 0.00000 0.15998
1 0.088889 2 25 44 291.74683 0.01155 2.57182 7.36027 100229.93750 336.18320 0.00000 -7.77327 43.17424 291.10431 273.16000 0.00000 0.00000 0.17279
1 0.111111 2 25 44 291.69656 0.01155 2.60659 7.41534 100139.39844 336.18320 0.00000 -7.73940 46.58756 291.10431 273.16000 0.00000 0.00000 0.18229
1 0.133333 2 25 44 291.73145 0.01155 2.61364 7.33425 100187.88281 336.18320 0.00000 -8.52137 47.75222 291.10431 273.16000 0.00000 0.00000 0.19844
1 0.155556 2 25 44 291.74561 0.01155 2.58187 7.23434 100202.15625 336.18320 0.00000 -8.83561 48.06950 291.10431 273.16000 0.00000 0.00000 0.21901
1 0.177778 2 25 44 291.73868 0.01155 2.55821 7.17401 100180.71875 336.18320 0.00000 -8.75971 48.16488 291.10431 273.16000 0.00000 0.00000 0.23820
1 0.200000 2 25 44 291.74619 0.01155 2.54472 7.11711 100183.33594 336.18320 0.00000 -8.83227 47.90720 291.10431 273.16000 0.00000 0.00000 0.25476
1 0.222222 2 25 44 291.77246 0.01156 2.54144 7.03298 100218.14063 336.18320 0.00000 -9.11520 47.25291 291.10431 273.16000 0.00000 0.00000 0.27004
1 0.244444 2 25 44 291.80133 0.01156 2.53719 6.97138 100258.15625 363.50220 0.00000 -9.40842 46.52061 291.10431 273.16000 0.00000 0.00000 0.28376
1 0.266667 2 25 44 291.82562 0.01156 2.52076 6.95548 100290.29688 363.50220 0.00000 -9.65044 45.94688 291.10431 273.16000 0.00000 0.00000 0.29609
1 0.288889 2 25 44 291.84091 0.01156 2.48667 6.97088 100307.56250 363.50220 0.00000 -9.80001 45.61035 291.10431 273.16000 0.00000 0.00000 0.30654
1 0.311111 2 25 44 291.84671 0.01157 2.45132 6.98917 100309.03125 363.50220 0.00000 -9.84695 45.46153 291.10431 273.16000 0.00000 0.00000 0.31469
1 0.333333 2 25 44 291.84741 0.01157 2.43668 6.99522 100302.10938 363.50220 0.00000 -9.83932 45.40364 291.10431 273.16000 0.00000 0.00000 0.32042
Re: TSLIST file and output
Hi Giancarlo,
I'm trying to activate the tslist option in the latest version (3.4.1.13.23) I've found that the script is now named WRFrun.pm and it's now located under wrfems>strc>ems_run>Models>WRF
I now nothing about perl scripts, but it seems to be almost the same method: include tslist around line 244 and 249 but also in lines 511 and 516. As it happened with the previous versions, it runs fine, but as soon as the simulation ends, the script moves wrfout* files to wrfprd, erasing all the other files.
Following your suggestions, I've tried to add this new line at line 695:
system "mv $ENV{EMS_RUN}/*.TS $EMSrun{WRFPRD}/";
It's placed just after the one which moves the wrfout files. But I'n not doing it as it should, because the script crashes.
Do you now how should I include in the perl script and in what line?
Regards,
Luis
I'm trying to activate the tslist option in the latest version (3.4.1.13.23) I've found that the script is now named WRFrun.pm and it's now located under wrfems>strc>ems_run>Models>WRF
I now nothing about perl scripts, but it seems to be almost the same method: include tslist around line 244 and 249 but also in lines 511 and 516. As it happened with the previous versions, it runs fine, but as soon as the simulation ends, the script moves wrfout* files to wrfprd, erasing all the other files.
Following your suggestions, I've tried to add this new line at line 695:
system "mv $ENV{EMS_RUN}/*.TS $EMSrun{WRFPRD}/";
It's placed just after the one which moves the wrfout files. But I'n not doing it as it should, because the script crashes.
Do you now how should I include in the perl script and in what line?
Regards,
Luis
Who is online
Users browsing this forum: No registered users and 1 guest