What happens if you try to convert the FITS file to NDF yourself? That
is, try doing
% convert
% fits2ndf one.fits one
% gaia one
David
2010/11/11 Lei Qian <[log in to unmask]>:
> Hi, David,
>
> Thank you.
>
> In fact I can use Gaia to COLLAPSE without problem a few days ago. I am not
> sure what
> happened. But I haven't set HDS_SCRATCH myself. This may be done by some
> other
> processes, since I am running FINDCLUMPS at the same time.
>
> I checked HDS_SCRATCH, it is not set. I then set it (to current directory)
> HDS_SCRATCH=`pwd`
> However, it makes the same error.
>
> Best Regards,
> Lei
>
> 在 2010年11月11日 下午4:04,David Berry <[log in to unmask]>写道:
>>
>> H i Lei,
>> GAIA collapses cubes by executing the COLLAPSE command in
>> the starlink KAPPA package. But KAPPA uses the standard starlink NDF
>> data format rather than FITS, so your FITS file is first converted to
>> NDF format. It is this conversion that is generating the errors you
>> are seeing. The conversion process puts the converted file into the
>> current working directory by default, so make sure you do not run gaia
>> from any directory to which you do not have write permission. However,
>> this default can be over-riddden by defining the environment variable
>> HDS_SCRATCH to point to another directory. So also check that you do
>> not have HDS_SCRATCH set to "/".
>>
>> David
>>
>>
>> When GAIA attempts to collapse a FITS file, it first converts the FITS
>> file into the NDF format
>>
>> 2010/11/11 Lei Qian <[log in to unmask]>:
>> > Hi, everyone. When I try to use Gaia to collapse a data cube, I get the
>> > following message.
>> >
>> > =====================================================================
>> > [lqian@coma clumps]$ gaia one.fits
>> > GAIA_DIR = /scisoft/share/star/bin/gaia
>> >
>> > !! ** Error converting from FITS to NDF using FITS2NDF
>> > ! Unable to create file /temp_fits_one.sdf - Permission denied
>> > ! HDS_NEW: Error creating a new HDS container file.
>> > ! NDF_PLACE: Error obtaining an NDF placeholder.
>> > ! FITS2NDF: Error converting a FITS file into an NDF.
>> > ! Application exit status DAT__FILPR, File protected
>> > ! in='/home/lqian/Data/clumps/one.fits' out=/temp_fits_one fmtcnv=T
>> > ! ** Returning to main application
>> > ! in='/home/lqian/Data/clumps/one.fits' out=/temp_fits_one fmtcnv=T
>> > Error running collapse:
>> > !! Failed to convert the FITS format file
>> > '/home/lqian/Data/clumps/one.fits'
>> > to
>> > ! NDF format in the object /temp_fits_one.
>> > ! NDF_OPEN: Error opening an NDF data structure.
>> > ! Unable to get an NDF identifier for
>> > '/home/lqian/Data/clumps/one.fits'
>> > ! COLLAPSE: Unable to collapse an NDF along one axis.
>> > ===================================================================
>> >
>> > I guess the error is because I do not have permission to write at /.
>> >
>> > So can I set Gaia or FITS2NDF to create the temp_fits_one.sdf file some
>> > where else?
>> >
>> > Thanks a lot!
>> >
>> > Best Regards,
>> > Lei
>> >
>> >
>> >
>> > --
>> > 此致
>> > 敬礼!
>> >
>> >
>> > 钱磊
>> > -----------------------------------------------------
>> > Lei QIAN
>> > National Astronomical Observatories
>> > 20A Datun Road, Chaoyang District
>> > Beijing 100012, China
>> > [log in to unmask]
>> > [log in to unmask]
>> > -----------------------------------------------------
>> >
>> >
>
>
>
> --
> 此致
> 敬礼!
>
>
> 钱磊
> -----------------------------------------------------
> Lei QIAN
> National Astronomical Observatories
> 20A Datun Road, Chaoyang District
> Beijing 100012, China
> [log in to unmask]
> [log in to unmask]
> -----------------------------------------------------
>
>
|