Author Topic: HRSC 2 ArcGIS  (Read 13615 times)

joosthoek

  • Ra (Power Member)
  • *****
  • Posts: 109
HRSC 2 ArcGIS
« on: February 21, 2007, 08:27:43 AM »
I created a perl script to create ArcGIS ready georeferenced data from PDS labeled HRSC data. You must have perl (http://www.activestate.com/Products/ActivePerl/) and ArcGIS 9.1 installed. I haven't checked if the script works with ArcGIS 9.2. It can also create JPEG2000 files using GDAL for Windows (http://fwtools.maptools.org).

Jelmer Oosthoek

*** ESA Mars Express HRSC data to ArcGIS ***

This perl script works only in Windows with ArcGIS 9.x installed.
It is able to create ArcGIS ready data from the PDS labeled HRSC
data, available from the ESA Planetary Science Archive (http://www
.rssd.esa.int/psa). It uses GDAL for Windows (http://fwtools.map
tools.org) to create JPEG2000 data. It uses ArcGIS to assign the
georeference information to the data and to create pyramids.

Usage: perl hrsc2arcgis.pl listfile jpeg2000[1|0] pyramids[1|0]

  listfile: the text file containing all the .IMG filenames.
  Use 0 for automatic creation of a list of all the .IMG in the
  directory (e.g. dir/b *.IMG).

  jpeg2000: use 1 if you want to create jpeg2000 files using GDAL
  (installed in the C:\Program Files\FWTools\bin directory),
  or 0 for the renaming of the .IMG to .bsq

  pyramids: 1 or 0.

Example: perl hrsc2arcgis.pl 0 1 0
This will create jpeg2000 files of all the .IMG in the directory,
but will not make pyramids.

kainus

  • Horus (New Member)
  • *
  • Posts: 4
HRSC 2 ArcGIS
« Reply #1 on: April 02, 2007, 01:33:58 PM »
We were recently using this tool to process North Polar images and found a bug with the sinusoidal projection. When creating the prj, your variable for center meridian gives the projection name and not the actual value. We fixed our version but could you update yours. Thanks, it's saving us a lot of time.

Corey
USGS Astrogeology

joosthoek

  • Ra (Power Member)
  • *****
  • Posts: 109
HRSC 2 ArcGIS
« Reply #2 on: April 02, 2007, 11:19:51 PM »
yeay I deleted that bug, but stereographic projected data still don't work. The images are not put on the correct location. I have to correct for that.

kainus

  • Horus (New Member)
  • *
  • Posts: 4
HRSC 2 ArcGIS
« Reply #3 on: April 04, 2007, 11:47:39 AM »
We haven't had any problems with the Stereographic projections. Our data is showing up where it's supposed to be. We're working on North Pole images and it looks fine. Were runing the script with as:
hrsc2arcgis.pl list 0 0
that seems to be getting the work done.

Also, we have altered the code to save the prj's so that there is a readme-type file for processed images. We were also hoping the script could be altered to show the file name while it's being processed.

Thanks
Corey

joosthoek

  • Ra (Power Member)
  • *****
  • Posts: 109
HRSC 2 ArcGIS
« Reply #4 on: April 04, 2007, 02:11:18 PM »
Oh ok, I had problems with some south pole data. Strange...

The script in the first post now shows the filename.

Jelmer

bermandc

  • Osiris (Active Member)
  • **
  • Posts: 5
    • Email
hrs2arcgis.pl for unix?
« Reply #5 on: July 15, 2008, 10:40:35 AM »
Is there a linux/unix version of hrsc2arcgis.pl?  I don't have perl installed on my windows machine, only on my linux machine. I'm assuming not, since it requires ArcMap.
Daniel C. Berman
Research Associate
Planetary Science Institute

bermandc

  • Osiris (Active Member)
  • **
  • Posts: 5
    • Email
jpeg2000 issue
« Reply #6 on: July 15, 2008, 12:28:02 PM »
I installed perl and fwtools on my windows machine, but when I run the script, I get the following error:
Output driver 'JP2KAK' not recognised.
The following format drivers are configured and support output:
Then it lists a bunch of formats.
Daniel C. Berman
Research Associate
Planetary Science Institute

thare

  • GIS Support Team
  • Isis (Extreme Power Member)
  • *****
  • Posts: 1217
    • http://webgis.wr.usgs.gov
    • Email
HRSC 2 ArcGIS
« Reply #7 on: July 15, 2008, 10:06:23 PM »
looks like the lastest version of FWTools doesn't have JP2KAK support???  Either install an older version or as a temporary solution you can switch over to the JP2ECW format which is still included.  

At line 179 for the PERL script replace:

-of JP2KAK
with
-of JP2ECW -co large_ok=yes

Trent

joosthoek

  • Ra (Power Member)
  • *****
  • Posts: 109
HRSC 2 ArcGIS
« Reply #8 on: July 16, 2008, 12:05:36 PM »
Ahh perfect! I already noticed large HRSC didn't work with JP2ECW... I'll try this -co

thare

  • GIS Support Team
  • Isis (Extreme Power Member)
  • *****
  • Posts: 1217
    • http://webgis.wr.usgs.gov
    • Email
Re: HRSC 2 ArcGIS
« Reply #9 on: February 24, 2016, 11:02:05 AM »
Just as a long-needed update. All HRSC PDS (*.img) work well in GDAL_based GIS applications like (QGIS and ArcMap). Also the team distributes GeoTiff and GeoJpeg2000 for most images too!
http://hrscview.fu-berlin.de/cgi-bin/ion-p?page=entry2.ion

-Trent