Exception when plotting something using a transform: TypeError: concatenate() got an unexpected keyword argument 'dtype' Steps to Reproduce With apologies for the less-than-minimal reproducible example, this code (which uses pyvo to gather the data it needs) reproduces the problem on the last ...
For example, to transform equatorial (ICRS) proper motions to the Galactic coordinate system: >>> import astropy.units as u >>> import astropy.coordinates as coord >>> c = coord.SkyCoord(ra=86.7 * u.deg, dec=53.09 * u.deg, ... pm_ra_cosdec=112*u.mas/u.yr, ... pm_dec=35...
produces: at this stage I don't know if this is expected, a bug on our side, or a bug in matplotlib. Further inquiry is needed. TimePlotDateis documented asMatplotlib~matplotlib.pyplot.plot_dateinputso it'll need to be changed
For other transformations a finite-difference velocity transformation is available, although it is not as numerically stable as those that use AffineTransform-type transformations. [#6219, #6226] astropy.io.ascii Allow to specify encoding in ascii.read, only for Python 3 and with the pure-Python...
• A powerful system of attaching units to numbers that automatically transform through calculations. • Handles many time systems down to the . • Tools for reading/writing many data file formats, including ASCII, FITS, etc. • etc. Below that, I'd put small code snippets that demonst...
So you wrote the spectrum (presumably following the outdated docs) without any unit information, and this would cause generic_spectrum_from_table to fail as it needs to know how to transform between F_nu and F_lambda flux scales. tabular-fits should still work for reading with the column_...
(wmax*w1.unit)uy2=u.Unit(fmax*f1.unit)w2=w1.to(ux2)f2=f1.to(uy2)# Strip away the units for the fittingw3=w2.valuef3=f2.value# Run the fittingg3_new=slsqp_fitter(g1,w3,f3)# Add units to the parameters for the data that was fit, and then transform# the parameters to ...
When doing transforms out of bounds for the transform, the default behaviour for all the other coordinate types other than Time we return a NaN for that element of the array. For time I have had to special case it and mask the output. The issue however is I don't think that the ...
Fix frame attribute inheritance in SkyCoord.transform_to() method so that the default attribute value (e.g. equinox) for the destination frame gets used if no corresponding value was explicitly specified. [#3106] Angle accepts hours:mins or deg:mins initializers (without seconds). In these case...
The new function make_transform_graph_docs can be used to create a docstring graph from a custom TransformGraph object. [#7135] KDTree for catalog matching is now built with sliding midpoint rule rather than standard. In code, this means setting compact_nodes=False and balanced_tree=False in...