'Column' object has no 'mask' on transforming coordinates
See original GitHub issueI can’t figure out why this code
from astropy.coordinates import EarthLocation
from astropy.time import Time
from astropy import units as u
from astropy.coordinates import SkyCoord, AltAz, ICRS
from astropy.table import Table
t0=Time('2019-06-9 1:00:00')
local= EarthLocation(lat='45d31m59.85s', lon='9d13m33.03s', height=144*u.m)
alt='66.2d'
azimuth='91.3d'
coord_aa=(SkyCoord(azimuth, alt, frame=AltAz(location=local,obstime=t0)))
coord_aa.transform_to('icrs')
is giving me this:
AttributeError: 'Column' object has no attribute 'mask'
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (6 by maintainers)
Top Results From Across the Web
python - How to test if coordinates are inside a label or mask
You can use NumPy indexing of the mask with the coordinates after a bit of massaging. coords_int = np.round(coords).astype(int) # or ...
Read more >Using the SkyCoord High-Level Class — Astropy v5.2
At present, SkyCoord objects can use only coordinate frames that have transformations defined in the astropy.coordinates.frame_transform_graph transform ...
Read more >MATLAB poly2mask - MathWorks
This MATLAB function computes a binary region of interest (ROI) mask, BW, of size m-by-n, from an ROI polygon with vertices at coordinates...
Read more >Aperture Photometry (photutils.aperture) — photutils 1.6.0
If the apertures were defined completely in sky coordinates, their shapes would not be preserved when converting to or from pixel coordinates.
Read more >SDO_RELATE
Uses the spatial index to identify either the spatial objects that have a ... If the geometry2 column is not spatially indexed, the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@pllim Solved it! It was just a download-related problem, thank you.
@pllim ok I removed the
__pycache__
before. Now that I didI downloaded again the 3.2M file (but with a moderate wifi connection, I’m not home rn), but still error occur! This time is a different one:
I’m start thinking of a bad downloading of the file (?). I’ll try later tonight with ethernet cable at home