lynnpepin / NYCDatasetProcessing

Processing for a NYC traffic dataset
12 stars 9 forks source link

about GPS #2

Open Eeasonn opened 2 years ago

Eeasonn commented 2 years ago

Thank you for your code sharing! I want to know the csv longitude and latitude are only in the area of manhattan or in the whole nyc city? And what is the 'prebaked value'? how to get the 'inv_basis' in 'GPSUtils.py'?

lynnpepin commented 2 years ago

Only for Manhattan. Unfortunately it's been about 4 years since I've touched this, I forget the calculation for inv_basis.

The prebaked values are for Manhattan. It's a nice rectangle shape. This converts lat/lon coordinates to x/y coordinates on that rectangle, if I remember correctly.

pgps_to_xy(...) is used in utils.py only (excepting tests)