# How do I obtain latitude and longitude coordinates from synoptic weather charts

I have collection of images of synoptic weather charts downloaded from Bureau of Meteorology (BoM) which is in GIF format. I'm interested in obtaining the lat lon coordinates of cold fronts (thick black lines with triangles). My idea is: First get the pixel coordinates of the cold fronts. After obtaining the pixel coordinates, get the lat lon coordinates based on map projection type. BoM website mentions that the map projection type is Lambert Conformal Conic (LCC) projection. How can I speed up obtaining the pixel coordinates? And how to get the exact lat lon coordinates?

First, I approached extracting pixel coordinates in two ways:

Manual:- Obtain the pixel coordinates using the ginput function of MATLAB where with the help of mouse cursor I got the pixel coordinates. Image processing:- Converted the image into Binary and used edge and boundary detection. But in some cases this is not working properly.

% CODE IMAGE PROCESSING %
binaryImage = imbinarize(img, 'adaptive');
edgeImage = edge(binaryImage, 'Canny');
BW2 = bwareaopen(img,3000);
contourData = bwboundaries(edgeImage);

For obtaining lat lon coordinates based on LCC, I tried in MATLAB using pix2latlon function and also in python using the pyproj. None of them gives the expected results. How do I approach this problem?

• Interesting stuff. I'd think you have to work out if it's getting the pixel wrong, or converting that pixel to projection wrong. One issue with various tools is that some flip lat/lon or x/y, so perhaps the wrong order. But I'd suggest to narrow down if the pixel seems correct (can put the image into a program like Gimp and get the pixel location from the cursor in X, Y on screen easily to verify). Then give more details on what types of answers it's giving or such. Commented Nov 1, 2023 at 10:04
• I hope you'll give results if/when you finally get there, as it sounds neat :) Commented Nov 1, 2023 at 10:05
• Also LCC is not a single projection but a family of projections parameterized by central meridian and a pair of standard parallels. While central meridian here is clearly 130E, the standard parallels would require some guessing to figure out. Commented Nov 3, 2023 at 14:28