Coder Social home page Coder Social logo

Comments (3)

keflavich avatar keflavich commented on July 23, 2024

I'm not sure, but this could be a Windows issue? This path:
'Maps/CHANDRA/acisf04963N004_full_img2.fits'
uses /'s, while windows uses \'s for its path specification. This might be a bug in how directory_path is generated.

from astroquery.

sengle01 avatar sengle01 commented on July 23, 2024

Thank you for the quick reply @keflavich

I should also add that, after the code runs and I receive the error, I can't go to the folder and delete the Chandra image file. It gives me an error saying the file is in use by another program. It's only after I either restart the notebook's kernel, or shut the notebook down, that I can delete the image file. (Sorry I didn't include that before)

from astroquery.

sengle01 avatar sengle01 commented on July 23, 2024

Update:

I can confirm that it is 'a windows thing' but I don't believe it has to do with the path.

To check and see if the path's slashes were causing the problem, I replaced them with double backslash, and received the same error.

"OSError: [Errno 22] Invalid argument: 'Maps\CHANDRA\acisf04963N004_full_img2.fits'"

With the error remaining, and since everything worked fine with XMM images, it seems like the path is working fine.

Then I went into an Ubuntu VM, and everything worked just fine. I don't know if there could be something specific about the Chandra image structure, or the method used to obtain/store them?

from astroquery.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.