[gdal-dev] FITS format not listed in gdalinfo --formats

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

[gdal-dev] FITS format not listed in gdalinfo --formats

Susan Borda
Hi-
I'm new to gdal and am trying to use gdalinfo to read a *.fits file (astronomy files), specifically the header. When I list the formats supported by gdalinfo, I'm only seeing FIT not FITS. Is FITS no longer supported?

My end goal here is to have Apache Tika use the GDAL CLI to parse the  *.fits header so I can use Solr to index in my repository.

Any advice would be greatly appreciated.  

Thanks,
Susan

_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: FITS format not listed in gdalinfo --formats

Even Rouault-2
On jeudi 5 juillet 2018 12:41:08 CEST Susan Borda wrote:
> Hi-
> I'm new to gdal and am trying to use gdalinfo to read a *.fits file
> (astronomy files), specifically the header. When I list the formats
> supported by gdalinfo, I'm only seeing FIT not FITS. Is FITS no longer
> supported?

It is, but you must build GDAL against the CFITSIO library:
http://gdal.org/frmt_various.html#FITS

On Debian and derivatives, this is the libcfitsio-dev package.

--
Spatialys - Geospatial professional services
http://www.spatialys.com
_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: FITS format not listed in gdalinfo --formats

Susan Borda
Thanks Evan, I saw that mentioned in the formats list but I'm not sure how to "build GDAL" with this library. I just downloaded GDAL and it uses Python 3.6 but the version of CFITSIO I found uses Python 2.x. I'm using a Mac but can easily run all of this on Linux VM if need be.

-susan

On Thu, Jul 5, 2018 at 12:45 PM Even Rouault <[hidden email]> wrote:
On jeudi 5 juillet 2018 12:41:08 CEST Susan Borda wrote:
> Hi-
> I'm new to gdal and am trying to use gdalinfo to read a *.fits file
> (astronomy files), specifically the header. When I list the formats
> supported by gdalinfo, I'm only seeing FIT not FITS. Is FITS no longer
> supported?

It is, but you must build GDAL against the CFITSIO library:
http://gdal.org/frmt_various.html#FITS

On Debian and derivatives, this is the libcfitsio-dev package.

--
Spatialys - Geospatial professional services
http://www.spatialys.com


--
Susan Borda
Data Workflows Specialist
Research Data Services
University of Michigan Libraries
3175 Shapiro Library
734-764-9134 | [hidden email]
 

_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: [EXTERNAL] Re: FITS format not listed in gdalinfo --formats

Hare, Trent
Susan,  
   Yes -  the FITS format is supported in GDAL once compilation has been linked to CFITSIO. 

Note this driver is currently being enhanced to (1) better support FITS files within GDAL and (2) the format FITS will have an extension added to it, which allows more typical GIS map projection support. That branch of GDAL is being worked on Chiara Marmo: https://github.com/epn-vespa/gdal/tree/fits_driver

For Mac, I'm not sure this will work, but on Linux (Fedora and Ubuntu) this should get you FITS support in GDAL (and also get QGIS with FITS also).

In order to have QGIS working with FITS
  • install CFITSIO (Fedora : cfitsio-devel ; Ubuntu : libcfitsio-dev)
  • install GDAL (Fedora : gdal-devel ; Ubuntu : libgdal-dev)
  • install QGIS

Temporary workaround:  
  So a method Chiara created to test GDAL for FITS users is a simple Python script which creates a GDAL VRT header pointing into the FITS file. Once the VRT is created, any GDAL program can use it by pointing at the VRT file (gdal_translate, QGIS, ArcMap, ...). Perhaps that is worth a shot.

Lastly, once the FITS driver is updated we will try to support an anaconda version of GDAL with CFITSIO pre-built for users (should help Macs users too).

Good luck,
Trent


P.S. maybe a little un-tested build help (linux again - sorry).

Install CFITSIO 
Clone/download the GDAL repo.
$ cd gdal/gdal
you have compiled there the 'fits-driver' branch, using
$ ./configure
In that same repo you have a config.log file.
If you grep cfitsio in config.log you must have (among others, and depending on your distro)
EXTRA_INCLUDES='-I/usr/include/cfitsio '
LIBS='-lcrypto -lexpat -ljasper -ljpeg -lgeotiff -ltiff -lpng -lcfitsio -lz -lpthread -lm -lrt -ldl  -lpcre'
now 
$ ./make 


On Thu, Jul 5, 2018 at 9:59 AM Susan Borda <[hidden email]> wrote:
Thanks Evan, I saw that mentioned in the formats list but I'm not sure how to "build GDAL" with this library. I just downloaded GDAL and it uses Python 3.6 but the version of CFITSIO I found uses Python 2.x. I'm using a Mac but can easily run all of this on Linux VM if need be.

-susan

