(RESOLVED) Cannot open file './PFILE:2020-09-13_00': Invalid argument

Topics related to running the ungrib.exe program
Post Reply
Saurabh
Posts: 6
Joined: Sun Sep 13, 2020 5:54 pm

(RESOLVED) Cannot open file './PFILE:2020-09-13_00': Invalid argument

Post by Saurabh » Sun Sep 13, 2020 6:02 pm

I am running ungrid.exe, and getting the following error.

At line 147 of file output.f90 (unit = 13)
Fortran runtime error: Cannot open file './PFILE:2020-09-13_00': Invalid argument
Error termination. Backtrace:
#0 0x7fc55ea1acd1 in ???
#1 0x7fc55ea1b819 in ???
#2 0x7fc55ea1c4ef in ???
#3 0x7fc55ec588b6 in ???
#4 0x7fc55ec58bac in ???
#5 0x55f2b2147109 in ???
#6 0x55f2b2145a1a in ???
#7 0x55f2b214604c in ???
#8 0x7fc55e6c60b2 in ???
#9 0x55f2b213f82d in ???
#10 0xffffffffffffffff in ???

any help is appreciated
Last edited by Saurabh on Mon Sep 14, 2020 5:39 pm, edited 1 time in total.

Ming Chen
Posts: 1577
Joined: Mon Apr 23, 2018 9:42 pm

Re: error in output.f90(unit=13)

Post by Ming Chen » Mon Sep 14, 2020 5:05 pm

This error clearly indicates that you don't have GFS data for the time 2020-09-13_00.
Please double check your GRIB files and enamelist.wps, make sure that ALL GFS data are available for the period specified in namelist.wps.
WRF Help Desk

Saurabh
Posts: 6
Joined: Sun Sep 13, 2020 5:54 pm

Re: error in output.f90(unit=13)

Post by Saurabh » Mon Sep 14, 2020 5:37 pm

Image: As you can see I do have files in place and linked to the GFSs. I checked the input dates of namelist.wps, that looks fine. But still, I am getting the error.
Attachments
Screenshot from 2020-09-14 23-01-57.png

Ming Chen
Posts: 1577
Joined: Mon Apr 23, 2018 9:42 pm

Re: error in output.f90(unit=13)

Post by Ming Chen » Fri Sep 18, 2020 9:04 pm

Would you please double check the file gfs.t00z.pgrb2.0p50.f000, and find what time it is for?
Please try the command
wgrib -s gfs.t00z.pgrb2.0p50.f000
or if you are familiar with NCL,
ncl_convert2nc gfs.t00z.pgrb2.0p50.f000
Then look at the netCDF file.
WRF Help Desk

sluque
Posts: 2
Joined: Tue Jun 08, 2021 6:13 pm

Re: Cannot open file './PFILE:2020-09-13_00': Invalid argument

Post by sluque » Tue Jun 08, 2021 6:32 pm

Hello!

I am having the exact same problem:

At line 147 of file output.f90 (unit = 13)
Fortran runtime error: Cannot open file './PFILE:2016-10-06_00': Invalid argument

Error termination. Backtrace:
#0 0x7f5c189abd01 in ???
#1 0x7f5c189ac849 in ???
#2 0x7f5c189ad52f in ???
#3 0x7f5c18bec5a6 in ???
#4 0x7f5c18bec89c in ???
#5 0x55b4e3b1e22f in ???
#6 0x55b4e3b1cb21 in ???
#7 0x55b4e3b1d172 in ???
#8 0x7f5c186560b2 in ???
#9 0x55b4e3b1683d in ???
#10 0xffffffffffffffff in ???


Everything seems to be linked in the correct way (link.png)

I checked and one of the files contains the information related to that date. (grib.txt).


Any help will be greatly appreciated.
Attachments
grib.txt
(30.87 KiB) Downloaded 4 times
link}.png

kwerner
Posts: 2328
Joined: Wed Feb 14, 2018 9:21 pm

Re: Cannot open file './PFILE:2020-09-13_00': Invalid argument

Post by kwerner » Tue Jun 29, 2021 5:25 pm

@siuque,
I first would like to apologize for the long delay in response. I've been traveling for a few weeks and am just now catching up with forum inquiries. Thank you for your patience. Can you attach your namelist.wps and ungrib.log file, along with one of your input data files? Thanks!
NCAR/MMM

sluque
Posts: 2
Joined: Tue Jun 08, 2021 6:13 pm

Re: Cannot open file './PFILE:2020-09-13_00': Invalid argument

Post by sluque » Wed Jul 14, 2021 4:01 pm

Im so sorry I didn't read your response before.

Thank you so much, but I found the problem. I was running the model in a external disk and for some reason I didnt have the permissions to open the files. When I run the model in home, everything worked out.

Thank you so much!

kwerner
Posts: 2328
Joined: Wed Feb 14, 2018 9:21 pm

Re: Cannot open file './PFILE:2020-09-13_00': Invalid argument

Post by kwerner » Wed Jul 21, 2021 6:56 pm

That is great news! Thanks you for letting me know.
NCAR/MMM

Post Reply

Return to “ungrib”