Skip to content
Snippets Groups Projects
Commit 572a59fe authored by Bruce Flynn's avatar Bruce Flynn
Browse files

fix: VIIRS apid order for rdr2l0

parent 5afc1df7
No related branches found
No related tags found
No related merge requests found
...@@ -22,7 +22,7 @@ import numpy as np ...@@ -22,7 +22,7 @@ import numpy as np
from h5py import File as H5File from h5py import File as H5File
from .headers import BaseStruct from .headers import BaseStruct
from .merge import merge from .merge import merge, VIIRS_APID_ORDER
LOG = logging.getLogger(__name__) LOG = logging.getLogger(__name__)
...@@ -323,8 +323,9 @@ def _do_rdr_to_l0(filepat, satellite, product, rdrs, start, end): ...@@ -323,8 +323,9 @@ def _do_rdr_to_l0(filepat, satellite, product, rdrs, start, end):
pdsname = pdsfilename(product, start) pdsname = pdsfilename(product, start)
LOG.info('merging to %s', pdsname) LOG.info('merging to %s', pdsname)
order = VIIRS_APID_ORDER if 'VIIRSSCIENCE' in product else None
with open(pdsname, 'wb') as dest: with open(pdsname, 'wb') as dest:
merge(streams, output=dest, trunc_to=[start, end]) merge(streams, output=dest, trunc_to=[start, end], apid_order=order)
return pdsname return pdsname
......
...@@ -32,5 +32,6 @@ setup( ...@@ -32,5 +32,6 @@ setup(
edosl0merge = edosl0util.cli.merge:main edosl0merge = edosl0util.cli.merge:main
edosl0crgen = edosl0util.cli.crgen:main edosl0crgen = edosl0util.cli.crgen:main
rdr2l0 = edosl0util.cli.rdr2l0:main rdr2l0 = edosl0util.cli.rdr2l0:main
rdrgen = edosl0util.cli.rdrgen:main
""" """
) )
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