On Thu, Jul 5, 2018 at 12:45 PM Even Rouault <[hidden email]> wrote:
On jeudi 5 juillet 2018 12:41:08 CEST Susan Borda wrote:
> Hi-
> I'm new to gdal and am trying to use gdalinfo to read a *.fits file
> (astronomy files), specifically the header. When I list the formats
> supported by gdalinfo, I'm only seeing FIT not FITS. Is FITS no longer
> supported?

It is, but you must build GDAL against the CFITSIO library:
http://gdal.org/frmt_various.html#FITS

On Debian and derivatives, this is the libcfitsio-dev package.

--
Spatialys - Geospatial professional services
http://www.spatialys.com


--
Susan Borda
Data Workflows Specialist
Research Data Services
University of Michigan Libraries
3175 Shapiro Library
734-764-9134 | [hidden email]
 

_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: [EXTERNAL] Re: FITS format not listed in gdalinfo --formats

Susan Borda
Thanks, Trent and Evan, I'm building GDAL from source download rather than using the "recommended" dmg listed. I'll let you know when I get it working with CFITSIO and provide the steps in case you need them for someone else.

-susan

On Thu, Jul 5, 2018 at 1:13 PM Trent Hare <[hidden email]> wrote:
Susan,  
   Yes -  the FITS format is supported in GDAL once compilation has been linked to CFITSIO. 

Note this driver is currently being enhanced to (1) better support FITS files within GDAL and (2) the format FITS will have an extension added to it, which allows more typical GIS map projection support. That branch of GDAL is being worked on Chiara Marmo: https://github.com/epn-vespa/gdal/tree/fits_driver

For Mac, I'm not sure this will work, but on Linux (Fedora and Ubuntu) this should get you FITS support in GDAL (and also get QGIS with FITS also).

In order to have QGIS working with FITS
  • install CFITSIO (Fedora : cfitsio-devel ; Ubuntu : libcfitsio-dev)
  • install GDAL (Fedora : gdal-devel ; Ubuntu : libgdal-dev)
  • install QGIS

Temporary workaround:  
  So a method Chiara created to test GDAL for FITS users is a simple Python script which creates a GDAL VRT header pointing into the FITS file. Once the VRT is created, any GDAL program can use it by pointing at the VRT file (gdal_translate, QGIS, ArcMap, ...). Perhaps that is worth a shot.

Lastly, once the FITS driver is updated we will try to support an anaconda version of GDAL with CFITSIO pre-built for users (should help Macs users too).

Good luck,
Trent


P.S. maybe a little un-tested build help (linux again - sorry).

Install CFITSIO 
Clone/download the GDAL repo.
$ cd gdal/gdal
you have compiled there the 'fits-driver' branch, using
$ ./configure
In that same repo you have a config.log file.
If you grep cfitsio in config.log you must have (among others, and depending on your distro)
EXTRA_INCLUDES='-I/usr/include/cfitsio '
LIBS='-lcrypto -lexpat -ljasper -ljpeg -lgeotiff -ltiff -lpng -lcfitsio -lz -lpthread -lm -lrt -ldl  -lpcre'
now 
$ ./make 


On Thu, Jul 5, 2018 at 9:59 AM Susan Borda <[hidden email]> wrote:
Thanks Evan, I saw that mentioned in the formats list but I'm not sure how to "build GDAL" with this library. I just downloaded GDAL and it uses Python 3.6 but the version of CFITSIO I found uses Python 2.x. I'm using a Mac but can easily run all of this on Linux VM if need be.

-susan

On Thu, Jul 5, 2018 at 12:45 PM Even Rouault <[hidden email]> wrote:
On jeudi 5 juillet 2018 12:41:08 CEST Susan Borda wrote:
> Hi-
> I'm new to gdal and am trying to use gdalinfo to read a *.fits file
> (astronomy files), specifically the header. When I list the formats
> supported by gdalinfo, I'm only seeing FIT not FITS. Is FITS no longer
> supported?

It is, but you must build GDAL against the CFITSIO library:
http://gdal.org/frmt_various.html#FITS

On Debian and derivatives, this is the libcfitsio-dev package.

--
Spatialys - Geospatial professional services
http://www.spatialys.com


--
Susan Borda
Data Workflows Specialist
Research Data Services
University of Michigan Libraries
3175 Shapiro Library
734-764-9134 | [hidden email]
 


--
Susan Borda
Data Workflows Specialist
Research Data Services
University of Michigan Libraries
3175 Shapiro Library
734-764-9134 | [hidden email]
 

_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: [EXTERNAL] Re: FITS format not listed in gdalinfo --formats

jmckenna
Administrator
In reply to this post by Hare, Trent
Trent, is it possible that you record all these steps and hints for
compiling FITS support at https://trac.osgeo.org/gdal/wiki/BuildHints 
(i.e. create a new wiki page there and add a link to your build page in
the "External Library Issues" section)  That way the steps are recorded
and easy to find (instead of lost in the email archives)

I'm happy to add a Windows section for compiling FITS as well.

thanks!

