lanceberc / ycwx

Weather web pages for yacht clubs and other interested parties
MIT License
1 stars 1 forks source link

paccup_overlay.py spams Invalid dfWestLongitudeDeg error #7

Closed rkaiser0324 closed 1 year ago

rkaiser0324 commented 1 year ago

Running the script yields this repeated error:

image

lanceberc commented 1 year ago

Yes, it might be because the warp crosses the anitmeridian. I haven't found GDAL to be particularly scrutible.

lanceberc commented 1 year ago

Also, the call to warp causes gdal to emit a "sidecar" file that is removed by paccup_overlay.py. Telling gdal to not emit sidecars causes warp to fail.

At one point reprojection was implemented with cartopy instead of gdal but it was much slower and used far more memory. See https://github.com/lanceberc/GOES/blob/master/GOES_Cartopy.ipynb.

rkaiser0324 commented 1 year ago

If it doesn't have any practical effect this error should probably be caught and suppressed.

lanceberc commented 1 year ago

It sure would be nice if GDAL raised an exception, but it doesn't. It doesn't hurt anything and doesn't affect correctness.

rkaiser0324 commented 1 year ago

Ok closing.