pytroll/pyspectral

can this program be used for user-defined sensor or rsr?

lwk1542 opened this issue · 12 comments

Code Sample, a minimal, complete, and verifiable piece of code

# Your code here

Problem description

[this should also explain why the current behaviour is a problem and why the
expected output is a better solution.]

Expected Output

Actual Result, Traceback if applicable

Versions of Python, package at hand and relevant dependencies

Thank you for reporting an issue !

In principle yes, but it would be nice of you to elaborate a bit more... What instrument, what usage of pyspectral are you planning to have ?

Yes @lwk1542 could you please elaborate a bit more? The main two features provided by pyspectral and which has motivated its creation is that it allows the derivation of the reflective part of the 3.7-3.9 micron channel (of any sensor with such a band) and the atmospheric correction of the short wave visible bands for the generation of true color imagery. As also outlined in the documentation.

@mraspaud @adybbroe the COCTS(ocean color and temperature scanner)and CZI on board the new HY-1B has launched by China in 2002. The COCTS has eight visible-Near infrared bands (402nm-885nm) and two thermal bands (1030-1250nm). The CZI has four visible-Near infrared bands. see the link for the detail information (the ESA satellite directory: https://directory.eoportal.org/web/eoportal/satellite-missions/content/-/article/hy1b)
THANKS !

@lwk1542 Do you know where we could find the relative spectral responses for COCTS and CZI (from NSOAS)?
Then I could add them to Pyspectral

@lwk1542 Do you know where we could find the relative spectral responses for COCTS and CZI (from NSOAS)?
Then I could add them to Pyspectral

I can send one informal version. Can you leave an E-mail box?

Thanks for the data @lwk1542
I have it.
I suppose you got no further explanation to the content? I think I can guess what the data are, but would be nice to have some sort of reference and some further meta data. But I know by experience this can be difficult with Chinese satellites

@lwk1542 I made a simple reader of your data to generate the pyspectral formattet hdf5 of the COCTS rsr you gave me. I can make this plot like this:
python bin/composite_rsr_plot.py --platform_name HY-1C --sensor cocts --range 0.4 0.9
rsr_band_0040_0090

@lwk1542 There were no IR data. Do you have those as well?

@adybbroe that is all I have.

@lwk1542 Ok. I will update master branch next week with this small addition. Ok?

@adybbroe of course! thank you

@lwk1542 Maybe you could just verify you can make a plot like the above. Do a git clone and use the master branch. On a linux platform:

git clone https://github.com/pytroll/pyspectral.git
cd pyspectral
python setup.py install --user
python bin/composite_rsr_plot.py --platform_name HY-1C --sensor cocts --range 0.4 0.9