-jeff



On 2018-07-05 2:12 PM, Trent Hare wrote:

> Susan,
>     Yes -  the FITS format is supported in GDAL once compilation has
> been linked to CFITSIO.
>
> Note this driver is currently being enhanced to (1) better support FITS
> files within GDAL and (2) the format FITS will have an extension added
> to it, which allows more typical GIS map projection support. That branch
> of GDAL is being worked on Chiara Marmo:
> https://github.com/epn-vespa/gdal/tree/fits_driver
>
> For Mac, I'm not sure this will work, but on Linux (Fedora and Ubuntu)
> this should get you FITS support in GDAL (and also get QGIS with FITS also).
>
> _In order to have QGIS working with FITS_
>
>   * install CFITSIO (Fedora : cfitsio-devel ; Ubuntu : libcfitsio-dev)
>   * install GDAL (Fedora : gdal-devel ; Ubuntu : libgdal-dev)
>   * install QGIS
>
>
> *_Temporary workaround_: *
>    So a method Chiara created to test GDAL for FITS users is a simple
> Python script which creates a GDAL VRT header pointing into the FITS
> file. Once the VRT is created, any GDAL program can use it by pointing
> at the VRT file (gdal_translate, QGIS, ArcMap, ...). Perhaps that is
> worth a shot.
> https://github.com/epn-vespa/fits2vrt
>
> Lastly, once the FITS driver is updated we will try to support an
> anaconda version of GDAL with CFITSIO pre-built for users (should help
> Macs users too).
>
> Good luck,
> Trent
>
>
> P.S. maybe a little un-tested *build help* (linux again - sorry).
>
> Install CFITSIO
> Clone/download the GDAL repo.
> $ cd gdal/gdal
> you have compiled there the 'fits-driver' branch, using
> $ ./configure
> In that same repo you have a config.log file.
> If you grep cfitsio in config.log you must have (among others, and
> depending on your distro)
> EXTRA_INCLUDES='-I/usr/include/cfitsio '
> LIBS='-lcrypto -lexpat -ljasper -ljpeg -lgeotiff -ltiff -lpng -lcfitsio
> -lz -lpthread -lm -lrt -ldl  -lpcre'
> now
> $ ./make
> more: https://trac.osgeo.org/gdal/wiki/BuildingOnUnix
>
>
> On Thu, Jul 5, 2018 at 9:59 AM Susan Borda <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>     Thanks Evan, I saw that mentioned in the formats list but I'm not
>     sure how to "build GDAL" with this library. I just downloaded GDAL
>     and it uses Python 3.6 but the version of CFITSIO I found uses
>     Python 2.x. I'm using a Mac but can easily run all of this on Linux
>     VM if need be.
>
>     -susan
>
>     On Thu, Jul 5, 2018 at 12:45 PM Even Rouault
>     <[hidden email] <mailto:[hidden email]>> wrote:
>
>         On jeudi 5 juillet 2018 12:41:08 CEST Susan Borda wrote:
>          > Hi-
>          > I'm new to gdal and am trying to use gdalinfo to read a
>         *.fits file
>          > (astronomy files), specifically the header. When I list the
>         formats
>          > supported by gdalinfo, I'm only seeing FIT not FITS. Is FITS
>         no longer
>          > supported?
>
>         It is, but you must build GDAL against the CFITSIO library:
>         http://gdal.org/frmt_various.html#FITS
>
>         On Debian and derivatives, this is the libcfitsio-dev package.
>
>         --
>         Spatialys - Geospatial professional services
>         http://www.spatialys.com
>
>
>
>     --
>     Susan Borda
>     Data Workflows Specialist
>     Research Data Services
>     University of Michigan Libraries
>     3175 Shapiro Library
>     734-764-9134 | [hidden email] <mailto:[hidden email]>
>
>
--
Jeff McKenna
MapServer Consulting and Training Services
https://gatewaygeomatics.com/
_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: [EXTERNAL] Re: FITS format not listed in gdalinfo --formats

