Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

Error in ext_pkg_write_field when using metgrid

bparazin

New member
Hi, thanks to all the superb advice I got here with my last question, I've been able to move to the next step of my simulation process where I've also run into an issue there 😅. Using jupiter-opensource / wrf-preproc-intermediate-writer · GitLab this python script, I've taken NETCDFs of my data and turned them into the WPS intermediate format, and now I'm trying to use metgrid to take those and make the boundary conditions for my model, but, as the title might suggest, I am getting an "Error in ext_pkg_write_field" error when using it on the produced files. Looking through the metgrid.log (attached here), I don't see anything that really hints at what could be causing this, since it seems to progress pretty fine up to that point, with the only thing being it's looking for more subsurface fields than I have, but the ones I do have appear to be importing fine. With that said, previous research on this error has brought up some forums where it looks like that error arises due to a missing mandatory variable, but looking at this list What fields are mandatory for running WRF? of mandatory variables, I've made sure to include all of them and import them. I figure the problem is 1 of 3 potential causes:
1. The list of mandatory variables has increased
2. something isn't importing correctly
3. An unrelated cause
and I would really appreciate any guidance you all could give about solving this. Thanks!
 

Attachments

  • metgrid.log
    21.1 KB · Views: 7

Ming Chen

Moderator
Staff member
Would you please check whether all variables are in the same levels? I did see a similar error before when QC, QR, QI, and QS fields don't have the same number of vertical levels as other 3-d atmospheric fields (e.g., TT, UU, VV).
 

bparazin

New member
Would you please check whether all variables are in the same levels? I did see a similar error before when QC, QR, QI, and QS fields don't have the same number of vertical levels as other 3-d atmospheric fields (e.g., TT, UU, VV).
Ooh, that might be it! My relative humidity is on fewer vertical levels as the rest of my 3-d datasets. Let me see if I can fix that and report back. Thanks!
 

bparazin

New member
Would you please check whether all variables are in the same levels? I did see a similar error before when QC, QR, QI, and QS fields don't have the same number of vertical levels as other 3-d atmospheric fields (e.g., TT, UU, VV).
That fixed it! Thank you very much
 
Top