Question: Hello everyone! I am using Python And I have (as an input file) a catalogue of locations (latitude and Longitude) and the temperatures of every

Hello everyone!

I am using Python

And I have (as an input file) a catalogue of locations (latitude and Longitude) and the temperatures of every location.

Example of the input file:

lat lon temp

37.00 95.00 20

37.2 97.3 15

39.6 89.1 30

And I ask for the user to give the latitude and longitude of a location (for instance lat1=38.5 , lon1=93.0) , then give a distance (maximumDistance=60) and a temperature (minimumTemp=16).

And I want as an output file a catalogue of temperatures, that occur in a distance smaller than max_distance from the location (lat1 & lon1), with temperatures bigger that the minimum Temperatures. Also in the end I want to calculate the distance of the given location and the temperature.

Example of the output file

lat lon temp dist

38.7 93.10 18 23.8

38.62 92.82 19 20

38.8 93.0 27 34..

I am not sure that I have understand the question so any help would be appreciated!

Thank you in advance!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!