Susan Borda
To build on Mac you can basically follow the Linux steps:
cp or mv file to /usr/local (or wherever you'd like to install it)
gunzip
tar xvf
In my case I wanted to add in CFITSIO so I:
sudo ./configure --with-cfitsio
sudo make
sudo make install

It's running like a champ and parsing the *.fits headers!
Thanks for pointing me in the right direction!
-susan

On Thu, Jul 5, 2018 at 2:18 PM Jeff McKenna <[hidden email]> wrote:
Trent, is it possible that you record all these steps and hints for
compiling FITS support at https://trac.osgeo.org/gdal/wiki/BuildHints
(i.e. create a new wiki page there and add a link to your build page in
the "External Library Issues" section)  That way the steps are recorded
and easy to find (instead of lost in the email archives)

I'm happy to add a Windows section for compiling FITS as well.

thanks!

-jeff



On 2018-07-05 2:12 PM, Trent Hare wrote:
> Susan,
>     Yes -  the FITS format is supported in GDAL once compilation has
> been linked to CFITSIO.
>
> Note this driver is currently being enhanced to (1) better support FITS
> files within GDAL and (2) the format FITS will have an extension added
> to it, which allows more typical GIS map projection support. That branch
> of GDAL is being worked on Chiara Marmo:
> https://github.com/epn-vespa/gdal/tree/fits_driver
>
> For Mac, I'm not sure this will work, but on Linux (Fedora and Ubuntu)
> this should get you FITS support in GDAL (and also get QGIS with FITS also).
>
> _In order to have QGIS working with FITS_
>
>   * install CFITSIO (Fedora : cfitsio-devel ; Ubuntu : libcfitsio-dev)
>   * install GDAL (Fedora : gdal-devel ; Ubuntu : libgdal-dev)
>   * install QGIS
>
>
> *_Temporary workaround_: *
>    So a method Chiara created to test GDAL for FITS users is a simple
> Python script which creates a GDAL VRT header pointing into the FITS
> file. Once the VRT is created, any GDAL program can use it by pointing
> at the VRT file (gdal_translate, QGIS, ArcMap, ...). Perhaps that is
> worth a shot.
> https://github.com/epn-vespa/fits2vrt
>
> Lastly, once the FITS driver is updated we will try to support an
> anaconda version of GDAL with CFITSIO pre-built for users (should help
> Macs users too).
>
> Good luck,
> Trent
>
>
> P.S. maybe a little un-tested *build help* (linux again - sorry).
>
> Install CFITSIO
> Clone/download the GDAL repo.
> $ cd gdal/gdal
> you have compiled there the 'fits-driver' branch, using
> $ ./configure
> In that same repo you have a config.log file.
> If you grep cfitsio in config.log you must have (among others, and
> depending on your distro)
> EXTRA_INCLUDES='-I/usr/include/cfitsio '
> LIBS='-lcrypto -lexpat -ljasper -ljpeg -lgeotiff -ltiff -lpng -lcfitsio
> -lz -lpthread -lm -lrt -ldl  -lpcre'
> now
> $ ./make
> more: https://trac.osgeo.org/gdal/wiki/BuildingOnUnix
>
>
> On Thu, Jul 5, 2018 at 9:59 AM Susan Borda <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>     Thanks Evan, I saw that mentioned in the formats list but I'm not
>     sure how to "build GDAL" with this library. I just downloaded GDAL
>     and it uses Python 3.6 but the version of CFITSIO I found uses
>     Python 2.x. I'm using a Mac but can easily run all of this on Linux
>     VM if need be.
>
>     -susan
>
>     On Thu, Jul 5, 2018 at 12:45 PM Even Rouault
>     <[hidden email] <mailto:[hidden email]>> wrote:
>
>         On jeudi 5 juillet 2018 12:41:08 CEST Susan Borda wrote:
>          > Hi-
>          > I'm new to gdal and am trying to use gdalinfo to read a
>         *.fits file
>          > (astronomy files), specifically the header. When I list the
>         formats
>          > supported by gdalinfo, I'm only seeing FIT not FITS. Is FITS
>         no longer
>          > supported?
>
>         It is, but you must build GDAL against the CFITSIO library:
>         http://gdal.org/frmt_various.html#FITS
>
>         On Debian and derivatives, this is the libcfitsio-dev package.
>
>         --
>         Spatialys - Geospatial professional services
>         http://www.spatialys.com
>
>
>
>     --
>     Susan Borda
>     Data Workflows Specialist
>     Research Data Services
>     University of Michigan Libraries
>     3175 Shapiro Library
>     734-764-9134 | [hidden email] <mailto:[hidden email]>
>
>
--
Jeff McKenna
MapServer Consulting and Training Services
https://gatewaygeomatics.com/
_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev


--
Susan Borda
Data Workflows Specialist
Research Data Services
University of Michigan Libraries
3175 Shapiro Library
734-764-9134 | [hidden email]
 

_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

[gdal-dev] Trac page on compiling GDAL with FITS support (was FITS format not listed in gdalinfo --formats)

Chiara Marmo
In reply to this post by jmckenna
Hi,
I'm Chiara, as Trent said I'm working on FITS driver improvement in GDAL.

I have prepared a documentation page on the VESPA-Europlanet wiki [1]

I'm not an official contributor to GDAL code, but I will be happy to contribute to the Trac documentation if I may.
May I? :)

Thanks for listening,
Chiara


[1] https://voparis-confluence.obspm.fr/display/VES/GDAL+with+FITS

----- Original Message -----

