Skip to content
Snippets Groups Projects
Commit b859cce6 authored by tomrink's avatar tomrink
Browse files

account for no caliop line coordinate

parent 3e47ee7e
No related branches found
No related tags found
No related merge requests found
...@@ -109,8 +109,11 @@ def match_calipso_clavrx_to_amvs(calipso_clavrx_ds, calipso_clavrx_file, amv_fil ...@@ -109,8 +109,11 @@ def match_calipso_clavrx_to_amvs(calipso_clavrx_ds, calipso_clavrx_file, amv_fil
calipso_clavrx_data.append(calipso_clavrx_nc4[pname][:]) calipso_clavrx_data.append(calipso_clavrx_nc4[pname][:])
lat_s = calipso_clavrx_nc4['latitude'][:] lat_s = calipso_clavrx_nc4['latitude'][:]
lon_s = calipso_clavrx_nc4['longitude'][:] lon_s = calipso_clavrx_nc4['longitude'][:]
xs = calipso_clavrx_nc4['x'][:] if calipso_clavrx_ds.variables.get('x') is None:
ys = calipso_clavrx_nc4['y'][:] xs, yx = nav.earth_to_lc_s(amv_lons, amv_lats)
else:
xs = calipso_clavrx_nc4['x'][:]
ys = calipso_clavrx_nc4['y'][:]
clvr_xy_s = zip(xs, ys) clvr_xy_s = zip(xs, ys)
for idx, clvr_xy in enumerate(clvr_xy_s): for idx, clvr_xy in enumerate(clvr_xy_s):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment