Temperature per specific date as a function of latitude and longitude?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Can anyone help me pull temperature based on specific dates, latitudes, and longitudes? For instance, what was the tempearture on Jan 15, 2020, at 38.9072° N, 77.0369° W?
I have a large number of quieries like this and need an efficient way to pull the data.
Thanks!
7 comentarios
Adam Danz
el 18 de Mzo. de 2020
Editada: Adam Danz
el 18 de Mzo. de 2020
I'm assuming you have temperature data for a bunch of (latitude, longitude) and date values (3D array?).
To address your question, you can use ismembertol to match the latitude and longitude values with your reference values. ismembertol will match values that are close enough given the tolerance level. Then match the dates which may need to be adjusted to removed the time-part so that you're only working with dates.
We can't get too specific without having more detail about your data, how it's arranges, its precision, etc.
Respuestas (1)
darova
el 18 de Mzo. de 2020
AN example
ii = 1:10;
str = sprintf('f%d ',ii);
str = strsplit(str,' ');
str(end) = [];
A = table(str',ii',ii'+3,...
'VariableNames',{'data' 'N' 'W'})
c1 = strcmp(A.data,'f2'); % find data 'f2'
c2 = abs(A.N-2) < 0.01; % find latitude '2'
c3 = abs(A.W-5) < 0.01; % find longitude '5'
ix = find(c1 & c2 & c3)
0 comentarios
Ver también
Categorías
Más información sobre Weather and Atmospheric Science en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!