> From: "Jeff McKenna" <[hidden email]>
> To: [hidden email]
> Sent: Thursday, July 5, 2018 8:18:50 PM
> Subject: Re: [gdal-dev] [EXTERNAL] Re: FITS format not listed in gdalinfo --formats
>
> Trent, is it possible that you record all these steps and hints for
> compiling FITS support at https://trac.osgeo.org/gdal/wiki/BuildHints
> (i.e. create a new wiki page there and add a link to your build page in
> the "External Library Issues" section)  That way the steps are recorded
> and easy to find (instead of lost in the email archives)
>
> I'm happy to add a Windows section for compiling FITS as well.
>
> thanks!
>
> -jeff
>
>
>
> On 2018-07-05 2:12 PM, Trent Hare wrote:
> > Susan,
> >     Yes -  the FITS format is supported in GDAL once compilation has
> > been linked to CFITSIO.
> >
> > Note this driver is currently being enhanced to (1) better support FITS
> > files within GDAL and (2) the format FITS will have an extension added
> > to it, which allows more typical GIS map projection support. That branch
> > of GDAL is being worked on Chiara Marmo:
> > https://github.com/epn-vespa/gdal/tree/fits_driver
> >
> > For Mac, I'm not sure this will work, but on Linux (Fedora and Ubuntu)
> > this should get you FITS support in GDAL (and also get QGIS with FITS
> > also).
> >
> > _In order to have QGIS working with FITS_
> >
> >   * install CFITSIO (Fedora : cfitsio-devel ; Ubuntu : libcfitsio-dev)
> >   * install GDAL (Fedora : gdal-devel ; Ubuntu : libgdal-dev)
> >   * install QGIS
> >
> >
> > *_Temporary workaround_: *
> >    So a method Chiara created to test GDAL for FITS users is a simple
> > Python script which creates a GDAL VRT header pointing into the FITS
> > file. Once the VRT is created, any GDAL program can use it by pointing
> > at the VRT file (gdal_translate, QGIS, ArcMap, ...). Perhaps that is
> > worth a shot.
> > https://github.com/epn-vespa/fits2vrt
> >
> > Lastly, once the FITS driver is updated we will try to support an
> > anaconda version of GDAL with CFITSIO pre-built for users (should help
> > Macs users too).
> >
> > Good luck,
> > Trent
> >
> >
> > P.S. maybe a little un-tested *build help* (linux again - sorry).
> >
> > Install CFITSIO
> > Clone/download the GDAL repo.
> > $ cd gdal/gdal
> > you have compiled there the 'fits-driver' branch, using
> > $ ./configure
> > In that same repo you have a config.log file.
> > If you grep cfitsio in config.log you must have (among others, and
> > depending on your distro)
> > EXTRA_INCLUDES='-I/usr/include/cfitsio '
> > LIBS='-lcrypto -lexpat -ljasper -ljpeg -lgeotiff -ltiff -lpng -lcfitsio
> > -lz -lpthread -lm -lrt -ldl  -lpcre'
> > now
> > $ ./make
> > more: https://trac.osgeo.org/gdal/wiki/BuildingOnUnix
> >
> >
> > On Thu, Jul 5, 2018 at 9:59 AM Susan Borda <[hidden email]
> > <mailto:[hidden email]>> wrote:
> >
> >     Thanks Evan, I saw that mentioned in the formats list but I'm not
> >     sure how to "build GDAL" with this library. I just downloaded GDAL
> >     and it uses Python 3.6 but the version of CFITSIO I found uses
> >     Python 2.x. I'm using a Mac but can easily run all of this on Linux
> >     VM if need be.
> >
> >     -susan
> >
> >     On Thu, Jul 5, 2018 at 12:45 PM Even Rouault
> >     <[hidden email] <mailto:[hidden email]>> wrote:
> >
> >         On jeudi 5 juillet 2018 12:41:08 CEST Susan Borda wrote:
> >          > Hi-
> >          > I'm new to gdal and am trying to use gdalinfo to read a
> >         *.fits file
> >          > (astronomy files), specifically the header. When I list the
> >         formats
> >          > supported by gdalinfo, I'm only seeing FIT not FITS. Is FITS
> >         no longer
> >          > supported?
> >
> >         It is, but you must build GDAL against the CFITSIO library:
> >         http://gdal.org/frmt_various.html#FITS
> >
> >         On Debian and derivatives, this is the libcfitsio-dev package.
> >
> >         --
> >         Spatialys - Geospatial professional services
> >         http://www.spatialys.com
> >
> >
> >
> >     --
> >     Susan Borda
> >     Data Workflows Specialist
> >     Research Data Services
> >     University of Michigan Libraries
> >     3175 Shapiro Library
> >     734-764-9134 | [hidden email] <mailto:[hidden email]>
> >
> >
> --
> Jeff McKenna
> MapServer Consulting and Training Services
> https://gatewaygeomatics.com/
> _______________________________________________
> gdal-dev mailing list
> [hidden email]
> https://lists.osgeo.org/mailman/listinfo/gdal-dev

--
Chiara Marmo
Ingénieur de Recherche GEOPS - Paris Sud-11
Bât 509
Tel: +33 (0)1 69 15 49 03
_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: Trac page on compiling GDAL with FITS support (was FITS format not listed in gdalinfo --formats)

