Home Forums Nazca Questions and Answers how to import a GDS file to different layer and only change the waveguide width?

This topic contains 3 replies, has 2 voices, and was last updated by  Ronald 1 month, 3 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5326

    willie_woud
    Participant

    I have two gds files. AndI would like to put them in different layers. I try the following codes

    nd.load_gds( ... layermap={1:10})

    But it doesn’t work.

    And  is it possible to only change the  width of the waveguides in gds fiels? I try the code “scale”, but it changes widths and lengths simultaneously.

    • This topic was modified 1 month, 3 weeks ago by  Ronald. Reason: cleaned up html
    #5329

    Ronald
    Keymaster

    Dear willie_woud,

    The layer mapping should work as indicated. In your example the load_gds maps layer 1 in original gds into layer 10 in Nazca. Make sure layer 1 exists in the gds to load though. If that was not the issue, it would helpful to explain what is different from what you expect the layermap to do.

    As for making wider guides in a loaded gds, in most (all) cases it is better to not use scaling on optical components. Now, if you load a GDS your guides have no “optical” width or length attached to them. They are simply polygons without a meaning.

    A way to approach this is as follows: In Nazca it is possible to iterate over all structures in the gds once loaded. You would need to write a routine to interpret each polygon (after filtering out the ones you need, e.g. by layer or cell), update it to your liking, and Nazca can place the updated polygon in the layout instead of the original one. The basics of that process is worth a tutorial, but I doubt if this “interpretation” is the path you want to go.

    Ronald

    #5331

    willie_woud
    Participant

    I made a mistake in the layer number of the original GDS file. I fix it . Thank you very much.

    And If  I can update the polygon loaded by gds,  the problem may be  solved. I am looking forward to the tutorial.

    #5333

    Ronald
    Keymaster

    Dear willie_woud,

    As for the waveguides, thinking about it, you probably just want to grow the waveguide. It can be done with the iteration alluded to earlier and grow the polygon with the extra width before placing it back. This (general) iteration process is to be added as a tutorial. Alternatively, select the guides in Klayout and use “Edit/Selection/Size Shapes”.

    Ronald

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.