Python – Calculate sunrise and sunset times for a given GPS coordinate within PostgreSQL

gpspostgresqlpython

I want to classify timestamp data types in a PostgreSQL table with regards to whether they can be considered "at day" or "at night". In other words I want to be able to calculate sunrise and sunset times accurately, given a particular GPS position.

I know plpgsql and plpython.

Best Answer

Take a look at these links:

Related Topic