jmckenna
Administrator
Hi Chiara!

Absolutely, your edits are very welcomed.

If you need an account for Trac, just goto http://id.osgeo.org and
request an account (small world: I'm one of the volunteers approving
those accounts / due to spam attacks this is required).  I'll watch for
your request.  thanks!  -jeff



On 2018-07-11 12:40 PM, Chiara Marmo wrote:

> Hi,
> I'm Chiara, as Trent said I'm working on FITS driver improvement in GDAL.
>
> I have prepared a documentation page on the VESPA-Europlanet wiki [1]
>
> I'm not an official contributor to GDAL code, but I will be happy to contribute to the Trac documentation if I may.
> May I? :)
>
> Thanks for listening,
> Chiara
>
>
> [1] https://voparis-confluence.obspm.fr/display/VES/GDAL+with+FITS
>
> ----- Original Message -----
>> From: "Jeff McKenna" <[hidden email]>
>> To: [hidden email]
>> Sent: Thursday, July 5, 2018 8:18:50 PM
>> Subject: Re: [gdal-dev] [EXTERNAL] Re: FITS format not listed in gdalinfo --formats
>>
>> Trent, is it possible that you record all these steps and hints for
>> compiling FITS support at https://trac.osgeo.org/gdal/wiki/BuildHints
>> (i.e. create a new wiki page there and add a link to your build page in
>> the "External Library Issues" section)  That way the steps are recorded
>> and easy to find (instead of lost in the email archives)
>>
>> I'm happy to add a Windows section for compiling FITS as well.
>>
>> thanks!
>>
>> -jeff
>>
>>
>>
>> On 2018-07-05 2:12 PM, Trent Hare wrote:
>>> Susan,
>>>      Yes -  the FITS format is supported in GDAL once compilation has
>>> been linked to CFITSIO.
>>>
>>> Note this driver is currently being enhanced to (1) better support FITS
>>> files within GDAL and (2) the format FITS will have an extension added
>>> to it, which allows more typical GIS map projection support. That branch
>>> of GDAL is being worked on Chiara Marmo:
>>> https://github.com/epn-vespa/gdal/tree/fits_driver
>>>
>>> For Mac, I'm not sure this will work, but on Linux (Fedora and Ubuntu)
>>> this should get you FITS support in GDAL (and also get QGIS with FITS
>>> also).
>>>
>>> _In order to have QGIS working with FITS_
>>>
>>>    * install CFITSIO (Fedora : cfitsio-devel ; Ubuntu : libcfitsio-dev)
>>>    * install GDAL (Fedora : gdal-devel ; Ubuntu : libgdal-dev)
>>>    * install QGIS
>>>
>>>
>>> *_Temporary workaround_: *
>>>     So a method Chiara created to test GDAL for FITS users is a simple
>>> Python script which creates a GDAL VRT header pointing into the FITS
>>> file. Once the VRT is created, any GDAL program can use it by pointing
>>> at the VRT file (gdal_translate, QGIS, ArcMap, ...). Perhaps that is
>>> worth a shot.
>>> https://github.com/epn-vespa/fits2vrt
>>>
>>> Lastly, once the FITS driver is updated we will try to support an
>>> anaconda version of GDAL with CFITSIO pre-built for users (should help
>>> Macs users too).
>>>
>>> Good luck,
>>> Trent
>>>
>>>
>>> P.S. maybe a little un-tested *build help* (linux again - sorry).
>>>
>>> Install CFITSIO
>>> Clone/download the GDAL repo.
>>> $ cd gdal/gdal
>>> you have compiled there the 'fits-driver' branch, using
>>> $ ./configure
>>> In that same repo you have a config.log file.
>>> If you grep cfitsio in config.log you must have (among others, and
>>> depending on your distro)
>>> EXTRA_INCLUDES='-I/usr/include/cfitsio '
>>> LIBS='-lcrypto -lexpat -ljasper -ljpeg -lgeotiff -ltiff -lpng -lcfitsio
>>> -lz -lpthread -lm -lrt -ldl  -lpcre'
>>> now
>>> $ ./make
>>> more: https://trac.osgeo.org/gdal/wiki/BuildingOnUnix
>>>
>>>
>>> On Thu, Jul 5, 2018 at 9:59 AM Susan Borda <[hidden email]
>>> <mailto:[hidden email]>> wrote:
>>>
>>>      Thanks Evan, I saw that mentioned in the formats list but I'm not
>>>      sure how to "build GDAL" with this library. I just downloaded GDAL
>>>      and it uses Python 3.6 but the version of CFITSIO I found uses
>>>      Python 2.x. I'm using a Mac but can easily run all of this on Linux
>>>      VM if need be.
>>>
>>>      -susan
>>>
>>>      On Thu, Jul 5, 2018 at 12:45 PM Even Rouault
>>>      <[hidden email] <mailto:[hidden email]>> wrote:
>>>
>>>          On jeudi 5 juillet 2018 12:41:08 CEST Susan Borda wrote:
>>>           > Hi-
>>>           > I'm new to gdal and am trying to use gdalinfo to read a
>>>          *.fits file
>>>           > (astronomy files), specifically the header. When I list the
>>>          formats
>>>           > supported by gdalinfo, I'm only seeing FIT not FITS. Is FITS
>>>          no longer
>>>           > supported?
>>>
>>>          It is, but you must build GDAL against the CFITSIO library:
>>>          http://gdal.org/frmt_various.html#FITS
>>>
>>>          On Debian and derivatives, this is the libcfitsio-dev package.
>>>
>>>          --
>>>          Spatialys - Geospatial professional services
>>>          http://www.spatialys.com
>>>
>>>
>>>
>>>      --
>>>      Susan Borda
>>>      Data Workflows Specialist
>>>      Research Data Services
>>>      University of Michigan Libraries
>>>      3175 Shapiro Library
>>>      734-764-9134 | [hidden email] <mailto:[hidden email]>
>>>
_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: Trac page on compiling GDAL with FITS support (was FITS format not listed in gdalinfo --formats)

