reading HICO.nc L1 files in python
Posted: Thu Feb 14, 2019 7:25 am America/New_York
Hi,
I am new to python and I am struggling to read HICO L1 .nc files properly. Im using python3 on Linux.
For some reason I cannot read solar_azimuth and sensor_azimuth data in python, but if I try with seadas it is ok. So the data is there.
Here are the comand lines I use:
#----------------------------------
from netCDF4 import Dataset
nc = Dataset('H2014045025457.L1B_ISS.nc','r')
sza = nc.groups['navigation']['solar_zenith'][1,1]
vza = nc.groups['navigation']['sensor_zenith'][1,1]
saa = nc.groups['navigation']['solar_azimuth'][1,1]
vaa = nc.groups['navigation']['sensor_azimuth'][1,1]
print(sza)
print(vza)
print(saa)
print(vaa)
#----------------------------------
And the output I get is:
58.751854
18.975159
--
--
Can anyone help? Thanks,
Mariana
I am new to python and I am struggling to read HICO L1 .nc files properly. Im using python3 on Linux.
For some reason I cannot read solar_azimuth and sensor_azimuth data in python, but if I try with seadas it is ok. So the data is there.
Here are the comand lines I use:
#----------------------------------
from netCDF4 import Dataset
nc = Dataset('H2014045025457.L1B_ISS.nc','r')
sza = nc.groups['navigation']['solar_zenith'][1,1]
vza = nc.groups['navigation']['sensor_zenith'][1,1]
saa = nc.groups['navigation']['solar_azimuth'][1,1]
vaa = nc.groups['navigation']['sensor_azimuth'][1,1]
print(sza)
print(vza)
print(saa)
print(vaa)
#----------------------------------
And the output I get is:
58.751854
18.975159
--
--
Can anyone help? Thanks,
Mariana