format question

Questions or comments about the WRF Portal

format question

Postby cjwblade » Mon Aug 27, 2012 5:03 pm

I'm trying to set the format variable to grab our grib files and I have 2 issues. The first is that it is grabbing . and ..

The second is what is the correct format I should put in for the names below?

[root@ifp14 work]# ls -l
total 8
lrwxrwxrwx 1 wrf_nmm wrf_nmm 14 Aug 27 20:19 GRIBFILE.AAA -> /data/nam/12/.
lrwxrwxrwx 1 wrf_nmm wrf_nmm 15 Aug 27 20:19 GRIBFILE.AAB -> /data/nam/12/..
lrwxrwxrwx 1 wrf_nmm wrf_nmm 35 Aug 27 20:19 GRIBFILE.AAC -> /data/nam/12/SVRLAMBERT12KM_000.GR2
lrwxrwxrwx 1 wrf_nmm wrf_nmm 35 Aug 27 20:19 GRIBFILE.AAD -> /data/nam/12/SVRLAMBERT12KM_003.GR2
lrwxrwxrwx 1 wrf_nmm wrf_nmm 35 Aug 27 20:19 GRIBFILE.AAE -> /data/nam/12/SVRLAMBERT12KM_006.GR2
lrwxrwxrwx 1 wrf_nmm wrf_nmm 35 Aug 27 20:19 GRIBFILE.AAF -> /data/nam/12/SVRLAMBERT12KM_009.GR2
lrwxrwxrwx 1 wrf_nmm wrf_nmm 35 Aug 27 20:19 GRIBFILE.AAG -> /data/nam/12/SVRLAMBERT12KM_012.GR2
lrwxrwxrwx 1 wrf_nmm wrf_nmm 35 Aug 27 20:19 GRIBFILE.AAH -> /data/nam/12/SVRLAMBERT12KM_015.GR2
lrwxrwxrwx 1 wrf_nmm wrf_nmm 35 Aug 27 20:19 GRIBFILE.AAI -> /data/nam/12/SVRLAMBERT12KM_018.GR2
lrwxrwxrwx 1 wrf_nmm wrf_nmm 35 Aug 27 20:19 GRIBFILE.AAJ -> /data/nam/12/SVRLAMBERT12KM_021.GR2
lrwxrwxrwx 1 wrf_nmm wrf_nmm 35 Aug 27 20:19 GRIBFILE.AAK -> /data/nam/12/SVRLAMBERT12KM_024.GR2
lrwxrwxrwx 1 wrf_nmm wrf_nmm 35 Aug 27 20:19 GRIBFILE.AAL -> /data/nam/12/SVRLAMBERT12KM_027.GR2
lrwxrwxrwx 1 wrf_nmm wrf_nmm 35 Aug 27 20:19 GRIBFILE.AAM -> /data/nam/12/SVRLAMBERT12KM_030.GR2
lrwxrwxrwx 1 wrf_nmm wrf_nmm 35 Aug 27 20:19 GRIBFILE.AAN -> /data/nam/12/SVRLAMBERT12KM_033.GR2
lrwxrwxrwx 1 wrf_nmm wrf_nmm 35 Aug 27 20:19 GRIBFILE.AAO -> /data/nam/12/SVRLAMBERT12KM_036.GR2
lrwxrwxrwx 1 wrf_nmm wrf_nmm 35 Aug 27 20:19 GRIBFILE.AAP -> /data/nam/12/SVRLAMBERT12KM_039.GR2
lrwxrwxrwx 1 wrf_nmm wrf_nmm 35 Aug 27 20:19 GRIBFILE.AAQ -> /data/nam/12/SVRLAMBERT12KM_042.GR2
lrwxrwxrwx 1 wrf_nmm wrf_nmm 35 Aug 27 20:19 GRIBFILE.AAR -> /data/nam/12/SVRLAMBERT12KM_045.GR2
lrwxrwxrwx 1 wrf_nmm wrf_nmm 35 Aug 27 20:19 GRIBFILE.AAS -> /data/nam/12/SVRLAMBERT12KM_048.GR2
lrwxrwxrwx 1 wrf_nmm wrf_nmm 35 Aug 27 20:19 GRIBFILE.AAT -> /data/nam/12/SVRLAMBERT12KM_051.GR2
lrwxrwxrwx 1 wrf_nmm wrf_nmm 35 Aug 27 20:19 GRIBFILE.AAU -> /data/nam/12/SVRLAMBERT12KM_054.GR2
lrwxrwxrwx 1 wrf_nmm wrf_nmm 35 Aug 27 20:19 GRIBFILE.AAV -> /data/nam/12/SVRLAMBERT12KM_057.GR2
lrwxrwxrwx 1 wrf_nmm wrf_nmm 35 Aug 27 20:19 GRIBFILE.AAW -> /data/nam/12/SVRLAMBERT12KM_060.GR2
lrwxrwxrwx 1 wrf_nmm wrf_nmm 35 Aug 27 20:19 GRIBFILE.AAX -> /data/nam/12/SVRLAMBERT12KM_063.GR2
lrwxrwxrwx 1 wrf_nmm wrf_nmm 35 Aug 27 20:19 GRIBFILE.AAY -> /data/nam/12/SVRLAMBERT12KM_066.GR2
lrwxrwxrwx 1 wrf_nmm wrf_nmm 35 Aug 27 20:19 GRIBFILE.AAZ -> /data/nam/12/SVRLAMBERT12KM_069.GR2
lrwxrwxrwx 1 wrf_nmm wrf_nmm 35 Aug 27 20:19 GRIBFILE.ABA -> /data/nam/12/SVRLAMBERT12KM_072.GR2
lrwxrwxrwx 1 wrf_nmm wrf_nmm 35 Aug 27 20:19 GRIBFILE.ABB -> /data/nam/12/SVRLAMBERT12KM_075.GR2
lrwxrwxrwx 1 wrf_nmm wrf_nmm 35 Aug 27 20:19 GRIBFILE.ABC -> /data/nam/12/SVRLAMBERT12KM_078.GR2
lrwxrwxrwx 1 wrf_nmm wrf_nmm 35 Aug 27 20:19 GRIBFILE.ABD -> /data/nam/12/SVRLAMBERT12KM_081.GR2
lrwxrwxrwx 1 wrf_nmm wrf_nmm 35 Aug 27 20:19 GRIBFILE.ABE -> /data/nam/12/SVRLAMBERT12KM_084.GR2
-rw-rw-r-- 1 wrf_nmm wrf_nmm 2451 Aug 27 20:19 namelist.wps
-rw-rw-r-- 1 wrf_nmm wrf_nmm 651 Aug 27 20:19 ungrib.log
lrwxrwxrwx 1 wrf_nmm wrf_nmm 44 Aug 27 20:19 Vtable -> /meteorlogix/domains/wrf_nmm_neus/Vtable.NAM
[root@ifp14 work]#
cjwblade
 
Posts: 2
Joined: Mon Aug 27, 2012 4:25 pm

Re: format question

Postby cjwblade » Tue Aug 28, 2012 4:46 pm

I don't know if this is correct or not, but it works so far. I added the code below in the def_ungrib.rb. The first and last line just show where I added it in the code. I added it in the section where it is creating the GRIBFILE.??? file links.

catch(:mismatch) do

if File.directory?(fname)
throw :mismatch
end

@ungrib_format_pattern.each { |char,pattern|

Also, I set my FORMAT to SVRLAMBERT12KM_??? and that grabs the correct files so far.
cjwblade
 
Posts: 2
Joined: Mon Aug 27, 2012 4:25 pm


Return to WRF Portal (GUI for running WRF)

Who is online

Users browsing this forum: No registered users and 1 guest

cron