Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create new Polar2Grid Reader for CSPP VIIRS Land Surface Temperature EDR #619

Closed
kathys opened this issue Jun 13, 2023 · 6 comments
Closed
Assignees
Labels

Comments

@kathys
Copy link
Collaborator

kathys commented Jun 13, 2023

Please add a reader in support the CSPP VIIRS Land Surface Temperature Product. This should be very similar to if not identical to the CSPP Geo2Grid reader being added: #613

File prefix: LST_*.nc

Array: short VLST

units: Kelvin

Scale Factor: float LST_ScaleFact which is .005
Offset: float LST_Offset which is 200.

This will have to support a huge range of temperatures. We will have to work on the best color table with the GEO team too. The valid range is 213 to 343 K.

Test data can be found here:
bumi:/data/users/kathys/test_data/viirs_edr/j01/asci
bumi:/data/users/kathys/test_data/viirs_edr/npp/asci

@kathys kathys added component:reader reading/loading data enhancement labels Jun 13, 2023
@kathys kathys added this to the Polar2Grid 3.1 milestone Jun 13, 2023
@djhoese
Copy link
Member

djhoese commented Jul 24, 2023

I don't see any "LST_*" files in the asci directory. Copy/paste error on the directory?

@kathys
Copy link
Collaborator Author

kathys commented Jul 24, 2023

Looks like I was not successful in getting ASCI files for npp, but the j01 files are there. The LST software version is 2.0. For instance:

LST_v2r0_j01_s202306081924176_e202306081925403_c202306082036337.nc

@kathys
Copy link
Collaborator Author

kathys commented Jul 24, 2023

I just copied some LST files for npp to the asci test file directory, although they will not match the date/time of the other products that are there.

@djhoese
Copy link
Member

djhoese commented Jul 27, 2023

Ugh these files are different than the others. They aren't even semi-standard NetCDF files with a scale_factor and add_offset. They say they are CF 1.6 compliant, but defining scale/offset any other way is not CF compliant (at least I don't think so). Instead they have separate scalar variables:

        short VLST(Rows, Columns) ;
                VLST:_FillValue = -32768s ;
                VLST:coordinates = "Longitude Latitude" ;
                VLST:long_name = "VIIRS Land Surface Temperature (LST = LST data * LST_ScaleFact + LST_Offset)" ;
                VLST:units = "Kelvin" ;
        float LST_Offset ;
                LST_Offset:long_name = "VIIRS LST Offset" ;
                LST_Offset:units = "1" ;
        float LST_ScaleFact ;
                LST_ScaleFact:long_name = "VIIRS LST Scale Factor" ;
                LST_ScaleFact:units = "1" ;

Why?!?!?!

@djhoese
Copy link
Member

djhoese commented Jul 27, 2023

...and it's called "VLST" because it is "VIIRS Land Surface Temperature"? 🤦‍♂️

@djhoese
Copy link
Member

djhoese commented Sep 6, 2023

The initial version of this has been added now. Any future issues or changes will be in other issues or pull requests.

@djhoese djhoese closed this as completed Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants