bug while importing PS1 and SDSS Data

15 views
Skip to first unread message

Reham Mostafa

unread,
Nov 25, 2014, 8:09:21 AM11/25/14
to lsd-...@googlegroups.com
At the step of importing a list of .smf files using

lsd-import-smf -c 3pi ps1_det ps1_exp ~/ps1-sas-smfs/*

Importing SMF files:
------ rolling back 20141125124701.319207 ---------

Traceback (most recent call last):
  File "/transients/lsd/opt/lsd/current/bin/lsd-import-smf", line 88, in <module>
    new_exps = run_import()
  File "/transients/lsd/opt/lsd/current/bin/lsd-import-smf", line 52, in run_import
    new_exps = smf.import_from_smf(db, det_tabname, exp_tabname, files, survey, create=create)
  File "/transients/lsd/opt/lsd/current/lib/python/lsd/smf.py", line 337, in import_from_smf
    for (file, exp_id, smf_fn, nloaded, nin) in pool.imap_unordered(smf_files, import_from_smf_aux, (det_table, exp_table, det_c2f, exp_c2f, survey), progress_callback=pool2.progress_pass):
  File "/transients/lsd/opt/lsd/current/lib/python/lsd/pool2.py", line 459, in imap_unordered
    for result in mapper(item, *mapper_args):
  File "/transients/lsd/opt/lsd/current/lib/python/lsd/smf.py", line 442, in import_from_smf_aux
    hdus = pyfits.open(file)
  File "/transients/lsd/usr/local/lib/python/pyfits/core.py", line 10730, in open
    ffo = _File(name, mode=mode, memmap=memmap, **parms)
  File "/transients/lsd/usr/local/lib/python/pyfits/core.py", line 9269, in __init__
    raise e
IOError: [Errno 2] No such file or directory: '/root/ps1-sas-smfs/*'


What is this error?

Eddie Schlafly

unread,
Nov 25, 2014, 9:19:36 AM11/25/14
to lsd-...@googlegroups.com
I've only used lsd-import-smf through the ps1-load.py wrapper. It
looks like /root/ps1-sas/smfs may not exist, or that that code is
expecting the * to get expanded by the shell, but it's not.

More generally though, it looks like this problem is going to be very
PS1 specific; where are you located? There may be a database already
available for you.
> --
> You received this message because you are subscribed to the Google Groups
> "lsd-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to lsd-users+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Eric Morganson

unread,
Nov 25, 2014, 9:27:17 AM11/25/14
to lsd-...@googlegroups.com
It's definitely the case that the shell is not finding files in that directory. The ~ may be causing problems (this has been the case for me). You might try writing your home directory explicitly.

-E
Reply all
Reply to author
Forward
0 new messages