Code Monkey home page Code Monkey logo

Comments (3)

weaverba137 avatar weaverba137 commented on September 11, 2024

The ObjID 587722984180548043 has the firstfield bit set, which is 2**28, but is otherwise bitwise identical to 587722983912112587. The firstfield bit was only used in DR7 & prior. In DR8 and later, that bit is always zero. Because most ObjIDs, even in DR7, have this set to zero, the sdss_objid() and unwrap_objid() functions don't consider it.

Could you please let me know where you found those ObjIDs? Since firstfield is a single bit, it is Boolean, so it seems like you have the same object being both flagged firstfield and not firstfield.

from pydl.

kbwestfall avatar kbwestfall commented on September 11, 2024

I've been trying to get the RA, Dec coordinates for the galaxies in the Simard et al. (2011; http://adsabs.harvard.edu/abs/2011ApJS..196...11S) catalog, and I'm very likely doing it in a stupid way. The example of 587722984180548043 comes directly from the Simard catalog. I convert that to run, rerun, etc using unwrap_objid and then search for the object in the query form here: http://skyserver.sdss.org/dr7/en/tools/crossid/crossid.asp

Because not all ObjIDs returned objects in my DR7 query (for reasons I don't understand; I can provide a list if you want), I have to match the query results back to the input list. So I use pydl.pydlutils.sdss.sdss_objid to convert the returned run, rerun, etc. back to ObjID to do this matching. That's where the inconsistency must have crept in, and where 587722983912112587 comes from in my example.

from pydl.

weaverba137 avatar weaverba137 commented on September 11, 2024

OK, thank you, that makes sense. I'm going to leave this open while I think about how to handle the firstfield bit, since clearly it is needed here. Historically, PyDL was developed with DR8++ data in mind, so this hasn't come up before.

from pydl.

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.