NASA-SASSIE / collocation

in situ and satellite collocation
MIT License
0 stars 0 forks source link

function to collocate insitu and satellite data #2

Open sevfour opened 2 years ago

sevfour commented 2 years ago
sevfour commented 2 years ago

I finished one test code to collocate SMAP SSS data with one SIZR file for 2016. @kdrushka you can try to run it. At some point in the code, where i do the interpolation, i use a loop and that's not ideal at all but i couldn't find a way to make the 3D interpolation work with xarray interp() (but i'm sure it's possible).

kdrushka commented 2 years ago

Sweet! :raised_hands:

I think the 3d interp wasn't working because we had non-unique times for SMAP files so they were loading more than once.

I added two things, one to only load SMAP files once, and two to do a 3-d interp along a new dimension. Let me know if this is what you had in mind/make sense...

sevfour commented 2 years ago

That's great! Thanks :-)

sevfour commented 2 years ago

I have added the collocation to OISST L4 data in the test notebook. I made a .py file to run the collocation with SIZRS file for a certain date/region of interest. It seems to work!

kdrushka commented 2 years ago

woohoo! nice work :1st_place_medal: