Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow other units and coordinate systems for setting grid cell size #13

Open
dvalters opened this issue Jun 18, 2018 · 0 comments
Open

Comments

@dvalters
Copy link
Owner

dvalters commented Jun 18, 2018

Updated 25/02/22

This issue has been picked up again as it would also be good to support lat/lon and/or BNG specifically for the x/y positions for reach inputs.

At the minute, DX assumes the cellsize metadata is in metres, i.e. OSGB, UTM, basically a projected coordinate system that uses metres as the units. It would be more flexible to allow the user to specify the units (i.e. metres, km, decimal degrees etc.) in the parameter file, or even better, try to deduce it from any other metadata (not currently feasible as only ASCII grid format is supported, which doesn't require a header/metadata file to store units.

[dvalters@helmsdale dv_test]$ head -n 6 comonfort_dem_.asc
ncols        3427
nrows        4446
xllcorner    -98.632941404716
yllcorner    17.498771180130
cellsize     0.000045883021      <--- Decimal degrees! Results in wrong timestep multiplier (way too low)
NODATA_value  0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant