zoukankan      html  css  js  c++  java
  • P1:天文数据获取

    Step1:sloancasjobhttp://casjobs.sdss.org/CasJobs/,密码用户 jiangbin  123456

    查询满足条件的光谱对象,得到光谱对象的plate,MJD,fiber,或者赤经赤纬,将其存为.csv文件。Csv文件可由excel直接编辑,注意要调整顺序为plate,MJD,fiberid,excel文件第一行要保留这几个关键字。点击quick不要点击sumbit按钮

    Step2:sloanhttp://das.sdss.org/www/html/post_fibers.html,提交.csv文件(此处也可以是txt文件,见cvs文件夹下txt),

    Step3:点击this form链接,出现Download selection,选择要下载的文件类型,此处选择spSpec。再选中wget,提交。

    Step4:提交后会出现一个URL列表,另存为.txt文件,比如为D:url.txt,此处可以手工修改。

    Step5:开始->运行->cmd,进入dos窗口,输入:wget -i D:url.txtwget -i  G:DATAsdss-wget-awrOed.lis,回车。

    之后就开始批量下载了,下载到dos窗口的当前目录下。

    选取5000star

    select top 5000 plate,MJD,fiberID from specobjall where class='star'  and waveMin <= 4000 and waveMax >= 9000

    选取后5000条数据

    select top 10000 plate,MJD,fiberID from specobjall where class='star'  and waveMin <= 4000 and waveMax >= 9000

    except

    select top 5000 plate,MJD,fiberID from specobjall where class='star'  and waveMin <= 4000 and waveMax >= 9000

    类别:

    Qso

    Galaxy

    select plate,MJD,fiberID from specobjall where subClass like 'M[0-9]' and snMedian_g>=15

     1. 采用信噪比>=15的G M K A F类恒星数据进行实验,获取数据格式:
    select plate,MJD,fiberID from specobjall where subClass like 'M[0-9]' and snMedian_g>=15

    2. 获取激变变星搜寻群(目前只有DR7是开放的,不要从DR15里搜)
    select plate,mjd,fiberID from  SpecPhotoAll into  mydb.patrick
    where  psfMag_u-psfMag_g<0.45  
      and   psfMag_g-psfMag_r<0.7  
      and   psfMag_r-psfMag_i>0.3 
      and   psfMag_i-psfMag_z>0.4
    select top 8000 plate,mjd,fiberID from patrick
    delete top(8000)  from patrick

    3. Casjob网站:http://casjobs.sdss.org/CasJobs/
    4. Sloan提交csv网站:http://das.sdss.org/www/html/post_fibers.html
    5. 下载数据方法:wget -i txt文件的路径
    6. DR7类别:http://cas.sdss.org/dr7/de/help/browser/enum.asp?n=SpecClass
    7. DR7帮助:https://classic.sdss.org/dr7/glossary/index.html

    8. 按类别搜索DR7中的反例:
    select top 8000 plate,mjd,fiberID from specobjall where specClass=1  order by newid() /*specClass=1: STAR*/
    select top 4000 plate,mjd,fiberID from specobjall where specClass=2  order by newid() /*specClass=2: GALAXY*/
    select top 4000 plate,mjd,fiberID from specobjall where specClass=3  order by newid() /*specClass=3: QSO*/
    select top 4000 plate,mjd,fiberID from specobjall where specClass=4 or specClass=5 or specClass=6 or specClass=0  order by newid() /*specClass=0,4,5,6: OTHER*/

  • 相关阅读:
    V-Box
    One CLI for webpack must be installed. These are recommended choices, delivered as separate packages:
    获取用户地理位置
    错误 CS0234 命名空间“Microsoft”中不存在类型或命名空间名“Reporting”(是否缺少程序集引用?)
    “/Reports”应用程序中的服务器错误。
    微信公众号关注界面的菜单栏跟实际的菜单栏不一致
    错误 CS8107 C# 7.0 中不支持功能“xxxxxx”。请使用 7.1 或更高的语言版本。
    已经安装了 AccessDatabaseEngine.exe,还是报错
    没有足够的内存继续执行程序(mscorlib)
    坑,坑,
  • 原文地址:https://www.cnblogs.com/invisible2/p/11451118.html
Copyright © 2011-2022 走看看