Decode

Latest version: v2024.11.0

Safety actively analyzes 688053 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 10 of 13

0.3.7

plot function
dc.plotspectrum
- [**Backward Compatibility Lost**] A keyword of `peak` for `ytick` is replaced to `max`.
- You can specify `mean` for `ytick` now.

cube function
dc.tocube
- You can specify the unit of arguments via a keyword of `unit`. The default is `deg`.
python
arcsecond
dc.tocube(array, gx=10, gy=10, unit='arcsec')
arcminute
dc.tocube(array, gx=0.1, gy=0.1, unit='arcmin')

- The default value of `xc` and `yc` is changed to the value of `xref` and `yref` in the cube.
- [**Bug Fixed**] After converted from array, `coordsys`, `xref`, and `yref` in the cube are correctly inherited.

dc.makecontinuum
- [**Backward Compatibility Lost**] Previously, this function has returned a xarray whose shape is x/y. For now, the returned xarray has the shape of x/y/ch, but the length of ch is only 1.

i/o function
dc.io.savefits
- Some header information is added to output FITS files, but some of them have just default values.
- When the length of ch is 1, i.e. for the continuum data, you can choose whether the resulting dimensions are x/y or x/y/ch via a keyword of `dropdeg`. This is the same implementation as CASA.
- **Resulting FITS file can be loaded in CASA for now.**

0.3.6

cube function
dc.tocube
+ [**Bug Fixed**] Direction of right ascention in 3D cubes is corrected.
+ Noise map information is included to cubes. It can be accessed by `cube.noise`. When you want a noise map, you just need to run `dc.io.savefits(cube.noise, fitsname)`.

0.3.5

plot function
dc.plot.timestream
+ you can select the type of x axis via a keyword of `xtick`.
python
real time
dc.plot.plottimestream(array, ax, xtick='time', **kwargs)
time index
dc.plot.plottimestream(array, ax, xtick='index', **kwargs)


i/o function
dc.io.loaddfits
+ you have more choices for `loadtype`, such as `amplitude`, `phase`, and `linphase`.

0.3.4

plot functions
dc.plot.plotcoords
+ you can pass keyword arguments common with ax.plot().
python
dc.plot.plotcoords(array, ax, coords, scantypes=None, **kwargs)

dc.plot.plotweather
+ you can pass keyword arguments common with ax.plot().
python
dc.plot.plotweather(array, axs, **kwargs)


cube functions
dc.makecontinuum
+ [**Backward Compatibility Lost**] a keyword argument of `kidtp` is no longer supported, and a new keyword `inchs` is currently supported.
python
As a default, all channels are integrated.
dc.makecontinuum(cube)

When you specify inchs, only the channels in inchs are integrated.
dc.makecontinuum(cube, inchs=[20, 21, 22])

When you specify exchs, all channels except exchs are integrated.
dc.makecontinuum(cube, exchs=[16, 44, 46])


i/o functions
dc.io.loaddfits
+ When you specify scantypes, returned array is changed to concatenated one.

model functions
dc.models.pca
+ [**Backward Compatibility Lost**] Default value of `pc` is changed to False.
+ A new keyword argument `mode` is supported. You can select `mean` or `median` as this. This determines how to correct the offsets of data.
python
dc.models.pca(onarray, offarray, n=10, exchs=None, pc=False, mode='mean`)

dc.models.rsky_calibration
+ A function for classical R-sky calibration is implemented.
python
dc.models.rsky_calibration(onarray, offarray, rarray, Tamb, mode='mean')

misc functions
dc.utils.slicewhere
+ A fucntion for returning slices of regions that match some conditions.
python
dc.utils.slicewhere(condition)

0.3.3

0.3.2

Page 10 of 13

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.