Skip to content

Facing- ValueError: Longitude is out of range [-180, 180] #19

@Anshita1Saxena

Description

@Anshita1Saxena

Hi authors,

I tried to clone your project in my cluster, with the pre-trained model and tried to run it, however, I am facing the issue of ValueError: Longitude 436.3453766449724 is out of range [-180, 180]

Environment Details:
NAME="Rocky Linux"
VERSION="8.7 (Green Obsidian)"
ID_LIKE="rhel centos fedora"

Details of setup:-
Since the cluster doesn't support the conda environment, I installed all the libraries with their latest version in virtualenv. I am attaching the libraries version file here. requirements.txt

Data Set and pre-trained model details:
Train Dataset
Inference Dataset
Pre-trained Model
I am using these files:- config_new.json and weights_new.pth

Details of execution:-

  1. After installing and running the pre-trained model, at the histogram plot generation step, it was observed that numpy=1.24 which doesn't support np.int but support np.int_, given that your repository is built on numpy==1.19.2 and using np.int which is removed from numpy==1.24, I changed this in code at lines 28,55 in /project/60025/anshita/ClimateNet/climatenet/track_events.py Source: https://stackoverflow.com/a/74946903
    After this change, it worked fine.
  2. When I ran the project again, it halt with this error- ValueError: Longitude 436.3453766449724 is out of range [-180, 180] in this file- /project/60025/anshita/ClimateNet/climatenet/analyze_events.py at line 192. Also, when I tried to check the values of the latitudes and longitudes, I found that all the values are not within this range.
    Here are the values for pos1 and pos2 (highlighted in yellow color and marked as red for perceptible purposes):

image

In my humble opinion, these values should be scaled by code. Please provide your advice and kind suggestions.
Here the example.py file for your reference example.zip

Please let me know in case you need further details of how I am running your code or any configuration-related details. I will wait and appreciate your attention to this issue.
Appreciate your response at the earliest.

Thank You.

Best regards,
Anshita Saxena

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions