[ncl-talk] comform 2 1d vectors to same length

GMAIL shejo284 at gmail.com
Thu Jan 26 09:44:43 MST 2017


Hi,

I’m trying to conform 2 1D-vectors to the same length but I think the comform functions can only handle N-D arrays where N>1. For example:

thour = mask(thour,conform(thour, (phour.eq.thour.and. \
                                               pyear.eq.oyear.and. \
                                               pmonth.eq.omonth.and. \
                                               pday.eq.oday),(/0/)),False),
where thour and phour, pyear, pmonth, and pday are of slightly different lengths (all p* variables have the same length).
This statement returns an error:

fatal:Eq: Dimension size, for dimension number 0, of operands does not match, can't continue.

I know this is a bit of a trick I’m trying that doesn’t seem to work. Is there a work-around for doing something like this?
What I’m trying to do is to remove common times when 2 MHS granules overlap.

Any help is appreciated,
/M



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170126/c15c7a8f/attachment.html 


More information about the ncl-talk mailing list