NREL / nsrdb

NSRDB data processing pipeline. Includes satellite data assimilation, cloud property prediction and gap-filling, radiative transport modeling, and data collection.
https://nrel.github.io/nsrdb/
BSD 3-Clause "New" or "Revised" License
8 stars 0 forks source link

Generate coordinates dataset for final NSRDB output #26

Closed grantbuster closed 2 years ago

grantbuster commented 3 years ago

Why this feature is necessary: Coordinates datasets are often added to final NSRDB data. Might as well have that generated when running nsrdb pipeline.

MRossol commented 3 years ago

coordinates: shape = (n, 2) dtype = np.float32 order = (lat, lon)

grantbuster commented 2 years ago

There should probably be an instance method in the reV outputs handler that creates the coordinates dataset with proper chunks, then add a kwarg add_coords=False (false by default, we dont usually need this) to a common entry point:

https://github.com/NREL/reV/blob/d8a5d2c2789246d85690ad581eb3731f80c66bb5/reV/handlers/outputs.py#L874

grantbuster commented 2 years ago

Actually probably in here (forgot we subclass the reV outputs handler for NSRDB applications):

https://github.com/NREL/nsrdb/blob/b2f01d3afc37b142766de4bcafb5f60b5ab2641b/nsrdb/file_handlers/outputs.py#L27

bnb32 commented 2 years ago

added coordinate chunks here https://github.com/NREL/nsrdb/blob/0cc0a99aca38b09fe51dd7fc6b943264cf874d83/nsrdb/file_handlers/outputs.py#L59-L62 and coordinate output here https://github.com/NREL/nsrdb/blob/0cc0a99aca38b09fe51dd7fc6b943264cf874d83/nsrdb/file_handlers/outputs.py#L73-L74