Definition of arrays at aqprep

Hello,

It’s very likely that I’m missing something but noticed that at aqprep the arrays are defined as t_phy_wrf ( ims:ime, kms:kme, jms:jme ). This is the same for p_phy_wrf , rho_wrf, z_at_w_wrf, dz8w_wrf, p8w_wrf, t8w_wrf, qv_curr_wrf, qc_curr_wrf, qr_curr_wrf, qi_curr_wrf, qs_curr_wrf, qg_curr_wrf. I’d expect the arrays to be defined as var ( ims:ime, jms:jme, kms:kme ). My recollection is that WRF uses i and j for horizontal components and k for vertical, so maybe flipping horizontal indices might make sense in some case, but flipping j and k still sounds odd (at least to me). Anyway, a quick clarification would be appreciated

Thanks.

That’s just how these variables are defined on the WRF side. You can check in the Registry:

state real t_phy ikj misc 1 - r “T_PHY” “Temperature” “K”

I think this ordering helps with computational optimization but I couldn’t tell you why. Might be a good question for the WRF forum. Good attention to detail, though.