ianh
New Member
Posts: 3
|
Post by ianh on Jul 27, 2018 22:51:49 GMT 8
Hello.
Every time I try to read in a FITS image I get the following error, following the simple example on the ProFound GitHub page:
> image=readFITS(system.file("extdata",'img_MACSJ0717_S-BAND_data3p0-MFS-image.fits', package="ProFound")) Error in if (nchar(inpString) != 2880) { : argument is of length zero In addition: Warning message: In file(file, "rb") : file("") only supports open = "w+" and open = "w+b": using the former Does anyone know of a fix for this? I'm using Ubuntu 18.04.
Thanks!
|
|
ianh
New Member
Posts: 3
|
Post by ianh on Jul 27, 2018 22:59:35 GMT 8
OK, this gets around it:
image=readFITS('img_MACSJ0717_S-BAND_data3p0-MFS-image.fits') (Thanks C. Hale!)
|
|
ianh
New Member
Posts: 3
|
Post by ianh on Jul 27, 2018 23:59:29 GMT 8
Running ProFound: Supplied image contains image and header components Supplied image is 109 x 109 pixels Error in header[which(header == "CDELT1") + 1, 2] : incorrect number of dimensions
Any words of wisdom on the above?
Have tried supplying an image that only has spatial dimensions (no FREQ or STOKES) but problem persists...
Thanks.
|
|
asgr
Junior Member

Posts: 56
|
Post by asgr on Aug 7, 2018 10:31:30 GMT 8
The example is only for loading data embedded in the package (but it seems Catherine has got you on the right track there).
Re the header issue, hard to say for sure. ProFound is quite strict in the format of the header. Could you send the example file to me (Aaron Robotham) to look at?
As a work around you can just provide the image part of the header to ProFound (Catherine can show you how to do this if it is not obvious). You won't get the WCS info output, but the rest should work fine.
A
|
|
asgr
Junior Member

Posts: 56
|
Post by asgr on Aug 7, 2018 10:35:57 GMT 8
Could you also make sure you are using the latest version of celestial and ProFound from my GitHub (again, check with Catherine if unsure)? I have a feeling you might have stumbled across a historic bug, which is fixed in recent versions (i.e. there should not be any code that look like your error line any more).
A
|
|