1d interpolation from multiple text files
Ahora está siguiendo esta pregunta
- Verá actualizaciones en las notificaciones de contenido en seguimiento.
- Podrá recibir correos electrónicos, en función de las preferencias de comunicación que haya establecido.
Se ha producido un error
No se puede completar la acción debido a los cambios realizados en la página. Vuelva a cargar la página para ver el estado actualizado.
0 votos
Comparte un enlace a esta pregunta
- nearest neighbor interpolation
- bilinear interpolation
- First column is latitude
- Second column is longitude
- Third column consist on air temperature corresponding to that latitude and longitude.
- Each interpolation technique interpolate temperature(3rd column) in text file and save this interpolated text file with inter_NNH(means this text file has been interpolated with nearest neighbor) and inter_BILIN(means this text file has been interpolated with bi-linear interpolations).
- After that, there will be 72 text files remains in my folder. (24 for uninterpreted and 48 of interpolated.)
6 comentarios
Comparte un enlace a este comentario
Comparte un enlace a este comentario
- Now my mind is that, code check each value of A0 and interpolate only NaN values with my method of interpolation(like, nearestest neighbor, spline etc.). Values other than NaN remains uninterpreted
- After interpolating these NaN values, my code pass this interpolated column of temperature to its P0 text file( means makes another text file with name int_methodName.text in which NaN or missing values are interpolated?
Comparte un enlace a este comentario
Comparte un enlace a este comentario
- What t(nanx) is doing in the last line of my code? What kind of interpolation it is doing?
- This code running fine. But it not interpolating margin NaN values in my text file( mostly are of bottom ones)?
Comparte un enlace a este comentario
Comparte un enlace a este comentario
Respuesta aceptada
2 votos
Comparte un enlace a esta respuesta
29 comentarios
Comparte un enlace a este comentario
Comparte un enlace a este comentario
Comparte un enlace a este comentario
Comparte un enlace a este comentario
Comparte un enlace a este comentario
Comparte un enlace a este comentario
Comparte un enlace a este comentario
Comparte un enlace a este comentario
Comparte un enlace a este comentario
Comparte un enlace a este comentario
Comparte un enlace a este comentario
Comparte un enlace a este comentario
Comparte un enlace a este comentario
Comparte un enlace a este comentario
Comparte un enlace a este comentario
Comparte un enlace a este comentario
- what the loops are iterating over
- then you will know how many times the inner loop runs.
Comparte un enlace a este comentario
Comparte un enlace a este comentario
- add a counter variable, and check its value after the code finishes (a universal solution).
- multiply the number of times the outer and inner loops run. This is easy because you can read the code (hint: look for size(out,...), and note that this is the number of rows and columns of the 3D data array).
- Understand the algorithm: each latitude and longitude is independently interpolated (as you requested), therefore it must iterate for each latitude and longitude...
- which is incidentally the number of lines of data in the data files.
Comparte un enlace a este comentario
Comparte un enlace a este comentario
Comparte un enlace a este comentario
Comparte un enlace a este comentario
- Use a loop.
- Write a function.
Comparte un enlace a este comentario
Comparte un enlace a este comentario
Comparte un enlace a este comentario
Comparte un enlace a este comentario
Comparte un enlace a este comentario
Comparte un enlace a este comentario
Comparte un enlace a este comentario
Más respuestas (0)
Categorías
Más información sobre Interpolation of 2-D Selections in 3-D Grids en Centro de ayuda y File Exchange.
Productos
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Seleccione un país/idioma
Seleccione un país/idioma para obtener contenido traducido, si está disponible, y ver eventos y ofertas de productos y servicios locales. Según su ubicación geográfica, recomendamos que seleccione: .
También puede seleccionar uno de estos países/idiomas:
Cómo obtener el mejor rendimiento
Seleccione China (en idioma chino o inglés) para obtener el mejor rendimiento. Los sitios web de otros países no están optimizados para ser accedidos desde su ubicación geográfica.
América
- América Latina (Español)
- Canada (English)
- United States (English)
Europa
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
