astropenguin / azely Goto Github PK
View Code? Open in Web Editor NEW:zap: Computation and plotting of azimuth and elevation for astronomical objects
Home Page: https://astropenguin.github.io/azely/
License: MIT License
:zap: Computation and plotting of azimuth and elevation for astronomical objects
Home Page: https://astropenguin.github.io/azely/
License: MIT License
Update (or fix) the following docs.
azel
module and the compute()
functionMake sure that 'query'
, 'QUERY'
, and 'QuErY'
are considered to be same.
Note that other parameters are still case-sensitive at this moment:
For example, frame='ICRS'
is not allowed.
astropy.coordinates.Longitude
and astropy.coordinates.Latitude
classes to parse strings of coordinates in the Azely's Location class..flake8
)Google Maps APIs cannot be used without an API key since July 2018 and azely outputs an error when it requests the location information from Google Maps.
Add a utility function to parse queries of objects to an iterable. For example, the proposed function lists names of Messier objects in user.toml
and all names in solar.toml
:
for obj in func(['user:^M[0-9]+$', 'solar:*']):
print(obj)
user:M1
user:M2
...
solar:Sun
solar:Moon
...
Then update the compute()
function like:
for df in azely.compute(['user:^M[0-9]+$', 'solar:*'], 'Tokyo', ...):
df.el.plot(ylim=(0, 90))
Note that the utility function must only be activated when obj
is given as a list or a tuple and the return be a generator; otherwise obj
is never parsed even if it is regex-like (i.e., with obj='solar:*'
, it tries to find an object whose names is *
in user.toml
).
Fix wrong index name of a DataFrame with the in_utc
property.
Add properties (i.e., object's name) to an output DataFrame of compute()
using Extending pandas
Add or update functions which are compatible with Python async
pyproject.toml
azely/__init__.py
docs/conf.py
tests/test_metadata.py
docs/images/example.png
.../v0.6.0/docs/_static/*.svg
instead of .../master/docs/_static/*.svg
time='today'
as a default value of azely.compute()
and azely.time.get_time()
CONTRIBUTING.md
to .github
CODE_OF_CONDUCT.md
to .github
Implement an option for forcibly updating cache
when query string is given with the special keyword (!
).
import azely
# not updated (if cached value already exists)
location = azely.get_location("here")
# forcibly updated
location = azely.get_location("!here")
Use query='aaa!'
instead of query='!aaa'
to forcibly update information of an object or a location.
cache_to
decorator and get_*
functionsetc
Add properties (i.e., object's name) to an output DataFrame of compute()
using Extending pandas
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.