Even Rouault-2
In reply to this post by Chiara Marmo
On mercredi 11 juillet 2018 17:40:21 CEST Chiara Marmo wrote:
> Hi,
> I'm Chiara, as Trent said I'm working on FITS driver improvement in GDAL.
>
> I have prepared a documentation page on the VESPA-Europlanet wiki [1]
>
> I'm not an official contributor to GDAL code, but I will be happy to
> contribute to the Trac documentation if I may. May I? :)

Sure. I'll send you in private message the "mantra" to create a OSGeo user id
if you don't have one already, and you'll indicate me your id so I can grant
you wiki page modification right.

Even

>
> Thanks for listening,
> Chiara
>
>
> [1] https://voparis-confluence.obspm.fr/display/VES/GDAL+with+FITS
>
> ----- Original Message -----
>
> > From: "Jeff McKenna" <[hidden email]>
> > To: [hidden email]
> > Sent: Thursday, July 5, 2018 8:18:50 PM
> > Subject: Re: [gdal-dev] [EXTERNAL] Re: FITS format not listed in gdalinfo
> > --formats
> >
> > Trent, is it possible that you record all these steps and hints for
> > compiling FITS support at https://trac.osgeo.org/gdal/wiki/BuildHints
> > (i.e. create a new wiki page there and add a link to your build page in
> > the "External Library Issues" section)  That way the steps are recorded
> > and easy to find (instead of lost in the email archives)
> >
> > I'm happy to add a Windows section for compiling FITS as well.
> >
> > thanks!
> >
> > -jeff
> >
> > On 2018-07-05 2:12 PM, Trent Hare wrote:
> > > Susan,
> > >
> > >     Yes -  the FITS format is supported in GDAL once compilation has
> > >
> > > been linked to CFITSIO.
> > >
> > > Note this driver is currently being enhanced to (1) better support FITS
> > > files within GDAL and (2) the format FITS will have an extension added
> > > to it, which allows more typical GIS map projection support. That branch
> > > of GDAL is being worked on Chiara Marmo:
> > > https://github.com/epn-vespa/gdal/tree/fits_driver
> > >
> > > For Mac, I'm not sure this will work, but on Linux (Fedora and Ubuntu)
> > > this should get you FITS support in GDAL (and also get QGIS with FITS
> > > also).
> > >
> > > _In order to have QGIS working with FITS_
> > >
> > >   * install CFITSIO (Fedora : cfitsio-devel ; Ubuntu : libcfitsio-dev)
> > >   * install GDAL (Fedora : gdal-devel ; Ubuntu : libgdal-dev)
> > >   * install QGIS
> > >
> > > *_Temporary workaround_: *
> > >
> > >    So a method Chiara created to test GDAL for FITS users is a simple
> > >
> > > Python script which creates a GDAL VRT header pointing into the FITS
> > > file. Once the VRT is created, any GDAL program can use it by pointing
> > > at the VRT file (gdal_translate, QGIS, ArcMap, ...). Perhaps that is
> > > worth a shot.
> > > https://github.com/epn-vespa/fits2vrt
> > >
> > > Lastly, once the FITS driver is updated we will try to support an
> > > anaconda version of GDAL with CFITSIO pre-built for users (should help
> > > Macs users too).
> > >
> > > Good luck,
> > > Trent
> > >
> > >
> > > P.S. maybe a little un-tested *build help* (linux again - sorry).
> > >
> > > Install CFITSIO
> > > Clone/download the GDAL repo.
> > > $ cd gdal/gdal
> > > you have compiled there the 'fits-driver' branch, using
> > > $ ./configure
> > > In that same repo you have a config.log file.
> > > If you grep cfitsio in config.log you must have (among others, and
> > > depending on your distro)
> > > EXTRA_INCLUDES='-I/usr/include/cfitsio '
> > > LIBS='-lcrypto -lexpat -ljasper -ljpeg -lgeotiff -ltiff -lpng -lcfitsio
> > > -lz -lpthread -lm -lrt -ldl  -lpcre'
> > > now
> > > $ ./make
> > > more: https://trac.osgeo.org/gdal/wiki/BuildingOnUnix
> > >
> > >
> > > On Thu, Jul 5, 2018 at 9:59 AM Susan Borda <[hidden email]
> > >
> > > <mailto:[hidden email]>> wrote:
> > >     Thanks Evan, I saw that mentioned in the formats list but I'm not
> > >     sure how to "build GDAL" with this library. I just downloaded GDAL
> > >     and it uses Python 3.6 but the version of CFITSIO I found uses
> > >     Python 2.x. I'm using a Mac but can easily run all of this on Linux
> > >     VM if need be.
> > >    
> > >     -susan
> > >    
> > >     On Thu, Jul 5, 2018 at 12:45 PM Even Rouault
> > >    
> > >     <[hidden email] <mailto:[hidden email]>>
wrote:

