Convert multiple TIF to a single DFS2 #498
Answered
by
ecomodeller
moinabyssinia
asked this question in
Q&A
-
I have multiple TIF files (rasters) and I would like to convert them to a single DFS2 file. Is there a way to do that using MIKEIO scripts? Thanks, |
Beta Was this translation helpful? Give feedback.
Answered by
ecomodeller
Dec 6, 2022
Replies: 1 comment
-
Yes, as long as you can get data in the form of a NumPy array, and know the coordinate reference system, you should be able to. Take a look at this notebook for some inspiration, where we convert NetCDF -> Dfs2. (to read TIF files in Python, take a look at rasterio) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ecomodeller
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, as long as you can get data in the form of a NumPy array, and know the coordinate reference system, you should be able to.
Take a look at this notebook for some inspiration, where we convert NetCDF -> Dfs2. (to read TIF files in Python, take a look at rasterio)