MBoustani / Geothon

Series of GeoSpatial/GIS Python code examples (Python GIS CookBook)
Apache License 2.0
61 stars 24 forks source link

A code that gives netCDF general information #63

Open MBoustani opened 9 years ago

chrismattmann commented 9 years ago

Use Tika-Python

MBoustani commented 9 years ago

@chrismattmann here is what I got back form a sample netCDF file. I will get @lewismc help me to use Tika-Parser for netCDF and I will use Tika-Pyhton definitely to compare both results:

File: "../static_files/netcdf/airs_h2o_128x256_miroc5_sep04.nc"

Result: Variable: time_bnds nelems: 521 preemption: 0.75 size: 1048576 Variable: H2OMMRLevStd_average units: gm/kg long_name: level water vapor mass mixing ratio (gm/kg dry air) missing_value: -9999.0 short_name: H2OMMRLevStd nelems: 521 preemption: 0.75 size: 1048576 Variable: lat_bnds nelems: 521 preemption: 0.75 size: 1048576 Variable: lon units: degrees east long_name: Longitude bounds: lon_bnds nelems: 521 preemption: 0.75 size: 1048576 Variable: lon_bnds nelems: 521 preemption: 0.75 size: 1048576 Variable: time units: TAI93 Time long_name: seconds since 1993-01-01 00:00:00 bounds: time_bnds nelems: 521 preemption: 0.75 size: 1048576 Variable: lat units: degrees north long_name: Latitude bounds: lat_bnds nelems: 521 preemption: 0.75 size: 1048576 Variable: alt units: hPa long_name: Pressure bounds: alt_bnds nelems: 521 preemption: 0.75 size: 1048576

MBoustani commented 9 years ago

@chrismattmann I will scoop Tika-Python

chrismattmann commented 9 years ago

yep please scope that. Also please scope: https://wiki.apache.org/tika/TikaJAXRS