fresample.library