projecting ascii MAXENT outputs to a projected co ordinate system

490 views
Skip to first unread message

Neil Daniels

unread,
Jun 4, 2018, 10:45:22 AM6/4/18
to max...@googlegroups.com
Hi all

I am struggling to get my maxent results into the same desired projection system as my study area

The steps I have done so far is :
ascii to raster (FLOAT)
Used raster calculator (Formula: INT(100*raster file)
Raster to polygon
I am now struggling to project this polygon to the same projection as the projection of my study areas
I tried define projection as well as Project data management tool
After trying both, in the property layers it shows that the file has the projected co ordinate system but when I display it together with my study areas, they do not align or overlap in arcmap

Any suggestions?

Kind regards

Neil Daniels






Disclaimer - This e-mail is subject to UWC policies and e-mail disclaimer published on our website at: https://www.uwc.ac.za/Pages/emaildisclaimer.aspx




Neil Daniels

unread,
Jun 4, 2018, 12:51:20 PM6/4/18
to max...@googlegroups.com
I am not sure it is possible to project maxents outputs to any projected co ordinate system?

When I project the maxent outputs, and try displaying it simulataneosly with another layer, arcmap does not display both

Unless theres a way to run the shapefiles in maxent. If thats possible, then I could project these shapefiles. Not sure if this would make a difference

Kind regards

Neil Daniels

Husam El Alqamy

unread,
Jun 4, 2018, 1:26:05 PM6/4/18
to max...@googlegroups.com
)Hi Niel
to slove this projection issue, I assume that your data are in lat long and you have used the Bioclim ASCII grids which are also in Lat/Long so your model AASCII should also be in Lat/Long. so before you do anything with your raster and juste after the step ( ascii to raster (FLOAT)) go and use define projection as WGS84 for the raster and carry on as you did with converting the raster to polygon and dontot check the option "Simplify polygons" on the tool just leave it unchecked.
Hope that works 


Inline image 1

Hossameldin ELALKAMY, MPhill., PhD.

GIS Analyst 

Conservation Data Center|  Victoria

Ministry of Environment & Climate Change

P. 250.614.7521 C. 778.896.3229|395 Waterfront Cres.  Victoria, BC., V8W 9M1

 | Profile







--
You received this message because you are subscribed to the Google Groups "Maxent" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maxent+unsubscribe@googlegroups.com.
To post to this group, send email to max...@googlegroups.com.
Visit this group at https://groups.google.com/group/maxent.
For more options, visit https://groups.google.com/d/optout.

Neil Daniels

unread,
Jun 4, 2018, 1:38:31 PM6/4/18
to max...@googlegroups.com
Hi Husam

My bioclim ascii grid are in ASCII grids however I do not think my sample files have a projection since they are csv files

Is there a way to run maxent using these csv files as shapefiles?

I tried running the shapefiles but the following error message appeared (please see word doc attached)


Kind regards

Neil Daniels

maxent error.docx

Husam El Alqamy

unread,
Jun 4, 2018, 1:45:59 PM6/4/18
to max...@googlegroups.com
it seems that you are specifying a shapefile as your sample file and not the CSV file. Maxent has no way to deal with shapefiles. get your sample into a CSV file of three columns Species, Long, Lat. and make sure that the text delimiter is a comma (,) not a semicolon (;) . It is a CSV file right but since the coordinates are in Lat/long then your coordinate system is Lat/Long and the resulting raster is in Lalt\Long spatiak reference.



Inline image 1

Hossameldin ELALKAMY, MPhill., PhD.

GIS Analyst 

Conservation Data Center|  Victoria

Ministry of Environment & Climate Change

P. 250.614.7521 C. 778.896.3229|395 Waterfront Cres.  Victoria, BC., V8W 9M1

 | Profile




Samuel Veloz

unread,
Jun 4, 2018, 2:04:12 PM6/4/18
to max...@googlegroups.com
Maxent doesn't care about projections. It will use the coordinates you provide in the csv to extract the data from the rasters you provide. So the only requirement is that the coordinate system of your samples and raster data are the same, whether they are projected or not. You can use the maxent model to predict to data that comes from any coordinate system. You just need to know what that is if you want to display the predictions in GIS.


