-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Facing- ValueError: Longitude is out of range [-180, 180] #19
Comments
Hello Anshita, The values of pos1 and pos2 you print seem to be correct and as expected, since those are simply the pixel positions (for which these values are normal). Best |
Hello Anshita, can you share how you print the shape of the event_masks? I'm surprised that it's just a single number, I'd expect it to be a three-dimensional array... In case you're printing Best |
Hi Andre, Appreciate your help here. Yes, I was printing I will wait for your further advice and suggestions on this. Thank You. Best regards, |
Hey Anshita, thanks! This is puzzling, since these numbers look completely normal (and calling pixel_to_degree on the pos1 and pos2 values you shared should result in numbers in the required range). I'm not sure what's going on, can you show me the output of Best |
Hi Andre, Thanks. Here is what I got the values for pos1 and pos2. Please find the attached output file. Expected_outputs.txt Yes, you are right, this is a haversine function. I am just pasting the lines of code from where I am getting this ValueError for our reference- I will wait for your further advice and suggestions on this. Thank You. Best regards, |
Thank you! This helps, it seems like there is really an issue with the pixel_to_degree function. I'll check with Lukas and get back to you as soon as possible. Best |
Hi Andre, Sure. I will wait for your response. Thanks for your reply. Thank You. Best regards, |
Hi Andre, I just wanted to append the results directory also for the validation of your side. These plots are generated after I performed the above change in code. Could you please have look at the plots and confirm whether these are expected based on the functionality? Please find the attachments. I am new to this project and currently trying to build my understanding of it. genesis_frequency_results.zip In positions, it printed these values attached in this file: I will wait and appreciate your attention to this issue. Thank You. Best regards, |
Any news @andregraubner ? Thank You. Best regards, |
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
andweights_new.pth
Details of execution:-
np.int
but supportnp.int_
, given that your repository is built on numpy==1.19.2 and usingnp.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/74946903After this change, it worked fine.
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):
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.zipPlease 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
The text was updated successfully, but these errors were encountered: