dennissergeev / pmctrack

Polar mesoscale cyclone (PMC) tracking algorithm
MIT License
3 stars 3 forks source link

quickview.py --- lonlat not defined #19

Closed dennissergeev closed 6 years ago

dennissergeev commented 6 years ago

Constraint 'lonlat' for loading gridded-data is not defined (in quickview.py), temporary solved by setting 'constraints=None', (due to lack of python-experience, unsure about format for lonlat-definition)

=================================================================

(pmctrack-tools) annick:~/.../Projects/pl_tracking/tools$ ./quickview.py --tspan 20110123T1200Z:1H:20110123T2300Z /home/annick/src/anaconda3/envs/pmctrack-tools/lib/python3.6/site-packages/iris/init.py:237: IrisDeprecation: setting the 'Future' property 'netcdf_promote' is deprecated and will be removed in a future release. Please remove code that sets this property. warn_deprecated(msg.format(name)) /home/annick/src/anaconda3/envs/pmctrack-tools/lib/python3.6/site-packages/iris/init.py:237: IrisDeprecation: setting the 'Future' property 'cell_datetime_objects' is deprecated and will be removed in a future release. Please remove code that sets this property. warn_deprecated(msg.format(name)) 2018-04-26 18:51:27,749 [2860] CRITICAL root: Traceback (most recent call last): File "./quickview.py", line 259, in sys.exit(main()) File "./quickview.py", line 198, in main constraints=lonlat) NameError: name 'lonlat' is not defined

dennissergeev commented 6 years ago

Original comment by Denis Sergeev (Bitbucket: dennissergeev, GitHub: dennissergeev).


Yeah I will add it at some point, now it's a bit of a mess...

To make those links you navigate to the source file, click on the line and then copy the link from the address bar.

dennissergeev commented 6 years ago

Original comment by annick terpstra (Bitbucket: annick_terpstra, GitHub: Unknown).


Yup. That's it: l.52-60 (how do you make these links?) was not pulled for some reason (and I didn't look up the original source to check differences). Works now.

Do you wanna add a script in /tools which plots the tracks (like you showed me today)?

dennissergeev commented 6 years ago

Original comment by Denis Sergeev (Bitbucket: dennissergeev, GitHub: dennissergeev).


hey,

Thanks for reporting this.

This is an odd error though, because lonlat is always defined (line 52) as a global variable.

I can have a look at your script tomorrow...