On Monday, June 4, 2018 10:38 AM, Neil Daniels <326...@myuwc.ac.za> wrote:


Hi Husam

My bioclim ascii grid are in ASCII grids however I do not think my sample files have a projection since they are csv files

Is there a way to run maxent using these csv files as shapefiles?

I tried running the shapefiles but the following error message appeared (please see word doc attached)


Kind regards

Neil Daniels


On Mon, Jun 4, 2018 at 7:26 PM, Husam El Alqamy <alq...@gmail.com> wrote:
)Hi Niel
to slove this projection issue, I assume that your data are in lat long and you have used the Bioclim ASCII grids which are also in Lat/Long so your model AASCII should also be in Lat/Long. so before you do anything with your raster and juste after the step ( ascii to raster (FLOAT)) go and use define projection as WGS84 for the raster and carry on as you did with converting the raster to polygon and dontot check the option "Simplify polygons" on the tool just leave it unchecked.
Hope that works 


Inline image 1
Hossameldin ELALKAMY, MPhill., PhD.
GIS Analyst 
Conservation Data Center|  Victoria
Ministry of Environment & Climate Change
To unsubscribe from this group and stop receiving emails from it, send an email to maxent+un...@googlegroups.com.

Husam El Alqamy

unread,
Jun 4, 2018, 2:26:41 PM6/4/18
to max...@googlegroups.com
Sorry Samuel
I have to comment on that, Maxent can not handle projections so the sample file should be in lat/long and not any other projected coordinate system. This is assuming that your environmental layers are also in lat/long which is the standard for worldclim layers. If you are using any other custom made layers with worldclime ASCIIs you should conform to that standard.  Neil question was about bringing the prediction modeled ASCII into Arcmap and this won't work without defining the coordinate system and associate it with the model raster. that where the DEFINE in arcmap comes into a role. As a role of thumb whenever you are dealing with geographic spatial data there is a projection and coordinate system in the background handled by the software either by assumption or by model. It can not  be any other way.
regards


Inline image 1

Hossameldin ELALKAMY, MPhill., PhD.

GIS Analyst 

Conservation Data Center|  Victoria

Ministry of Environment & Climate Change

P. 250.614.7521 C. 778.896.3229|395 Waterfront Cres.  Victoria, BC., V8W 9M1

 | Profile




To unsubscribe from this group and stop receiving emails from it, send an email to maxent+unsubscribe@googlegroups.com.

To post to this group, send email to max...@googlegroups.com.
Visit this group at https://groups.google.com/group/maxent.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Maxent" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maxent+unsubscribe@googlegroups.com.

Samuel Veloz

unread,
Jun 4, 2018, 2:29:22 PM6/4/18
to max...@googlegroups.com
You don't need to have data in lat/long. They only need to be in lat/long if your rasters are in lat/long. Like I said, the only requirement is that your occurrence data and rasters use the same coordinate system whether they are projected or not. 

Sam


To unsubscribe from this group and stop receiving emails from it, send an email to maxent+un...@googlegroups.com.

Neil Daniels

unread,
Jun 4, 2018, 3:13:46 PM6/4/18
to max...@googlegroups.com
Oh no. I meant, I have successfully ran maxent using CSV files. I was wondering if I could get it to run using shapefiles.

Ok. I did not know Maxent was unable to use shapefiles as sample files

Ok, yes my csv files should be in lat/long since my co ordinates were lat/long

I just tried your suggesting and the following message popped up on arcmap (kindly see word doc attached)

The data layers are still not aligning (overlaying/ displaying simulateously on Arcmaps canvas) despite both being in WGS84 projection

Kind regards

Neil Daniels

after projecting pentads to wgs84.docx

Samuel Veloz

