lpinner / metageta

Metadata Gathering, Extraction and Transformation Application - Unmaintained
Other
5 stars 4 forks source link

Alos driver #56

Open alexlopespereira opened 8 years ago

alexlopespereira commented 8 years ago

@lpinner I changed the regex of alos.py driver in order to accept more files described in the second row of the Table I of PALSAR product description (http://www.eorc.jaxa.jp/ALOS/en/doc/fdata/PALSAR_x_Format_EK.pdf).

I changed the format_regex from

format_regex=[
      r'LED-ALAV.*_U$',           
      r'LED-ALAV.*___$',         
      r'LED-ALPSR.*UD$',      
      r'LED-ALPSM.*\_U[BFNW]$'    
      ]

to

format_regex=[
      r'LED-ALAV.*_U$',       
      r'LED-ALAV.*___$',      
      r'LED-ALPSR.*([CDHPW]\d\.\dG[LMPU][AD])$',           
      r'LED-ALPSM.*\_U[BFNW]$'  
      ]

And the img_regex from

img_regex=[
              r'IMG-0[1-4]-ALAV.*_U$',    
              r'.*\.tif$',              
              r'IMG-[HV][HV]-ALPSR.*UD$',  
              r'IMG-ALPSM.*\_U[BFNW]$'    
        ]

to

img_regex=[
              r'IMG-0[1-4]-ALAV.*_U$',   
              r'.*\.tif$',         
              r'IMG-[HV][HV]-ALPSR.*([CDHPW]\d\.\dG[LMPU][AD])$',  
              r'IMG-ALPSM.*\_U[BFNW]$'  
        ]

I'm planning to develop a driver to Cosmo Skymed, Radarsat2 and Sentinel2. I'll need to create additional fields in metageta.formats.fields. Do you want to put it in a branch?

lpinner commented 8 years ago

Sorry for the delay. There's now an 'drivers' branch