Relative Content

Tag Archive for julia

Geo referencing in Julia

I have a heat map of a region over Los Angeles, stored as a matrix; however, the information is stored as pixels instead of as more convenient (lat, long). Is there any way I can incorporate this into the map?

Using a variable outside a loop in Julia

I have declared an array granule_poly in a loop and wish to concatenate it with other arrays outside the loop’s scope. I understand that Julia treats the variables locally inside a loop. What is the way around?

Splitting an array in Julia

I have an array that I wish to split using ” ” as the delimiter. I am using the Base.split function, but there seems to be an error coming up. The array in question (poly) is as follows:

Symbol enum in Julia?

I would like to avoid using ugly prefixed enum names like direction_right, wonder if it’s possible to use symbolic enum names?

Implement a Sampler in Julia

When I want to implemet a Sampler in Julia as seen in the example below, I always get an error cannot assign a value to imported variable Turing.sample from module Main Stacktrace, but I don’t know how to resolve this.