unread,
Jun 4, 2018, 6:11:59 PM6/4/18
to max...@googlegroups.com
Seems like some of the layers you are working with either do not have projections defined or they are defined incorrectly. It is hard for the people on the list to know. Can you point people to the data you are using? You should be able to project the output rasters from Maxent to any coordinate system you desire in ArcGIS using the tools within SpatialAnalyst. But the tools need to know the projection your layer is originally in and what projection your are changing it to. If all the layers you are working with are defined correctly, ArcGIS can project on the fly. The error indicates that you haven't defined the projections for one or more layers correctly.

Sam


On Monday, June 4, 2018 12:13 PM, Neil Daniels <326...@myuwc.ac.za> wrote:


Oh no. I meant, I have successfully ran maxent using CSV files. I was wondering if I could get it to run using shapefiles.

Ok. I did not know Maxent was unable to use shapefiles as sample files

Ok, yes my csv files should be in lat/long since my co ordinates were lat/long

I just tried your suggesting and the following message popped up on arcmap (kindly see word doc attached)

The data layers are still not aligning (overlaying/ displaying simulateously on Arcmaps canvas) despite both being in WGS84 projection

Kind regards

Neil Daniels


On Mon, Jun 4, 2018 at 7:45 PM, Husam El Alqamy <alq...@gmail.com> wrote:
it seems that you are specifying a shapefile as your sample file and not the CSV file. Maxent has no way to deal with shapefiles. get your sample into a CSV file of three columns Species, Long, Lat. and make sure that the text delimiter is a comma (,) not a semicolon (;) . It is a CSV file right but since the coordinates are in Lat/long then your coordinate system is Lat/Long and the resulting raster is in Lalt\Long spatiak reference.



Inline image 1
Hossameldin ELALKAMY, MPhill., PhD.
GIS Analyst 
Conservation Data Center|  Victoria
Ministry of Environment & Climate Change
On Mon, Jun 4, 2018 at 10:38 AM, Neil Daniels <326...@myuwc.ac.za> wrote:
Hi Husam

My bioclim ascii grid are in ASCII grids however I do not think my sample files have a projection since they are csv files

Is there a way to run maxent using these csv files as shapefiles?

I tried running the shapefiles but the following error message appeared (please see word doc attached)


Kind regards

Neil Daniels


On Mon, Jun 4, 2018 at 7:26 PM, Husam El Alqamy <alq...@gmail.com> wrote:
)Hi Niel
to slove this projection issue, I assume that your data are in lat long and you have used the Bioclim ASCII grids which are also in Lat/Long so your model AASCII should also be in Lat/Long. so before you do anything with your raster and juste after the step ( ascii to raster (FLOAT)) go and use define projection as WGS84 for the raster and carry on as you did with converting the raster to polygon and dontot check the option "Simplify polygons" on the tool just leave it unchecked.
Hope that works 


Inline image 1
Hossameldin ELALKAMY, MPhill., PhD.
GIS Analyst 
Conservation Data Center|  Victoria
Ministry of Environment & Climate Change
To unsubscribe from this group and stop receiving emails from it, send an email to maxent+un...@googlegroups.com.

Neil Daniels

unread,
Jun 5, 2018, 5:06:05 AM6/5/18
to max...@googlegroups.com
Hi Sam

Husam pointed out that the there was nothing wrong with the maxent files projection, however there was something for my study areas grid cell was used in another software which might have interferred with the projection somehow

I fortunately have a backup of the study areas in the original WGS 84 projection and managed to overlay this and maxents output in arcmap. The two perfectly align which I am very happy for. 

I should be able to use the arcmap tools on these two files now that they are perfectly aligned

I will keep you guys posted on how it goes

Thanks guys

Kind regards

Neil Daniels


To unsubscribe from this group and stop receiving emails from it, send an email to maxent+unsubscribe@googlegroups.com.

To post to this group, send email to max...@googlegroups.com.
Visit this group at https://groups.google.com/group/maxent.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Maxent" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maxent+unsubscribe@googlegroups.com.
To post to this group, send email to max...@googlegroups.com.
Visit this group at https://groups.google.com/group/maxent.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages