-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make temerature scene #7
Comments
So the above code works or it doesn't work? You said you tried to make it work with an RGB composite? The above code seems to be using IR_039 which is not a composite. Additionally, what errors are you getting? It is difficult to tell what is going wrong without any error messages or without telling me exactly how it isn't working or what is unexpected. |
The code works fine for me but what you say, with the IR_039. The errors are different because i make misstakes. When i read in de docs the working of the composite it is logical. |
Do you maybe need to use the It would help to see the code you are using to generate the composite so I can know exactly what code could be used to plot it. If you have the composite DataArray object you should be able to do:
|
@djhoese In example "Remote Sensing II" (area_id = "Griechenland) they use llx = 10E5 as coordinate. Can you explane to me what is the value 10E5 and how can i calculate these to degrees. |
What is this? Is that part of this tutorial?
I can't make a guess without seeing the actual code and YAML you are using. 10E5 is the same as 1000000:
For future questions, please include at least the code you used and any error messages it produced. If something is unexpected, tell me why. If something doesn't work, tell me in what way it doesn't work. If an image doesn't look right, show me a screenshot of the image. |
If you know the lon/lat coordinate or x/y coordinate or the col/row of the pixel, then yes.
If you know the lon/lat then you can do:
|
Thanks, 👍👍 |
@djhoese, is there for getting RGB color value the same. |
RGB should work the same exact way. Try it and let me know if it doesn't work.
I'm not sure what you mean. Isn't that what I showed you above? |
yes, the examples you write to me |
Because i wil get the pixel color to see if the agreement is the same with the temperature, I try : And a question, i place attachement 2 days ago, the white circle upper left come from creating the area. |
Where did you get the code to do You should be accessing your composite directly
Try passing a larger |
Dear @djhoese, width = 1000 # width of the result domain in pixels llx = -32E5 # projection x coordinate of lower left corner of lower left pixel area_extent = (llx,lly,urx,ury) But how can i make it so that i can use lat/lon coordinates insteat of llx = - 32E5. Thanks for an answer and for being patient to inform us |
I'm not sure about matplotlib, but if you have an For using degrees instead of meters, you can look at using the
NOTE: That the "merc" (mercator) projection is still in meters even though you defined your area in degrees. That's just the way projections (and the PROJ C library) work. |
Works well, thanks. |
What do you mean in format? Please look at the pyresample documentation that I linked above. There is also a page specifically for |
I think if the area changes, the height and width also change |
It depends how you create the area. With the |
I create a scene as shown in the appendix earlier. |
Code! I need to see code. You say:
How are you doing this? If you print this area
The Edit: If you get an error when doing |
@djhoese, i am sorry to tel that it is oke now. |
Dear @djhoese,
This is working good with other composite. |
Could you please provide all the code? HRV is bigger than the other datasets. A Raspberry Pi is not powerful. It will take time and memory. |
I use now RPI in Vmware running in Windows.
|
ALL the code I can not guess at what could be going wrong if I don't know everything you are doing (imports, scene creation, call to load, call to resample, everything). If it is too much code, then make a smaller version that still produces the error. |
Hi @djhoese,
I now have nice images in color, beautifull, grid, coast, borders, deco, points, everything oke.
But small question about things i try.
In matplotlib.pyplot i can make a temprature images of Europe, i try this with an composite routine but canot find how to make it.
Can you explane to me how to get same result with a composite -> local_scn.save_dataset
THIS IS THE TEST FROM MAKE TEMPERATURE MATPLOTLIB - PYPLOT _ CARTOPY:
#brightness - temp IR_039
print('Creeer warmte kaart Europa')
import cartopy.crs as ccrs
ir = 'IR_039'
coor_box(-10,35,25,58)
local_scn = scn_cropped
crs = local_scn[ir].attrs['area'].to_cartopy_crs() #ccrs.PlateCarree()
fig, ax = plt.subplots(figsize=(11,7)) # start plot
ax = plt.axes(projection=crs) #ccrs.LambertConformal()'wereld'
my_datak = local_scn[ir]
my_datac = local_scn[ir]-273.15 # plot data cel
my_datac.plot.imshow(transform=crs)
ax.coastlines()
ax.gridlines()
ax.axis('tight') # maak border small
fig.tight_layout() # alleen border grafiekbar
fig.savefig(data_img_warmte + 'Europa_temperature ' + str(file_name) + '.png')
#plt.show()
Thanks in advance for an answer
@ger
The text was updated successfully, but these errors were encountered: