Skip to content

Scripts to estimate PAR reaching the coastal Arctic seafloor.

License

Notifications You must be signed in to change notification settings

rakeshkstp/ACCES_PAR

Repository files navigation

ACCES_PAR

Scripts to estimate PAR reaching the coastal Arctic seafloor.

Note: These scripts are tested with SeaDAS v2020.1, and may need minor changes to work with newer versions.

For implementation of SSP atmospheric correction in SeaDAS, check this repository.

Where to place the scripts?

  • Download and place contents of this repository in $OCSSWROOT/ocssw_src/src/l2gen.
  • Add the following files to $OCSSWROOT/ocssw_src/src/l2gen/CMakeLists.txt in the L2GEN_PRODUCT_FILES section.
    get_uqar_utils.c
    calc_uqar_utils.c
    interpol_ed0LUT_5nm_v2.f
    calc_par_uqar.f
    get_ed0_LUT_v2.f
    
  • Add the following definitions to l2prod.h. You can choose your own product IDs (XXXs) and name, if it is available.
    #define CAT_uqar_par0p              XXX
    #define CAT_uqar_par0m              XXX
    #define CAT_uqar_parb               XXX
    #define CAT_uqar_icw                XXX
    #define CAT_uqar_COT                XXX
    #define CAT_uqar_salb               XXX
    #define CAT_uqar_O3                 XXX
    #define CAT_uqar_kdpar              XXX
    
  • Add the definitions of these products in $OCDATAROOT/common/product.xml.
  • Add the following line to l12_proto.h.
    void get_uqar_utils(l2str *l2rec, int prodnum, float prod[]);
    
  • Add the following lines to prodgen.c
    case CAT_uqar_par0p:
    case CAT_uqar_par0m:
    case CAT_uqar_parb:
    case CAT_uqar_kdpar:
    case CAT_uqar_COT:
    case CAT_uqar_O3:
    case CAT_uqar_salb:
    case CAT_uqar_icw:
      get_uqar_utils(l2rec, p->cat_ix, fbuf);
      pbuf = (VOIDP) fbuf;
      break;       
    
  • Compile the code as described here.
  • Now you can run l2gen and it will identify the product names described in $OCDATAROOT/common/product.xml.

Author

Rakesh Kumar Singh

Simon Bélanger

About

Scripts to estimate PAR reaching the coastal Arctic seafloor.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published