Git Product home page Git Product logo

Comments (9)

jmozmoz avatar jmozmoz commented on September 26, 2024

I updated the package to fix the problems with the dependencies and the version number.

But what is the problem with the projection?

from cloudmap.

dirteat avatar dirteat commented on September 26, 2024

Great, thanks a lot!
Without the patch on satellite.py, I am getting the following error:

Download image date/time:  2017-10-27 15:00 UTC
Satellite file: images/2017_10_27_1500_MSG1_7_S2.jpeg
Satellite file: images/2017_10_27_1500_MSG3_9_S2.jpeg
Satellite file: images/2017_10_27_1500_GOES13_4_S2.jpeg
Satellite file: images/2017_10_27_1500_GOES15_4_S2.jpeg
Satellite file: images/2017_10_27_1500_MTSAT3_7_S2.jpeg
Traceback (most recent call last):
  File "/usr/bin/create_map", line 11, in <module>
    load_entry_point('CreateCloudMap==0.9.2', 'console_scripts', 'create_map')()
  File "/usr/lib/python3.6/site-packages/cloudmap/create_map.py", line 95, in main
    satellite_list.overlay(args.debug)
  File "/usr/lib/python3.6/site-packages/cloudmap/satellites.py", line 268, in overlay
    img = satellite.project()
  File "/usr/lib/python3.6/site-packages/cloudmap/geo_dundee.py", line 177, in project
    return self.project_pyresample()
  File "/usr/lib/python3.6/site-packages/cloudmap/geo_dundee.py", line 257, in project_pyresample
    self.outheight))
  File "/usr/lib/python3.6/site-packages/cloudmap/satellites.py", line 132, in pc
    proj_dict, x_size, y_size, area_extent)
  File "/usr/lib64/python3.6/site-packages/pyresample/geometry.py", line 738, in __init__
    proj = _spatial_mp.Proj(**proj_dict)
  File "/usr/lib64/python3.6/site-packages/pyproj/__init__.py", line 358, in __new__
    return _proj.Proj.__new__(self, projstring)
  File "_proj.pyx", line 84, in _proj.Proj.__cinit__ (_proj.c:1170)
RuntimeError: b'major axis or radius = 0 or not given'

and I have been using a system-wide install of pyproj-1.9.5.1 against libproj4 version 4.9.2. It seems that the proj_dict dictionary is required to have a and b with these versions.

Cheers,
Chris.

from cloudmap.

jmozmoz avatar jmozmoz commented on September 26, 2024

I try to reproduce your error, but with the same libproj4 version (4.9.2) and pyproj-1.9.5.1 I am not able to get the error. What is your pyresample version? I am using 1.7.0 (the current one).

from cloudmap.

eatdust avatar eatdust commented on September 26, 2024

Yes, same here, this is pyresample-1.7.0. That's weird, I'll try to figure out what is wrong with my install then!
Thanks for the feedback!

from cloudmap.

jmozmoz avatar jmozmoz commented on September 26, 2024

Can you start with a fresh virtual environment and install CreateCloudMap plus all dependencies there by pip?

By the way, these looks somehow similar:
pytroll/pyresample#26
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=792068
http://lists.maptools.org/pipermail/proj/2011-October/005905.html
(the last link includes something about an initialization file. What could that be?)

from cloudmap.

dirteat avatar dirteat commented on September 26, 2024

Yes, within pip only, in a clean environment, it works fine. It seems that I indeed miss some proj4 or pyproj default files. I'll try to figure it out and post it here. Thanks for the help!

from cloudmap.

dirteat avatar dirteat commented on September 26, 2024

Ok, this is a well-known libproj issue:
OSGeo/PROJ#274

I am closing this issue, thanks a lot for your help!
Best,
Chris.

from cloudmap.

dirteat avatar dirteat commented on September 26, 2024

To be specific, this file should be present for pyproj and proj to use default values:

/usr/share/proj/proj_def.dat

from cloudmap.

jmozmoz avatar jmozmoz commented on September 26, 2024

Thank you for traking this down.

from cloudmap.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.