WPS icon indicating copy to clipboard operation
WPS copied to clipboard

Clean up print statements for geogrid optional fields

Open mgduda opened this issue 8 years ago • 1 comments

The changes introduced in PR #16 enable users to not select optional fields, even if those fields are available on disk. The print statements generated by these changes could be made a little cleaner: for example, the output if LAI12M is made optional and not selected looks like:

  Optional fields not processed by geogrid:
    LAI12M (priority=1, resolution='', path='')
    IMPERV (priority=1, resolution='default', path='/sysdisk1/duda/WRF/geog/nlcd2011_imp_ll_9s/')
    CANFRA (priority=1, resolution='default', path='/sysdisk1/duda/WRF/geog/nlcd2011_can_ll_9s/')

mgduda avatar Mar 10 '17 21:03 mgduda

Just for reference, here's the type of message we get when a higher-priority entry is optional and not used:

Parsed 26 entries in GEOGRID.TBL
Processing domain 1 of 2
  Processing XLAT and XLONG
  Processing MAPFAC
  Processing F and E
  Processing ROTANG
  Processing LANDUSEF
   Important note: could not open input dataset for priority level 2, but this level is optional.
  Calculating landmask from LANDUSEF ( WATER =  17  21 )
  Processing HGT_M
  Processing SOILTEMP

mgduda avatar Mar 10 '17 21:03 mgduda