> > >         On jeudi 5 juillet 2018 12:41:08 CEST Susan Borda wrote:
> > >          > Hi-
> > >          > I'm new to gdal and am trying to use gdalinfo to read a
> > >        
> > >         *.fits file
> > >        
> > >          > (astronomy files), specifically the header. When I list the
> > >        
> > >         formats
> > >        
> > >          > supported by gdalinfo, I'm only seeing FIT not FITS. Is FITS
> > >        
> > >         no longer
> > >        
> > >          > supported?
> > >        
> > >         It is, but you must build GDAL against the CFITSIO library:
> > >         http://gdal.org/frmt_various.html#FITS
> > >        
> > >         On Debian and derivatives, this is the libcfitsio-dev package.
> > >        
> > >         --
> > >         Spatialys - Geospatial professional services
> > >         http://www.spatialys.com
> > >    
> > >     --
> > >     Susan Borda
> > >     Data Workflows Specialist
> > >     Research Data Services
> > >     University of Michigan Libraries
> > >     3175 Shapiro Library
> > >     734-764-9134 | [hidden email] <mailto:[hidden email]>
> >
> > --
> > Jeff McKenna
> > MapServer Consulting and Training Services
> > https://gatewaygeomatics.com/
> > _______________________________________________
> > gdal-dev mailing list
> > [hidden email]
> > https://lists.osgeo.org/mailman/listinfo/gdal-dev


--
Spatialys - Geospatial professional services
http://www.spatialys.com
_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev
Reply | Threaded
Open this post in threaded view
|

Re: Trac page on compiling GDAL with FITS support

Chiara Marmo
Hello,

Just to let you all know that a page describing how to link GDAL against CFITSIO is now available at
https://trac.osgeo.org/gdal/wiki/FITS

Best,
Chiara


----- Original Message -----

> From: "Even Rouault" <[hidden email]>
> To: [hidden email]
> Sent: Wednesday, July 11, 2018 6:17:15 PM
> Subject: Re: [gdal-dev] Trac page on compiling GDAL with FITS support (was FITS format not listed in gdalinfo
> --formats)
>
> On mercredi 11 juillet 2018 17:40:21 CEST Chiara Marmo wrote:
> > Hi,
> > I'm Chiara, as Trent said I'm working on FITS driver improvement in GDAL.
> >
> > I have prepared a documentation page on the VESPA-Europlanet wiki [1]
> >
> > I'm not an official contributor to GDAL code, but I will be happy to
> > contribute to the Trac documentation if I may. May I? :)
>
> Sure. I'll send you in private message the "mantra" to create a OSGeo user id
> if you don't have one already, and you'll indicate me your id so I can grant
> you wiki page modification right.
>
> Even
>
> >
> > Thanks for listening,
> > Chiara
> >
> >
> > [1] https://voparis-confluence.obspm.fr/display/VES/GDAL+with+FITS
> >
> > ----- Original Message -----
> >
> > > From: "Jeff McKenna" <[hidden email]>
> > > To: [hidden email]
> > > Sent: Thursday, July 5, 2018 8:18:50 PM
> > > Subject: Re: [gdal-dev] [EXTERNAL] Re: FITS format not listed in gdalinfo
> > > --formats
> > >
> > > Trent, is it possible that you record all these steps and hints for
> > > compiling FITS support at https://trac.osgeo.org/gdal/wiki/BuildHints
> > > (i.e. create a new wiki page there and add a link to your build page in
> > > the "External Library Issues" section)  That way the steps are recorded
> > > and easy to find (instead of lost in the email archives)
> > >
> > > I'm happy to add a Windows section for compiling FITS as well.
> > >
> > > thanks!
> > >
> > > -jeff
> > >
_______________________________________________
gdal-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/gdal-dev