<module>
    <manifestVersion>1.0.0</manifestVersion>
    <symbolicName>seadas-reader</symbolicName>
    <version>1.3</version>
    <name>NASA OBPG Ocean Color Product Reader</name>
    <description>A reader for NASA Ocean Color (HDF) Level-2 Data Products</description>

    <vendor>NASA Ocean Biogeochemical Processing Group</vendor>
    <contactAddress>NASA GSFC, Greenbelt, Maryland, MD, USA</contactAddress>
    <copyright>(C) 2012 by NASA OBPG</copyright>
    <url>http://oceancolor.gsfc.nasa.gov/</url>
    <licenseUrl>http://www.gnu.org/licenses/gpl.html</licenseUrl>
    <funding>NASA GSFC</funding>

    <changelog>
        <![CDATA[
        Changes in 1.3:<br/>
        Module development taken over by NASA GSFC, Ocean Biogeochemical Processing Group.<br/>
        Readers added for VIIRS, Aquarius, MODIS L1B and SeaDAS L1, L2, L3 and browse products.<br/>
        Changes in 1.2:<br/>
        [BEAM-1149] - OBPG reader causes Exception if used with GPF<br/>
        [BEAM-1087] - OBPG child products can not be read<br/>
        [BEAM-1085] - Support reprocessed data by NASA OBPG<br/>
        Changes in 1.1:<br/>
        [BEAM-1080] The valid pixel expression of the OBPG L2 products does not conform to product specification<br/>
        [BEAM-1079] Set product start and stop time from metadata<br/>
        [BEAM-1078] OBPG reader should use the pure Java netcdf library<br/>
        Changes in 1.0.2:<br/>
        [BEAM-922] Wrong Exception type thrown on format errors<br/>
        Changes in 1.0.101:<br/>
        [BEAM-855] Reader plugin does not close SD interface<br/>
        [BEAM-840] MODIS L2 "*.x.hdf" read error<br/>
        ]]>
    </changelog>

    <dependency>
        <module>beam-core</module>
    </dependency>
    <dependency>
        <module>beam-merisl3-reader</module>
    </dependency>
    <dependency>
        <module>beam-visat-rcp</module>
        <optional>true</optional>
    </dependency>

    <categories>Reader,OBPG,SeaDAS,HDF,VISAT,NASA</categories>

    <extension point="beam-ui:actions">
        <action>
            <id>importSeadasL1Product</id>
            <class>org.esa.beam.visat.actions.ProductImportAction</class>
            <formatName>SeaDAS-L1</formatName>
            <useAllFileFilter>true</useAllFileFilter>
            <text>SeaDAS L1 (OCTS, CZCS, SeaWiFS)</text>
            <shortDescr>Import a SeaDAS-supported L1 data product.</shortDescr>
            <description>Import a SeaDAS-supported Level 1 (OCTS, CZCS, SeaWiFS) data product.
            </description>
            <helpId>importSeadasL1Product</helpId>
        </action>
        <action>
            <id>importSeadasL2Product</id>
            <class>org.esa.beam.visat.actions.ProductImportAction</class>
            <formatName>SeaDAS-L2</formatName>
            <useAllFileFilter>true</useAllFileFilter>
            <text>SeaDAS L2 (CZCS, OCTS, SeaWiFS, MODIS, VIIRS, etc.)</text>
            <shortDescr>Import a SeaDAS-supported L2 data product.</shortDescr>
            <description>Import a SeaDAS-supported Level 2 (CZCS, OCTS, SeaWiFS, MODIS, VIIRS, etc.) data product.
            </description>
            <helpId>importSeadasL2Product</helpId>
        </action>
        <action>
            <id>importSeadasL3Product</id>
            <class>org.esa.beam.visat.actions.ProductImportAction</class>
            <formatName>SeaDAS-L3</formatName>
            <useAllFileFilter>true</useAllFileFilter>
            <text>SeaDAS L3 (CZCS, OCTS, SeaWiFS, MODIS, VIIRS, etc.)</text>
            <shortDescr>Import a SeaDAS-supported L3 data product.</shortDescr>
            <description>Import a SeaDAS-supported Level 3 (CZCS, OCTS, SeaWiFS, MODIS, VIIRS, etc.) data product.
            </description>
            <helpId>importSeadasL3Product</helpId>
        </action>
        <action>
            <id>importAquariusProduct</id>
            <class>org.esa.beam.visat.actions.ProductImportAction</class>
            <formatName>Aquarius</formatName>
            <useAllFileFilter>true</useAllFileFilter>
            <text>Aquarius (L1A, L2, L3)</text>
            <shortDescr>Import an Aquarius (L1A, L2, L3) data product.</shortDescr>
            <description>Import an Aquarius (L1A, L2, L3) data product.
            </description>
            <helpId>importAquariusProduct</helpId>
        </action>
        <action>
            <id>importModisL1BProduct</id>
            <class>org.esa.beam.visat.actions.ProductImportAction</class>
            <formatName>MODIS-L1B</formatName>
            <useAllFileFilter>true</useAllFileFilter>
            <text>MODIS L1B</text>
            <shortDescr>Import a MODIS Level 1B data product.</shortDescr>
            <description>Import a MODIS Level 1B data product.
            </description>
            <helpId>importModisL1BProduct</helpId>
        </action>
        <action>
            <id>importViirsProduct</id>
            <class>org.esa.beam.visat.actions.ProductImportAction</class>
            <formatName>VIIRS</formatName>
            <useAllFileFilter>true</useAllFileFilter>
            <text>VIIRS (SDR, EDR)</text>
            <shortDescr>Import a VIIRS (SDR, EDR) data product.</shortDescr>
            <description>Import a VIIRS (SDR, EDR) data product.</description>
            <helpId>importViirsProduct</helpId>
        </action>
        <action>
            <id>importSeadasBrowseProduct</id>
            <class>org.esa.beam.visat.actions.ProductImportAction</class>
            <formatName>SeaDAS-Browse</formatName>
            <useAllFileFilter>true</useAllFileFilter>
            <text>SeaDAS Browse (L1, L2)</text>
            <shortDescr>Import a SeaDAS Browse (L1, L2) data product.</shortDescr>
            <description>Import a SeaDAS Browse (L1, L2) data product.
            </description>
            <helpId>importSeadasBrowseProduct</helpId>
        </action>
    </extension>

    <extension point="beam-core:rgbProfiles">
        <rgbProfile>
            <name>NASA SeaWiFS L2</name>
            <red>Rrs_670</red>
            <green>Rrs_510</green>
            <blue>Rrs_443</blue>
        </rgbProfile>
        <rgbProfile>
            <name>NASA MODIS L2</name>
            <red>Rrs_667</red>
            <green>Rrs_531</green>
            <blue>Rrs_443</blue>
        </rgbProfile>
        <rgbProfile>
            <name>NASA OCTS/CZCS L2</name>
            <red>Rrs_670</red>
            <green>Rrs_520</green>
            <blue>Rrs_443</blue>
        </rgbProfile>
        <rgbProfile>
            <name>NASA SeaWiFS L2 Tristimulus</name>
            <red>log(1 + 0.2*nLw_443 + 1.1*nLw_670)</red>
            <green>log(1 + 0.2*nLw_443 + 0.4*nLw_510 + 0.4*nLw_555)</green>
            <blue>log(1 + 1.85*nLw_443)</blue>
        </rgbProfile>
        <rgbProfile>
            <name>NASA MODIS L2 Tristimulus</name>
            <red>log(1 + 0.2*nLw_443 + 1.1*nLw_670)</red>
            <green>log(1 + 0.2*nLw_443 + 0.4*nLw_531 + 0.4*nLw_551)</green>
            <blue>log(1 + 1.85*nLw_443)</blue>
        </rgbProfile>
        <rgbProfile>
            <name>NASA OCTS L2 Tristimulus</name>
            <red>log(1 + 0.2*nLw_443 + 1.1*nLw_670)</red>
            <green>log(1 + 0.2*nLw_443 + 0.4*nLw_520 + 0.4*nLw_565)</green>
            <blue>log(1 + 1.85*nLw_443)</blue>
        </rgbProfile>
        <rgbProfile>
            <name>NASA CZCS L2 Tristimulus</name>
            <red>log(1 + 0.2*nLw_443 + 1.1*nLw_670)</red>
            <green>log(1 + 0.2*nLw_443 + 0.4*nLw_520 + 0.4*nLw_550)</green>
            <blue>log(1 + 1.85*nLw_443)</blue>
        </rgbProfile>
    </extension>


</module>
