[GRASSLIST:4826] Problems importing Data into lat/lon with negtiv south value

Stephan Holl sholl at gmx.net
Sun Nov 14 04:27:59 EST 2004


Dear Users,

I am trying to import some MODIS data into GRASS. In a first step I
managed to convert a subdataset of the MODIS data into img-format using
gdal_translate.

The dataset is a global dataset which should be in lat/long.

gdal_translate HDF4_SDS:EOS_GRID:"modis.hdf":2 -of HFA test_hdf.img
Input file size is 3600, 1800
0...10...20...30...40...50...60...70...80...90...100 - done.
steph at bim:~/modis > gdalinfo test_hdf.img
Driver: HFA/Erdas Imagine Images (.img)
Size is 3600, 1800
Coordinate System is `'
Origin = (0.000000,0.000000)
Pixel Size = (1.00000000,1.00000000)
Metadata:
  HDFEOSVersion=HDFEOS_V2.4
  LOCALGRANULEID=MOD08D3H.A2003090.004.2003093014745.hdf
  PRODUCTIONDATETIME=2003-04-03T01:47:45.000Z
  DAYNIGHTFLAG=Both
  REPROCESSINGACTUAL=processed once
  LOCALVERSIONID=004
  REPROCESSINGPLANNED=further update is anticipated
  VERSIONID=4
  SHORTNAME=MOD08D3H
  INPUTPOINTER=MOD04_L2.A2003090.0250.004.2003092034313.hdf,

[more metadata skipped]

EASTBOUNDINGCOORDINATE=180.000000 
WESTBOUNDINGCOORDINATE=-180.000000  SOUTHBOUNDINGCOORDINATE=-90.000000
  NORTHBOUNDINGCOORDINATE=90.000000
  RANGEENDINGDATE=2003-04-01
  RANGEENDINGTIME=00:00:00
  RANGEBEGINNINGDATE=2003-03-31
  RANGEBEGINNINGTIME=00:00:00
  PGEVERSION=4.0.3
  ASSOCIATEDSENSORSHORTNAME=MODIS
  ASSOCIATEDPLATFORMSHORTNAME=Terra
  ASSOCIATEDINSTRUMENTSHORTNAME=MODIS
  PROCESSINGENVIRONMENT=Linux minion425 2.4.18-27.7.xsmp #1 SMP Fri Mar
14 05:52:30 EST 2003 i686 unknown 
LOCALINPUTGRANULEID=MOD04_L2.A2003090.0250.004.2003092034313.hdf,

[more metadata skipped]

  LONGNAME=MODIS/Terra Aerosol Cloud Water Vapor Ozone Daily L3 Global
0.1 Deg CMG  valid_range=0, 18000
  _FillValue=-9999
  long_name=Sensor Zenith Angle (Cell to Sensor): Mean
  units=Degrees
  scale_factor=0.01
  add_offset=0
  Level_2_Pixel_Values_Read_As=Real
  Derived_From_Level_2_Data_Set=Sensor_Zenith
  Included_Level_2_Nighttime_Data=False
  Quality_Assurance_Data_Set=None
  Statistic_Type=Simple
  Aggregation_Data_Set=None
Corner Coordinates:
Upper Left  (   0.0000000,   0.0000000)
Lower Left  (       0.000,    1800.000)
Upper Right (    3600.000,       0.000)
Lower Right (    3600.000,    1800.000)
Center      (    1800.000,     900.000)
Band 1 Block=64x64 Type=Int16, ColorInterp=Undefined
steph at bim:~/modis >

The problem seems to be with negative south and west values, as GRASS
needs south boundaries as 90S and not -90 (as my data have).

Is there a solution to use this kind of data in GRASS? Thanks for any
pointers on this topic.

Kind Regards

	Stephan Holl



-- 
Stephan Holl

Check headers for GnuPG Key!
http://www.gdf-hannover.de

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/grass-user/attachments/20041114/ee32ec86/attachment.bin


More information about the grass-user mailing list