Questions about chanprof/frequencies

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #49041
    liu xuanliu xuan
    Participant

    Hi,

    I’m using RTTOV_SCATT for microwave radiation simulation in a cloudy situation. In my program, I set the number of profiles to 1, but I would change the value of the profile parameters in a loop. but I found that the value of some pointer properties chanprof and frequencies would change and cause my program to give an error. Can I just set the values of chanprof and frequencies, or is there a better way to do it?

    Thanks

    #49042
    James HockingJames Hocking
    Keymaster

    Hi,

    If you are simulating the same set of channels for each profile, then you can set chanprof and frequencies once (by calling rttov_scatt_setupindex) before the loop over your profiles. You don’t need to modify them for each call to RTTOV-SCATT.

    If you are getting errors related to the chanprof and/or frequencies arguments, can you provide more information, such as the error messages, and more details on how you are setting up your simulations.

    Best wishes,
    James

    #49050
    liu xuanliu xuan
    Participant

    Hi James,

    I found the source of the error of chanprof/frequencies because the order of calling rttov_alloc_direct and rttov_scatt_setupindex is reversed.Thank you very much for your help.

    Best wishes,
    Liu Xuan

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.