Opened 7 years ago
Closed 7 years ago
#7115 closed defect (fixed)
L1B/NOAA Dirver cannot open NOAA18 data
Reported by: | liminlu0314 | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | GDAL_Raster | Version: | svn-trunk |
Severity: | normal | Keywords: | |
Cc: |
Description
NOAA-18 data cannot be opened using L1B/NOAA Dirver, because the function L1BDataset::DetectFormat()https://trac.osgeo.org/gdal/browser/trunk/gdal/frmts/l1b/l1bdataset.cpp#L3024. failed to detect corresponding file format. To solve this problem, we can add a judgement on new file format in the function L1BDataset::DetectFormat(), and return L1B_NOAA15_NOHDR. For example:
// try NOAA-18 formats if ( *(pabyHeader + 0) == '\0' && *(pabyHeader + 1) == '\0' && *(pabyHeader + 2) == '\0' && *(pabyHeader + 3) == '\0' && *(pabyHeader + 4) == '\0' && *(pabyHeader + 5) == '\0' && EQUALN((const char*)(pabyHeader + 22), "/N1BD/N18/", 10)) return L1B_NOAA15_NOHDR;
Test data link:https://www.dropbox.com/s/qupzg8bkwlwxohz/NOAA18.zip?dl=0
Note:
See TracTickets
for help on using tickets.
In 40596: