JiriRichter / WRFDomainWizard

GNU General Public License v3.0
45 stars 13 forks source link

Only powers of 3 work in parent_grid_ratio of nests #2

Closed sfalmo closed 7 months ago

sfalmo commented 3 years ago

After defining the MOAD and adding a nest, a default parent_grid_ratio of 3 is selected. One cannot change this ratio to other numbers than 1, 3 or 9 without e_we and e_sn failing to validate. When changing parent_grid_ratio, valid numbers for e_we and e_sn are not recalculated. Instead, the old ones are kept. But then, the stepsize of the e_we and e_sn selector is set to parent_grid_ratio, making it impossible to select a number that both fulfills e = k * parent_grid_ratio + e_old and e = n * parent_grid_ratio + 1 for any k, n. A simple fix would be a change event listener on parent_grid_ratio that recalculates appropriate "starting values" for e_we and e_sn, analogous to leaflet.wrf-grid.js#L862-L856

HathewayWill commented 9 months ago

can confrim it doesn't allow mixed ratios either

for example 1 5 3

@JiriRichter

HathewayWill commented 9 months ago

image namelist.zip

JiriRichter commented 9 months ago

@sfalmo , @HathewayWill , thank you for reporting the issue. I have not worked on this project in year and honestly was not aware people are using it. I'll have a look at the problem.

HathewayWill commented 9 months ago

@JiriRichter

NCAR deleted the domain wizard and your site has been taking off on the forums