Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    matrixbot
    @matrixbot
    SuperMcFreaky on Freenode I can do i = fits.ImageHDU(primary.data, header=primary.header)
    SuperMcFreaky on Freenode and that works, but it copies the data into memory, which can be a real problem in my case
    matrixbot
    @matrixbot
    astrofrog (@slack_astropy_U07529085:openastronomy.org) Just to check, why do you need to do this?
    matrixbot
    @matrixbot
    SuperMcFreaky on Freenode I have a large collection of single-HDU FITS files that get collected into a custom data object
    SuperMcFreaky on Freenode for debugging purposes it is sometimes useful to write this aggregate object as a single FITS file
    SuperMcFreaky on Freenode and an HDUList with all PrimaryHDUs produces a non-compliant FITS file
    SuperMcFreaky on Freenode it won't even write unless I set output_verify='ignore|warn" in the call to .writeto()
    astrofrog (@slack_astropy_U07529085:openastronomy.org) interesting, I would have thought an HDUList of PrimaryHDU would do the right thing
    astrofrog (@slack_astropy_U07529085:openastronomy.org) it might be worth opening an issue in the GitHub repo to ask whether astropy could be smarter about auto-converting to ImageHDU when writing, we definitely shouldn't be writing files that don't comply with the standard
    astrofrog (@slack_astropy_U07529085:openastronomy.org) I'm not sure how to avoid the copy, if you join the astropy Slack team there is a #fits channel where you could ask
    SuperMcFreaky on Freenode well, it won't do that unless I tell it that I'm OK with a non-standard file
    matrixbot
    @matrixbot
    SuperMcFreaky on Freenode ok, I had thought about opening an issue on GitHub but I figured I'd check here first to make sure I wasn't missing something obvious
    SuperMcFreaky on Freenode I feel like the capability should/could be there because io.fits already is really good about using memmap, etc.
    SuperMcFreaky on Freenode for example, if I open 1000 files with large ImageHDUs and put them together in a new HDUList and write that to disk then they data never enters memory
    SuperMcFreaky on Freenode which is exactly what I want, except for PrimaryHDUs
    saimn I don't think that the data is copied if it is a numpy array, but maybe it needs to be copied because it is memmmaped
    matrixbot
    @matrixbot
    @saimn:matrix.org was kicked by @appservice-irc:matrix.org ("30 day idle timeout.").
    Anne Archibald
    @aarchiba
    anyone have any idea why I might not be able to make files or directories readonly under CircleCI? It's 32-bit but it's Linux and I'm using chmod. (And it works on my machine and Travis Linux.)
    wait, is CircleCI running astropy as root? really?
    matrixbot
    @matrixbot
    Cadair (@cadair:cadair.com) yeah that's pretty common
    Cadair (@cadair:cadair.com) it's all containers in VMs etc
    Anne Archibald
    @aarchiba
    well that'll do it I guess. any good ways for root to temporarily make it impossible to write to a directory?
    matrixbot
    @matrixbot
    @cadair:openastronomy.org was kicked by @appservice-irc:matrix.org ("User has been idle for 30+ days.").
    matrixbot
    @matrixbot
    @slackbot:openastronomy.org was kicked by @appservice-irc:matrix.org ("User has been idle for 30+ days.").
    Santam Roy Choudhury
    @SantamRC
    Screenshot from 2020-01-18 01-12-45.png
    How to install astropy?... I am getting this
    matrixbot
    @matrixbot
    astrofrog Cadair: what's the URL for the openastronomy matrix server? (to log in to Riot)
    Cadair (@cadair:cadair.com) openastronomy.modular.im
    astrofrog I got logged out due to a corrupt session (think I ran out of disk space)
    Cadair (@cadair:cadair.com) oh 😕
    matrixbot
    @matrixbot
    Peanut on Freenode Hi everyone - I'm trying to plot a few stars, in RA and Dec. I keep running into how to initialize a useful WCS without having a FITS file. Does anyone have suggestions please?
    matrixbot
    @matrixbot
    @slack_astropy_U78DGPA6M:openastronomy.org was kicked by @appservice-irc:matrix.org ("User has been idle for 30+ days.").
    @slack_astropy_U7WT8K0BV:openastronomy.org was kicked by @appservice-irc:matrix.org ("User has been idle for 30+ days.").
    @slack_astropy_U7S355WLV:openastronomy.org was kicked by @appservice-irc:matrix.org ("User has been idle for 30+ days.").
    matrixbot
    @matrixbot
    nitin_k I have a small query... When we create a cartesian coordinate, can all the three coordinates be of different units in astropy?
    matrixbot
    @matrixbot
    amaurea on Freenode In relatively recent versions of astropy (at least on my laptop) wcs.WCS(naxis=2) results in an annoying warning being printed every time: WARNING: FITSFixedWarning: 'datfix' made the change 'Set DATE-REF to '1858-11-17' from MJD-REF'. [astropy.wcs.wcs]
    amaurea on Freenode Is there a way to turn off this warning globally?
    amaurea on Freenode I often build wcs objects piecewise - first constructing an empty one and then setting its properties. This still works fine, but now every location where that happens triggers a warning
    amaurea on Freenode OK, this works I guess
    amaurea on Freenode warnings.filterwarnings("ignore", category=wcs.FITSFixedWarning)
    matrixbot
    @matrixbot
    astrofrog also that is a very old date 🤣
    shivangeerathi
    @shivangeerathi
    Hi, I am new here. I am having some troubles with ellipse fitting using the photutils package. Since the last messages on the photutils chat are from over 3 years ago, I thought I would seek help here.
    I am currently facing astropy/photutils#707 issue, and I more or less know what and where the problem is. The leastsq function from scipy.optimize is running into an error where the data points to be fitted, M , are greater than the number of parameters used for fitting, N (Improper input: N=5 must not exceed M=0 [photutils.isophote.fitter]). If anyone can help me figure out why that is, I'd be really grateful. Thanks!
    matrixbot
    @matrixbot
    @nitin_k:matrix.org was kicked by @appservice-irc:matrix.org ("Idle for 30+ days").
    matrixbot
    @matrixbot
    @slackbot:openastronomy.org was kicked by @appservice-irc:matrix.org ("Idle for 30+ days").
    matrixbot
    @matrixbot
    kstar on Freenode Is there a way to get arcseconds per pixel and PA from the WCS header?
    matrixbot
    @matrixbot
    @slack_astropy_U07529085:openastronomy.org was kicked by @appservice-irc:matrix.org ("Idle for 30+ days").
    matrixbot
    @matrixbot
    @slackbot:openastronomy.org was kicked by @appservice-irc:matrix.org ("Idle for 30+ days").
    Paolo Squadrito
    @Rocknpools
    Hi all! i’m playing a bit with astropy, the library is amazing but so big that i’m getting a bit lost so i hope someone can help me.
    So i have a ground_station = EarthLocation(lat=57.046707, lon=9.935932, height=0) additionally i have a CartesianRapresentation (in the same geocentric reference system) of the position of a satellite in a given orbit at any given time. Now assuming a random initial position how can i calculate the next passage of the satellite over the ground station?
    matrixbot
    @matrixbot
    @aman_codes:matrix.org was kicked by @appservice-irc:matrix.org ("Idle for 30+ days").