Load multitemporal tabulary dataset #428
Replies: 3 comments 2 replies
-
There are empty cells in this raster as you can see from this Colab Notebook where I took a look at your data The definition of the Grid2d needs unique x, y values or a x0,dx,nx. See example in the learning material to the MIKE course |
Beta Was this translation helpful? Give feedback.
-
Thank you very much! I followed your recommendations and managed to add the time dimension... I put the snippet below. But sadly it is quite slow when I run the loop over the entire dataset (60 years * 365 days * 5 parameters). I guess I have to fine tune the loop because this looks like a common issue with big pandas dataframes [1] [2] Any suggestion to speed up is welcome :)
|
Beta Was this translation helpful? Give feedback.
-
this way of looping already improved a lot
|
Beta Was this translation helpful? Give feedback.
-
I would like to load multitemporal dataset stored in a simple csv table. So every line represents a day of observation for one cell of a squared grid covering our study area. I guess this is also something that a lot of newbie users like me want to do with mikeio.
I tried to inspire from the work I've done with netCDF files from satellite imagery but did not work :)
Here is the table as well as the dfs2 grid if needed (but center coordinates are available in table).
I tried this:
This last command didn't work :
But they do (5 km square grid) ;-)
So I made the grid with mikeZERO toolbox and load to be able to go to the next step:
But it also failed:
To sum-up I think I have to issues:
1) How to define the grid based on the table. The observations do are regularly spaced (5 km). Could it be du to the fact that the empty cells are not in the table?
once the geometry is OK
2) How to properly define the space and time dimensions as well as the attributes?? I tried with one variable (precipaitation quantity) but the table also contains other variables of interest.
Beta Was this translation helpful? Give feedback.
All reactions